:root {
    --color-dark-blue: #0A0F1E;
    --color-dark-gray: #1a1a2e;
    --color-black: #0D1117;
    --color-translucent-white: rgba(255, 255, 255, 0.08); /* Slightly less opaque for backdrop */
    --color-translucent-white-hover: rgba(255, 255, 255, 0.15);
    --color-text-light: #e0e0e0;
    --color-accent: #8e9eab; /* A gentle blue-gray for accent */
    --color-glow: rgba(142, 158, 171, 0.4); /* Soft glow matching accent */

    --font-primary: 'Poppins', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --border-radius: 12px;
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-light);
    background-color: var(--color-black); /* Dark blurred backdrop */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.2rem; } /* Used for smaller section titles and tab headings */
h5 { font-size: 1.1rem; } /* Used for FAQ questions */


p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #aebecd;
}

/* Glassmorphic Card Style */
.glass-card {
    background-color: var(--color-translucent-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background-color: var(--color-translucent-white-hover);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15), 0 0 15px var(--color-glow);
    transform: translateY(-5px);
}

/* Layout */
.content-section {
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 2; /* Ensure content is above parallax */
}

.content-section h2, .content-section h4 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* Header */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(13, 17, 23, 0.85); /* Slightly less opaque than cards for backdrop */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 5px var(--color-accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-sm);
}

.nav-links a {
    color: var(--color-text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--color-translucent-white-hover);
    color: #ffffff;
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
}

/* Hero Section - Parallax */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    padding: 0 var(--spacing-md);
    padding-top: 80px; /* Offset for fixed header */
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Slightly larger to allow parallax movement */
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) blur(3px); /* Darker and blurred backdrop */
    z-index: 1;
    transform: translateY(0); /* Initial state for JS parallax */
    transition: transform 0.05s ease-out; /* Smoother scrolling */
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 700px;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.intro-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    width: 100%;
}

.intro-cards .glass-card {
    padding: var(--spacing-md);
    background-color: var(--color-translucent-white-hover); /* Slightly more prominent */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2), 0 0 20px var(--color-glow);
    text-align: left;
    transform: translateY(20px);
    opacity: 1;
    animation: fadeInSlideUp 0.8s ease forwards;
}

.intro-cards .glass-card:nth-child(1) { animation-delay: 0.2s; }
.intro-cards .glass-card:nth-child(2) { animation-delay: 0.4s; }
.intro-cards .glass-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInSlideUp {
    from {
        opacity: 1;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Grid Layouts */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.about-card img, .process-step img, .story-card img, .team-member img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: var(--spacing-sm);
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.about-card img:hover, .process-step img:hover, .story-card img:hover, .team-member img:hover {
    filter: brightness(1);
}


/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3-column */
    gap: var(--spacing-md);
}

.service-item strong {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.process-step {
    text-align: center;
}

.process-step h3 {
    margin-top: 0.5rem;
}

/* Success Stories / Interactive Showcase */
.highlight-cards .glass-card {
    cursor: pointer;
    overflow: hidden;
    padding: 0; /* Overlay covers entire card */
}

.highlight-cards .glass-card img {
    display: block;
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.5s ease-in-out;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 1;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    color: #ffffff;
    text-align: left;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.glass-card.interactive-card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.glass-card.interactive-card:hover img {
    transform: scale(1.05);
}

.card-overlay strong {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    display: block;
    color: #ffffff;
}
.card-overlay p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-light);
}
.card-overlay span {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--color-accent);
}

/* Gallery Section */
.filter-buttons {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.filter-btn {
    background-color: var(--color-translucent-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    margin: 0 var(--spacing-xs);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background-color: var(--color-translucent-white-hover);
    color: #ffffff;
    box-shadow: 0 0 10px var(--color-glow);
}

.filter-btn.active {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-glow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    padding: 0;
    overflow: hidden;
    text-align: center;
    position: relative;
    display: block; /* Managed by JS filter */
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    display: block;
    filter: brightness(0.9);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1);
    transform: scale(1.02);
}

.item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.8rem;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.95rem;
    color: #ffffff;
}

/* FAQ Section */
.faq-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tab-button {
    background-color: var(--color-translucent-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-light);
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-family: var(--font-primary);
    font-size: 1rem;
}

.tab-button:hover {
    background-color: var(--color-translucent-white-hover);
    color: #ffffff;
    box-shadow: 0 0 10px var(--color-glow);
}

.tab-button.active {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
    box-shadow: 0 0 15px var(--color-glow);
}

.tab-pane {
    display: none;
    padding: var(--spacing-md);
    background-color: var(--color-translucent-white);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: fadeIn 0.5s ease forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 1; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane h4 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h5 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

/* Call to Action Section */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    align-items: center;
}

.cta-left, .cta-right {
    padding: var(--spacing-lg);
    text-align: center;
}

.cta-right img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-top: var(--spacing-md);
    filter: brightness(0.9);
}

.glass-button {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: var(--spacing-md);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.glass-button:hover {
    background-color: #aebecd;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 20px var(--color-glow);
    transform: translateY(-2px);
}

/* Team Section */
.team-grid {
    grid-template-columns: repeat(3, 1fr); /* Enforce 3 cards per row */
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.team-member h4 {
    margin-bottom: var(--spacing-xs);
    color: #ffffff;
}

.team-member strong {
    display: block;
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

/* Footer */
.site-footer {
    background-color: var(--color-black); /* Dark backdrop for footer */
    padding: var(--spacing-md) 0;
    text-align: center;
    margin-top: auto; /* Push footer to bottom */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .intro-cards, .card-grid, .service-grid, .process-steps, .gallery-grid, .team-grid, .cta-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(13, 17, 23, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        text-align: center;
        margin: 0.5rem 0;
    }
    .nav-links a {
        padding: 0.8rem 1rem;
        width: 90%;
        margin: 0 auto;
        display: block;
    }
    .nav-toggle {
        display: block;
    }

    .hero-section {
        height: auto; /* Allow height to adjust on smaller screens */
        padding-top: 100px; /* More padding for header */
        padding-bottom: var(--spacing-lg);
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .intro-cards {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        margin-top: var(--spacing-md);
    }

    .card-grid, .service-grid, .process-steps, .gallery-grid, .team-grid, .cta-grid {
        grid-template-columns: 1fr; /* Stack all grids on mobile */
    }

    .cta-left, .cta-right {
        padding: var(--spacing-md);
    }

    .tab-buttons {
        flex-direction: column;
    }
    .tab-button {
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.9rem; }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .brand-logo {
        font-size: 1.5rem;
    }
    .glass-button {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}

/* 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; } }

/* Enhanced: Missing animation classes from JS */
.animate-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.animate-active.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;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
