:root {
    --color-primary-dark: #0A001A; /* Midnight Black */
    --color-secondary-dark: #1A0033; /* Deep Purple */
    --color-accent-magenta: #FF00FF; /* Neon Magenta */
    --color-accent-cyan: #00FFFF; /* Neon Cyan */
    --color-accent-blue: #0080FF; /* Electric Blue */
    --color-text-light: #E0E0E0; /* Light Gray for readability */
    --color-text-faded: #A0A0A0; /* Faded text */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo', sans-serif;
    --border-glow: 1px solid var(--color-accent-cyan);
    --text-shadow-neon: 0 0 5px var(--color-accent-cyan), 0 0 10px var(--color-accent-magenta);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-light);
    background-color: var(--color-primary-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scroll from glowing elements */
}

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-accent-cyan);
    text-shadow: var(--text-shadow-neon);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-accent-magenta);
    text-shadow: var(--text-shadow-neon);
    margin-bottom: 0.8em;
    font-weight: 500;
}

h1 {
    font-size: 3.5em; /* Adjusted for impact */
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-accent-cyan); /* Stronger accent for H1 */
    text-shadow: 0 0 10px var(--color-accent-blue), 0 0 20px var(--color-accent-magenta);
}

h2 {
    font-size: 2.2em;
    font-weight: 500;
    color: var(--color-accent-magenta);
}

h3 {
    font-size: 1.5em;
    font-weight: 400;
    color: var(--color-accent-blue);
    margin-bottom: 0.6em;
}

p {
    margin-bottom: 1em;
    color: var(--color-text-light);
    font-weight: 300;
}

ul {
    list-style: none;
    margin-bottom: 1em;
    padding-left: 1.5em;
    color: var(--color-text-light);
}

ul li {
    position: relative;
    margin-bottom: 0.5em;
}

ul li::before {
    color: var(--color-accent-cyan);
    position: absolute;
    left: -1.5em;
    text-shadow: 0 0 5px var(--color-accent-cyan);
}

.section-padding {
    padding: 80px 5%;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
    position: relative;
    padding-bottom: 20px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent-magenta), transparent);
    box-shadow: 0 0 10px var(--color-accent-magenta);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--color-accent-blue), var(--color-accent-magenta));
    padding: 15px 30px;
    border-radius: 8px;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 20px;
    box-shadow: 0 0 15px var(--color-accent-blue), 0 0 30px var(--color-accent-magenta);
    transition: all 0.4s ease-in-out;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    align-items: center;
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--color-accent-magenta), var(--color-accent-cyan));
    box-shadow: 0 0 20px var(--color-accent-magenta), 0 0 40px var(--color-accent-cyan);
    transform: translateY(-3px) scale(1.02);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-30deg);
    transition: all 0.5s ease-in-out;
}

.cta-button:hover::before {
    left: 100%;
}

/* Header & Navigation */
.header {
    background-color: rgba(10, 0, 26, 0.8); /* Semi-transparent midnight black */
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-accent-magenta);
    text-shadow: var(--text-shadow-neon);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo-text:hover {
    color: var(--color-accent-cyan);
    text-shadow: 0 0 8px var(--color-accent-cyan), 0 0 15px var(--color-accent-blue);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links .nav-item {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-text-faded);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links .nav-item:hover,
.nav-links .nav-item.active {
    color: var(--color-accent-cyan);
    text-shadow: 0 0 5px var(--color-accent-cyan);
}

.nav-links .nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--color-accent-magenta);
    box-shadow: 0 0 8px var(--color-accent-magenta);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links .nav-item:hover::after,
.nav-links .nav-item.active::after {
    width: 100%;
    left: 0;
    background: var(--color-accent-cyan);
    box-shadow: 0 0 8px var(--color-accent-cyan);
}

/* Hero Section: GRID OVERLAY */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px; /* Offset for fixed header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/image_22.jpg') center/cover no-repeat;
    filter: brightness(0.4) grayscale(0.2);
    z-index: -2;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(10, 0, 26, 0.9) 0%, /* Dark purple to black */
        rgba(26, 0, 51, 0.7) 30%,
        rgba(10, 0, 26, 0.9) 100%
    );
    z-index: -1;
    opacity: 0.95;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Asymmetrical positioning */
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    width: 90%;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-text-container {
    padding: 40px;
    background-color: rgba(10, 0, 26, 0.7); /* Slightly transparent panel */
    border: var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(255, 0, 255, 0.2);
    transform: skewX(-5deg); /* Slight asymmetrical tilt */
    margin-left: -5%; /* Overlaying grid visually */
    position: relative;
    z-index: 2; /* Ensure it's above other elements if any */
}

