:root {
    --primary-bg: #0A1128;
    --secondary-bg: #1A233A;
    --accent-cyan: #00C2FF;
    --accent-violet: #8E00FF;
    --accent-silver: #C0C0C0;
    --text-light: #E0E0E0;
    --text-medium: #A0A0A0;
    --border-transparent: rgba(255, 255, 255, 0.1);
    --glow-effect: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-violet);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --font-alt: 'Rajdhani', sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to subtle effects */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative; /* For layered elements */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
}

h1 {
    font-size: 3.5em; /* Adjusted for impact */
    font-weight: 700;
    line-height: 1.2;
    text-shadow: var(--glow-effect);
}

h2 {
    font-size: 2.8em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}
h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
    border-radius: 2px;
    box-shadow: var(--glow-effect);
}

h3 {
    font-size: 1.8em;
    font-weight: 500;
    color: var(--accent-cyan);
}

p {
    margin-bottom: 15px;
    color: var(--text-medium);
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-violet);
    text-shadow: 0 0 5px var(--accent-cyan);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Navigation */
.main-header {
    background-color: rgba(10, 17, 40, 0.8); /* Slightly transparent */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-transparent);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2em;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--accent-cyan);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 1.1em;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 194, 255, 0.3), transparent);
    transition: left 0.4s ease-in-out;
    z-index: 0;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    color: var(--accent-violet);
    background-color: rgba(0, 194, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.5);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
    color: var(--primary-bg);
    padding: 15px 30px;
    border-radius: 8px;
    font-family: var(--font-alt);
    font-weight: 600;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.4);
    margin-top: 30px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 194, 255, 0.6), 0 0 30px var(--accent-violet);
    color: var(--primary-bg); /* Ensure text remains dark */
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden; /* For parallax or floating elements */
    border-bottom: 1px solid var(--border-transparent);
}

.section-title {
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-shadow: var(--glow-effect);
}

.section-description {
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: center;
    color: var(--text-medium);
    font-size: 1.1em;
    line-height: 1.8;
}

.layered-section {
    background-color: var(--secondary-bg); /* Subtle darker background for contrast */
    position: relative;
    z-index: 1; /* For layering effect */
    margin-bottom: -50px; /* Overlap with next section */
    padding-bottom: 150px;
}

.layered-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 100px;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    min-height: 90vh;
    background: url('images/image_18.jpg') no-repeat center center/cover;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(10, 17, 40, 0.95), rgba(10, 17, 40, 0.7) 50%, rgba(10, 17, 40, 0.1));
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding: 0 40px 0 100px; /* More padding on left */
    z-index: 2;
    text-align: left;
}

.hero-content h1 {
    margin-bottom: 25px;
    font-size: 4.2em; /* Bigger H1 for hero */
    text-transform: uppercase;
    letter-spacing: 1px;
    background: -webkit-linear-gradient(45deg, var(--accent-cyan), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2em;
    max-width: 600px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    padding-right: 100px; /* Padding on right for the image */
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 194, 255, 0.5), 0 0 50px rgba(142, 0, 255, 0.3);
    border: 1px solid var(--border-transparent);
    transition: transform 0.5s ease-in-out;
}
.hero-image img:hover {
    transform: scale(1.02);
}

/* About Section */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.about-cards-grid .card {
    background-color: rgba(26, 35, 58, 0.7); /* Lighter bg with transparency */
    border: 1px solid var(--border-transparent);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.about-cards-grid .card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 194, 255, 0.1) 0%, transparent 70%);
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 0;
}
.about-cards-grid .card:hover::before {
    opacity: 1;
}

.about-cards-grid .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 194, 255, 0.3), 0 0 40px rgba(142, 0, 255, 0.2);
    border-color: var(--accent-cyan);
}

.about-cards-grid .card h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--accent-silver);
    text-shadow: 0 0 5px var(--accent-cyan);
}

.about-cards-grid .card p {
    color: var(--text-medium);
    font-size: 1em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.about-cards-grid .card ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
    color: var(--text-medium);
    font-family: var(--font-alt);
    position: relative;
    z-index: 1;
}

.about-cards-grid .card ul li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.about-cards-grid .card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Services Section */
.services-horizontal-cards {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    gap: 30px;
    padding-bottom: 20px; /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
    margin-top: 50px;
}

.services-horizontal-cards::-webkit-scrollbar {
    height: 8px;
}

.services-horizontal-cards::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    border-radius: 10px;
}

.services-horizontal-cards::-webkit-scrollbar-track {
    background: var(--primary-bg);
    border-radius: 10px;
}

