:root {
    --primary-color: #5b7efc; /* A vibrant blue for accents */
    --text-color: #e0e0e0; /* Light text on dark backgrounds */
    --secondary-text-color: #a0a0a0; /* Slightly darker light text */
    --background-dark: #0a0a1a; /* Deep dark blue for main background */
    --background-darker: #050510; /* Even darker for some sections */
    --glass-background: rgba(255, 255, 255, 0.08); /* Translucent white for panels */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.2);
    --hover-effect: rgba(255, 255, 255, 0.15);
    --transition-speed: 0.3s ease-in-out;
    --padding-section: 80px 0;
    --border-radius-lg: 15px;
    --border-radius-md: 10px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--background-dark), var(--background-darker));
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--padding-section);
    position: relative;
    overflow: hidden; /* For blurred backdrops */
}

/* Glassmorphic Panel Base Style */
.glassmorphic-panel {
    background: var(--glass-background);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    padding: 30px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.glassmorphic-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px 0 var(--glass-shadow);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

h1 { font-size: 3.5em; line-height: 1.1; }
h2 { font-size: 2.8em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 1em;
}

.section-description {
    font-size: 1.1em;
    color: var(--secondary-text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--secondary-text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: lighten(var(--primary-color), 10%);
}

.button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius-md);
    background: var(--primary-color);
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
    border: none;
    box-shadow: 0 4px 15px rgba(var(--primary-color), 0.3);
}

.button:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-color), 0.4);
}

/* Header & Navigation */
.header {
    background: rgba(0, 0, 0, 0.4); /* Darker, slightly more opaque for header */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: blur(5px) brightness(0.6); /* Slightly blur and darken background image */
    transform: scale(1.05);
}

.hero-content {
    max-width: 900px;
    padding: 40px;
    animation: fadeIn 1s forwards;
    opacity: 1;
    transform: translateY(20px);
}

.hero-content h2 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: var(--secondary-text-color);
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mission Section - TWO COLUMN */
.mission-section {
    background: var(--background-darker);
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.mission-text {
    padding: 40px;
}

.mission-text h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
}

.mission-text p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.mission-text ul {
    margin-top: 20px;
}

.mission-text ul li {
    font-size: 1em;
    color: var(--text-color);
}

.mission-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
}

.mission-images img {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: var(--border-radius-md);
    filter: brightness(0.9);
    transition: filter var(--transition-speed);
}

.mission-images img:hover {
    filter: brightness(1);
}

/* Services Section - FEATURE HIGHLIGHTS (Alternating Layouts) */
.services-section {
    background: var(--background-dark);
}

.feature-blocks {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    text-align: left;
}

.feature-block--alt {
    flex-direction: row-reverse; /* Alternating layout */
}

.feature-block img {
    width: 50%;
    max-width: 500px;
    height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    filter: brightness(0.9);
    transition: filter var(--transition-speed);
}

.feature-block img:hover {
    filter: brightness(1);
}

.feature-block .feature-content {
    width: 50%;
}

.feature-block h3 {
    margin-top: 0;
    font-size: 2em;
    color: var(--primary-color);
}

.feature-block p {
    color: var(--secondary-text-color);
}

.feature-block ul {
    margin-top: 15px;
}

.feature-block ul li {
    color: var(--text-color);
}

/* Solutions Section - STEP BY STEP */
.solutions-section {
    background: var(--background-darker);
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    padding: 30px;
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 1;.7;
    text-shadow: 0 0 10px rgba(var(--primary-color), 0.5);
}

.step-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.step-card p {
    color: var(--secondary-text-color);
    font-size: 1em;
}

/* Showcase/Highlights - FEATURED WORK */
.featured-work-section {
    background: var(--background-dark);
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.featured-item {
    padding: 20px;
    text-align: center;
}

.featured-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    filter: brightness(0.9);
    transition: filter var(--transition-speed);
}

.featured-item img:hover {
    filter: brightness(1);
}

.featured-item h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.featured-item p {
    color: var(--secondary-text-color);
}

/* Portfolio/Gallery - CATEGORY TABS */
.portfolio-section {
    background: var(--background-darker);
    text-align: center;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 10px;
    gap: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--secondary-text-color);
    cursor: pointer;
    border-radius: var(--border-radius-md);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.tab-button.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-color), 0.3);
}

.tab-content-wrapper {
    position: relative;
    min-height: 400px; /* Ensure space for content */
}