.hero-text-container > * {
    transform: skewX(5deg); /* Counter-skew content */
}

.hero-section h1 {
    margin-top: 0;
    font-size: 3.8em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.1em;
    font-weight: 300;
    color: var(--color-text-light);
}

/* Card Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--color-secondary-dark);
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--color-accent-blue), 0 0 40px var(--color-accent-magenta);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.card-content {
    padding: 25px;
}

.card-content h2, .card-content h3 {
    margin-top: 0;
    margin-bottom: 0.8em;
}
.card-content h3 {
    font-size: 1.3em;
    margin-bottom: 1em;
}

/* Products Section: Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent-cyan), var(--color-accent-magenta), var(--color-accent-blue));
    box-shadow: 0 0 10px var(--color-accent-cyan), 0 0 20px var(--color-accent-magenta);
    transform: translateX(-50%);
    z-index: -1;
}

.step {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--color-secondary-dark);
    padding: 30px;
    border: var(--border-glow);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    position: relative;
}

.step:nth-child(odd) {
    flex-direction: row;
    border-left: 5px solid var(--color-accent-cyan);
    transform: translateX(-20px);
}

.step:nth-child(even) {
    flex-direction: row-reverse;
    border-right: 5px solid var(--color-accent-magenta);
    transform: translateX(20px);
}

.step::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-accent-cyan);
    box-shadow: 0 0 10px var(--color-accent-cyan), 0 0 20px var(--color-accent-blue);
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.step:nth-child(odd)::after {
    right: -30px;
}

.step:nth-child(even)::after {
    left: -30px;
}

.step img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border: 2px solid var(--color-accent-blue);
    box-shadow: 0 0 10px var(--color-accent-blue);
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}
.step-content h2, .step-content h3 {
    margin-top: 0;
}

/* Showcase/Highlights: FEATURED WORK */
.featured-work-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive 3-card layout */
    gap: 50px;
}

.featured-item {
    background-color: var(--color-secondary-dark);
    border: 1px solid rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

.featured-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--color-accent-magenta);
}

.featured-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px var(--color-accent-magenta), 0 0 50px var(--color-accent-blue);
}

.featured-content {
    padding: 25px;
}
.featured-content h2, .featured-content h3 {
    margin-top: 0;
}

/* Reviews Section: QUOTE FOCUS */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-card {
    background-color: var(--color-secondary-dark);
    padding: 40px;
    border: 1px solid rgba(0, 128, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '“';
    font-family: var(--font-heading);
    font-size: 8em;
    color: rgba(0, 255, 255, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    z-index: 0;
}

.quote-card h2 {
    position: relative;
    z-index: 1;
    font-size: 1.8em;
    margin-bottom: 0.5em;
    color: var(--color-accent-blue);
    text-shadow: none; /* Make quote titles less flashy */
}

.quote-card .quote-text {
    position: relative;
    z-index: 1;
    font-size: 1.1em;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 1.5em;
}

.quote-card h3 {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 1.2em;
    font-weight: 500;
    color: var(--color-accent-magenta);
    text-shadow: none;
    text-align: right;
    margin-top: 1em;
}

/* Gallery Section: LIGHTBOX GALLERY */
.lightbox-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 images */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background-color: var(--color-secondary-dark);
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--color-accent-cyan), 0 0 40px var(--color-accent-blue);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1);
}

.gallery-item figcaption {
    padding: 15px;
    text-align: center;
    background-color: rgba(26, 0, 51, 0.8);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.gallery-item figcaption h2, .gallery-item figcaption h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--color-accent-magenta);
    text-shadow: 0 0 5px var(--color-accent-magenta);
}
.gallery-item figcaption h3 {
    font-size: 0.9em;
    color: var(--color-accent-blue);
    margin-top: 0.5em;
}

/* Lightbox styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    padding-top: 60px; /* Location of the box (top) */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 3px solid var(--color-accent-cyan);
    box-shadow: 0 0 20px var(--color-accent-cyan), 0 0 40px var(--color-accent-blue);
}

.lightbox-caption {
    margin-top: 20px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.2em;
    font-family: var(--font-body);
    text-shadow: var(--text-shadow-neon);
    max-width: 80%;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 45px;
    color: var(--color-accent-magenta);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-accent-cyan);
    text-decoration: none;
    cursor: pointer;
    text-shadow: 0 0 10px var(--color-accent-cyan);
}

.connect-section .cta-button {
    display: inline-flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
}


/* Team Section: DEPARTMENT SECTIONS */
.team-departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 departments */
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.department {
    background-color: var(--color-secondary-dark);
    border: 1px solid rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.1);
    padding: 30px;
    position: relative;
}