.service-card {
    flex: 0 0 350px; /* Fixed width for horizontal scroll */
    background-color: rgba(26, 35, 58, 0.8);
    border: 1px solid var(--border-transparent);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    min-height: 350px; /* Ensure cards have some height */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(0, 194, 255, 0.05) 0%, transparent 60%);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 194, 255, 0.3), 0 0 40px rgba(142, 0, 255, 0.2);
    border-color: var(--accent-violet);
}

.service-card h3 {
    color: var(--accent-cyan);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.service-card p {
    color: var(--text-medium);
    margin-bottom: 10px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    color: var(--text-medium);
    font-family: var(--font-alt);
}

.service-card ul li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.service-card ul li::before {
    content: '▶'; /* Changed from arrow to triangle */
    position: absolute;
    left: 0;
    color: var(--accent-violet);
    font-weight: bold;
    font-size: 0.8em;
    top: 3px;
}

/* Showcase Section */
.showcase-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M100 0L0 100V0h100zM0 0l100 100H0V0z" fill="%232A3B5F" fill-opacity="0.1" fill-rule="evenodd"/%3E%3C/svg%3E'); /* Subtle circuit pattern */
    opacity: 1;.3;
    z-index: 0;
}


.showcase-content {
    max-width: 900px;
    margin: 0 auto 50px auto;
    position: relative;
    z-index: 1;
}

.showcase-title {
    font-size: 3.5em;
    line-height: 1.2;
    margin-bottom: 30px;
    background: -webkit-linear-gradient(90deg, var(--accent-silver), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
}

.showcase-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 25px;
}

.showcase-visual {
    width: 80%;
    max-width: 1000px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.showcase-visual img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 194, 255, 0.3), 0 0 80px rgba(142, 0, 255, 0.2);
    border: 2px solid var(--accent-silver);
    transition: transform 0.5s ease;
}
.showcase-visual img:hover {
    transform: scale(1.01);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Adjusted minmax for visual impact, 3 per row on larger screens */
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-transparent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.gallery-item::before {
    content: 'View Details';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-size: 1.5em;
    font-family: var(--font-heading);
    text-shadow: var(--glow-effect);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 250px; /* Fixed height for uniformity */
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 194, 255, 0.3);
    border-color: var(--accent-cyan);
}

/* Lightbox for zoom */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    display: block;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 194, 255, 0.7);
    transition: transform 0.3s ease-out; /* Smooth transform for pan/zoom */
    cursor: grab;
}

.lightbox-image:active {
    cursor: grabbing;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-light);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    text-shadow: var(--glow-effect);
}

.close-button:hover,
.close-button:focus {
    color: var(--accent-violet);
    text-decoration: none;
    cursor: pointer;
}

/* Team Section */
.department-section {
    margin-bottom: 60px;
    background-color: rgba(26, 35, 58, 0.6);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-transparent);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.department-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 90%, rgba(142, 0, 255, 0.05) 0%, transparent 60%);
    opacity: 1;.5;
    z-index: 0;
}
.department-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: var(--accent-silver);
    text-shadow: 0 0 10px var(--accent-violet);
    position: relative;
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.team-member {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-transparent);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 194, 255, 0.05), rgba(142, 0, 255, 0.05));
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.team-member:hover::before {
    opacity: 1;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 194, 255, 0.3);
    border-color: var(--accent-violet);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 194, 255, 0.6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}
.team-member:hover img {
    border-color: var(--accent-violet);
    box-shadow: 0 0 20px rgba(142, 0, 255, 0.8);
}

.team-member h4 {
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.team-member p {
    color: var(--text-medium);
    font-family: var(--font-alt);
    font-size: 1em;
    position: relative;
    z-index: 1;
}
.team-member .member-bio {
    font-size: 0.9em;
    margin-top: 10px;
    color: var(--text-medium);
    position: relative;
    z-index: 1;
}


/* Testimonials Section */
.testimonial-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: rgba(26, 35, 58, 0.7);
    border: 1px solid var(--border-transparent);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(142, 0, 255, 0.1) 0%, transparent 70%);
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(142, 0, 255, 0.3), 0 0 40px rgba(0, 194, 255, 0.2);
    border-color: var(--accent-violet);
}

.testimonial-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 194, 255, 0.5);
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1em;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent-silver);
    font-family: var(--font-alt);
    position: relative;
    z-index: 1;
}

/* FAQ Section - Tabbed Interface */
.faq-tabs {
    margin-top: 50px;
    background-color: rgba(26, 35, 58, 0.7);
    border-radius: 15px;
    border: 1px solid var(--border-transparent);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    padding: 30px;
    position: relative;
    z-index: 1;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-transparent);
    padding-bottom: 15px;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.2em;
    color: var(--text-medium);
    cursor: pointer;
    transition: color 0.3s ease, border-bottom 0.3s ease, text-shadow 0.3s ease;
    outline: none;
    position: relative;
    overflow: hidden;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