.tab-pane {
    display: none; /* Hidden by default */
    opacity: 1;
    transition: opacity var(--transition-speed) ease-out;
    grid-template-columns: repeat(3, 1fr); /* Default grid for gallery */
    gap: 30px;
    padding-top: 20px;
    animation: fadeIn 0.5s forwards;
}

.tab-pane.active {
    opacity: 1;
    display: grid; /* Display as grid when active */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    padding: 15px;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    filter: brightness(0.9);
    transition: filter var(--transition-speed);
}

.gallery-item img:hover {
    filter: brightness(1);
}

.gallery-item p {
    color: var(--secondary-text-color);
    font-size: 0.95em;
}

/* Clients Section - STAR RATINGS */
.testimonials-section {
    background: var(--background-dark);
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .rating {
    font-size: 1.2em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.testimonial-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.testimonial-card p {
    color: var(--secondary-text-color);
    font-style: italic;
    flex-grow: 1;
}

.testimonial-card .author {
    margin-top: 20px;
    font-weight: 500;
    color: var(--text-color);
    font-style: normal;
}

/* Team Section - DEPARTMENT SECTIONS */
.team-section {
    background: var(--background-darker);
    text-align: center;
}

.department-section {
    margin-bottom: 60px;
}

.department-section h3 {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-member {
    padding: 25px;
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(var(--primary-color), 0.4);
    transition: transform var(--transition-speed);
}

.team-member img:hover {
    transform: scale(1.05);
}

.team-member h4 {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.95em;
    color: var(--secondary-text-color);
    margin-bottom: 10px;
}

/* FAQ Section - INTERACTIVE CHAT */
.faq-section {
    background: var(--background-dark);
    text-align: center;
}

.faq-chat-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start; /* Start messages from the left */
}

.chat-message {
    width: 100%;
    text-align: left;
    transition: background-color var(--transition-speed);
}

.chat-message.user-question {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--primary-color);
    padding: 20px 25px;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.chat-message.user-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-question {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0;
    cursor: pointer;
    display: block;
    position: relative;
    padding-right: 30px; /* Space for arrow indicator */
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform var(--transition-speed);
}

.faq-question[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    color: var(--secondary-text-color);
    padding-top: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Separator line */
    margin-top: 15px;
}

.faq-answer[aria-hidden="false"] {
    padding-top: 15px;
}


/* Support Section - CENTERED FORM (Static, no inputs) */
.support-section {
    background: var(--background-darker);
    text-align: center;
}

.centered-form-layout {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-instruction {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
}

.form-field {
    width: 100%;
    margin-bottom: 25px;
    text-align: left;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.static-input-field,
.static-textarea-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 12px 15px;
    color: var(--secondary-text-color);
    font-size: 1em;
    width: 100%;
    min-height: 45px;
    display: flex;
    align-items: center; /* Vertically center content */
}

.static-textarea-field {
    min-height: 120px;
    align-items: flex-start; /* Align text to top for multi-line */
    padding-top: 12px;
}

.form-footer-info {
    margin-top: 30px;
    font-size: 0.95em;
    color: var(--secondary-text-color);
    text-align: center;
}


/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    margin: 0;
    font-size: 0.9em;
    color: var(--secondary-text-color);
}

.footer-nav ul {
    display: flex;
    gap: 20px;
}

.footer-nav ul li a {
    color: var(--secondary-text-color);
    font-size: 0.9em;
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.8em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.6em; }

    .main-nav ul {
        gap: 20px;
    }

    .hero-content h2 {
        font-size: 3em;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mission-images {
        grid-template-columns: repeat(2, 1fr);
    }
    .mission-images img {
        height: 250px;
    }

    .feature-block, .feature-block--alt {
        flex-direction: column;
        text-align: center;
    }

    .feature-block img, .feature-block .feature-content {
        width: 100%;
        max-width: none;
    }

    .steps-grid, .featured-grid, .gallery-grid, .testimonials-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 5px 10px;
    }

    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .hero-content {
        padding: 30px;
    }
    .hero-content h2 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }

    section {
        padding: 60px 0;
    }

    .mission-images {
        grid-template-columns: 1fr;
    }
    .mission-images img {
        height: 200px;
    }

    .steps-grid, .featured-grid, .gallery-grid, .testimonials-grid, .team-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-wrap: wrap;
        max-width: 100%;
        padding: 10px 0;
    }
    .tab-button {
        flex-grow: 1;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }
    .footer-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 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-on-scroll {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.animate-on-scroll.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;}