.department::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--color-accent-cyan), var(--color-accent-magenta));
    z-index: -1;
    filter: blur(8px);
    opacity: 0.3;
}

.department h2, .department h3 {
    margin-top: 0;
    margin-bottom: 1em;
    color: var(--color-accent-magenta);
}
.department h3 {
    font-size: 1.3em;
    color: var(--color-accent-blue);
    margin-bottom: 0.8em;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.team-member-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--color-accent-cyan);
    box-shadow: 0 0 8px var(--color-accent-cyan);
}

.team-member-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-blue);
    box-shadow: 0 0 10px var(--color-accent-blue);
    flex-shrink: 0;
}

.team-member-card h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--color-accent-blue);
    text-shadow: none;
}
.team-member-card p {
    font-size: 0.9em;
    color: var(--color-text-faded);
    margin-top: 5px;
}


/* Location Section: SOCIAL FOCUS (Adapted to restrictions) */
.connect-section .section-header {
    margin-bottom: 40px;
}

.connect-content {
    background-color: var(--color-secondary-dark);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border: 2px solid var(--color-accent-blue);
    box-shadow: 0 0 20px var(--color-accent-blue), 0 0 40px rgba(0, 128, 255, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.connect-content::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse-glow 5s infinite alternate ease-in-out;
    z-index: 0;
}

@keyframes pulse-glow {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

.connect-content > * {
    position: relative;
    z-index: 1;
}

.connect-content h3 {
    color: var(--color-accent-magenta);
    font-size: 1.8em;
    margin-bottom: 1em;
}
.connect-content p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: var(--color-primary-dark);
    padding: 50px 5%;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 -2px 10px rgba(0, 255, 255, 0.1);
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding-bottom: 30px;
    border-bottom: 1px dashed rgba(255, 0, 255, 0.1);
}

.footer-brand .logo-text {
    font-size: 2em;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--color-text-faded);
    font-size: 0.9em;
}

.footer-nav h4, .footer-legal h4 {
    font-family: var(--font-heading);
    color: var(--color-accent-blue);
    font-size: 1.3em;
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--color-accent-blue);
}

.footer-nav ul, .footer-legal ul {
    padding-left: 0;
    list-style: none;
}

.footer-nav ul li, .footer-legal ul li {
    margin-bottom: 10px;
}

.footer-nav a, .footer-legal a {
    color: var(--color-text-faded);
    font-size: 1em;
    transition: color 0.3s ease;
}

.footer-nav a:hover, .footer-legal a:hover {
    color: var(--color-accent-cyan);
    text-shadow: 0 0 5px var(--color-accent-cyan);
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-faded);
    font-size: 0.85em;
    margin-top: 20px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 3em;
    }
    h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.3em;
    }

    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 5%;
    }

    .hero-text-container {
        transform: skewX(0); /* Remove skew on smaller screens */
        margin-left: 0;
        padding: 30px;
    }
    .hero-text-container > * {
        transform: skewX(0); /* Remove counter-skew */
    }

    .card-grid, .featured-work-grid, .quote-grid, .lightbox-gallery-grid, .team-departments-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Auto-fit for responsiveness */
        gap: 30px;
    }

    .process-steps {
        max-width: 700px;
    }

    .step:nth-child(odd), .step:nth-child(even) {
        flex-direction: column;
        text-align: center;
        transform: translateX(0);
        border: var(--border-glow);
        border-width: 1px 1px 1px 5px; /* Consistent left border for all steps */
        padding-bottom: 60px; /* Add space for pseudo element below */
    }

    .step img {
        width: 100%;
        height: 250px;
        margin-bottom: 20px;
    }

    .process-steps::before { /* Adjust vertical line */
        left: 20px;
        width: 1px;
    }

    .step::after { /* Adjust step indicator position */
        top: auto;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .step:nth-child(odd)::after, .step:nth-child(even)::after {
        left: 50%;
        right: auto;
    }

    .department {
        padding: 25px;
    }
    .team-member-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .team-member-card img {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 25px;
    }
    .header {
        padding: 15px 5%;
    }

    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.6em;
    }
    h3 {
        font-size: 1.2em;
    }
    .section-padding {
        padding: 60px 5%;
    }
    .hero-section {
        height: auto;
        min-height: 100vh;
    }
    .hero-content-grid {
        padding-top: 50px; /* More space from header */
        padding-bottom: 50px;
    }
    .hero-text-container {
        padding: 25px;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    .card-grid, .featured-work-grid, .quote-grid, .lightbox-gallery-grid, .team-departments-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-nav ul, .footer-legal ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }
    .footer-nav li, .footer-legal li {
        margin-bottom: 0;
    }
}

/* 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: Missing animation classes from JS */
.scroll-animate {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