.tab-button:hover {
    color: var(--text-light);
    text-shadow: 0 0 8px var(--accent-cyan);
}

.tab-button.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan);
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-pane {
    display: none; /* Hidden by default, JS toggles */
    padding: 20px 0;
}

.tab-pane.active {
    display: block; /* Shown when active */
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-transparent);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--primary-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background-color: rgba(0, 194, 255, 0.05); /* Subtle background */
    border: none;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-alt);
    font-size: 1.1em;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    outline: none;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(0deg); /* No rotation for minus */
    color: var(--accent-violet);
}

.faq-question:hover {
    background-color: rgba(0, 194, 255, 0.1);
    color: var(--accent-cyan);
}

.faq-answer {
    padding: 20px;
    background-color: var(--primary-bg);
    color: var(--text-medium);
    border-top: 1px solid var(--border-transparent);
    display: none; /* Controlled by JS */
}

/* Footer */
.main-footer {
    background-color: var(--primary-bg);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border-transparent);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 194, 255, 0.05) 0%, transparent 60%);
    opacity: 1;.3;
}

.main-footer p {
    color: var(--text-medium);
    font-size: 0.9em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.main-footer p:first-of-type {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-light);
    font-family: var(--font-alt);
    margin-bottom: 15px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 2.2em;
    }
    h3 {
        font-size: 1.6em;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 80px 0;
    }
    .hero-section::before {
        background: linear-gradient(to bottom, rgba(10, 17, 40, 0.95), rgba(10, 17, 40, 0.7) 70%, rgba(10, 17, 40, 0.1));
    }

    .hero-content {
        padding: 0 20px;
        order: 2; /* Content below image on smaller screens */
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: 3em;
        text-align: center;
        margin-top: 30px;
    }
    .hero-content p {
        max-width: 100%;
        text-align: center;
    }
    .cta-button {
        margin-top: 20px;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        padding: 0 20px;
        order: 1;
    }
    .hero-image img {
        width: 80%;
    }

    .nav-links {
        display: none; /* Hide for mobile, could add a hamburger menu if needed for functionality */
    }
    .main-nav {
        justify-content: center; /* Center logo if no nav links */
    }

    .about-cards-grid,
    .team-grid,
    .testimonial-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .about-cards-grid .card,
    .testimonial-card,
    .team-member {
        padding: 25px;
    }

    .services-horizontal-cards {
        padding: 0 20px 20px; /* Add horizontal padding for cards on smaller screens */
        flex-wrap: nowrap; /* Ensure horizontal scroll */
        justify-content: flex-start;
    }

    .service-card {
        flex: 0 0 300px; /* Smaller fixed width for mobile cards */
        min-height: 320px;
        scroll-snap-align: center; /* Snap to center for better experience */
    }

    .showcase-visual {
        width: 90%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    .tab-button {
        width: 90%;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--border-transparent);
        padding: 10px 0;
    }
    .tab-buttons::after {
        display: none; /* Remove bottom border for tab buttons container */
    }
    .tab-button.active::after {
        bottom: 0px; /* Adjust position for active indicator */
    }
    .faq-question h3 {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.8em;
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p, .section-description {
        font-size: 1em;
    }
    .logo {
        font-size: 1.8em;
    }
    section {
        padding: 60px 0;
    }
    .layered-section {
        margin-bottom: -30px;
        padding-bottom: 100px;
    }

    .about-cards-grid,
    .team-grid,
    .testimonial-cards-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }
    .testimonial-cards-grid {
        max-width: 400px; /* Constrain width for single column */
        margin-left: auto;
        margin-right: auto;
    }

    .service-card {
        flex: 0 0 80vw; /* Make cards wider on small screens */
        min-height: 300px;
    }
    .showcase-title {
        font-size: 2.5em;
    }
    .showcase-description {
        font-size: 1em;
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack gallery items */
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .department-section {
        padding: 20px;
    }
    .department-section h3 {
        font-size: 2em;
    }
    .faq-tabs {
        padding: 20px;
    }
    .tab-button {
        font-size: 1em;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2em;
        line-height: 1.3;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .logo {
        font-size: 1.5em;
    }
    .section-title {
        font-size: 1.6em;
    }
    .about-cards-grid .card h3 {
        font-size: 1.5em;
    }
    .service-card h3 {
        font-size: 1.5em;
    }
    .showcase-title {
        font-size: 2em;
    }
    .team-member h4 {
        font-size: 1.3em;
    }
    .testimonial-text {
        font-size: 1em;
    }
    .faq-question h3 {
        font-size: 0.95em;
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Enhanced: Team grid stabilization */
+ .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
+ @media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
