:root {
    --color-bg-primary: #0a111a;
    --color-bg-secondary: #1c2733;
    --color-glass-light: rgba(255, 255, 255, 0.08); /* Frosted white */
    --color-glass-dark: rgba(255, 255, 255, 0.04); /* Darker frosted white */
    --color-accent-blue: #8ecafb; /* Icy blue */
    --color-accent-blue-light: #b3dbff;
    --color-text-light: #e0f2f7; /* Light text */
    --color-text-dark: #c0e6fa; /* Lighter heading */
    --color-text-dim: #a7b7c2;

    --font-primary: 'Inter', sans-serif;

    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
    --blur-strength: 10px;

    --gradient-bg: linear-gradient(135deg, var(--color-bg-primary), var(--color-bg-secondary));
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-bg);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--color-text-dark);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2rem; }

p {
    color: var(--color-text-dim);
}

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-blue-light);
}

/* Glassmorphic Card */
.glass-card {
    background: var(--color-glass-light);
    backdrop-filter: blur(var(--blur-strength));
    border: var(--border-glass);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--color-glass-dark);
    transform: translateY(-5px);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    z-index: -1;
}


/* Header & Navbar */
.header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('images/image_19.jpg') center center / cover no-repeat;
    text-align: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.3); /* Slightly opaque background */
    backdrop-filter: blur(var(--blur-strength));
    z-index: 1000;
    border-bottom: var(--border-glass);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent-blue-light);
    text-shadow: 0 0 10px var(--color-accent-blue);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--color-text-light);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(142, 202, 251, 0.7);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: var(--color-text-light);
    opacity: 1;.9;
}

.hero-actions .btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn {
    background: var(--color-accent-blue);
    color: var(--color-bg-primary);
    border: 2px solid var(--color-accent-blue);
}

.btn:hover {
    background: var(--color-accent-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(142, 202, 251, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent-blue);
    border: 2px solid var(--color-accent-blue);
}

.btn-secondary:hover {
    background: var(--color-accent-blue);
    color: var(--color-bg-primary);
    box-shadow: 0 10px 20px rgba(142, 202, 251, 0.4);
}


/* Section Styling */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-accent-blue);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 60px;
    color: var(--color-text-dim);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Mission Section */
.mission-section {
    background: var(--gradient-bg);
}

.mission-section .two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mission-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.mission-text h2::after {
    left: 0;
    transform: translateX(0);
}

.mission-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.mission-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.mission-images .glass-card-img {
    width: 100%;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
    border: var(--border-glass);
}


/* Solutions Section */
.solutions-section {
    background: var(--gradient-bg);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3-card layout */
    gap: 40px;
}

.solution-card {
    text-align: center;
    padding: 30px;
}

.solution-card .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.3s ease;
}

.solution-card:hover .card-img {
    filter: grayscale(0%) brightness(1);
}

.solution-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.solution-card p {
    font-size: 1rem;
    color: var(--color-text-dim);
}


/* Services Section */
.services-section {
    background: var(--gradient-bg);
}

.service-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.service-block:last-child {
    margin-bottom: 0;
}

.service-block .service-content {
    flex: 1;
    padding: 40px;
}

.service-block .service-content h3 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.service-block .service-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.service-block .service-content ul {
    list-style: none;
    padding-left: 0;
}

.service-block .service-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--color-text-light);
    font-weight: 500;
}

.service-block .service-content ul li::before {
    content: '✓';
    color: var(--color-accent-blue);
    position: absolute;
    left: 0;
    top: 0;
}

.service-block .service-image {
    flex: 1;
}

.service-block .service-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: var(--border-glass);
    transition: transform 0.3s ease;
}

.service-block .service-image img:hover {
    transform: scale(1.02);
}

.service-block.reverse {
    flex-direction: row-reverse;
}


/* Team Section */
.team-section {
    background: var(--gradient-bg);
}

.team-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 50px; /* Space for nav buttons */
}

.team-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: max-content; /* Allow content to dictate width */
}

.team-member {
    min-width: 380px; /* Fixed width for each member */
    margin-right: 30px; /* Spacing between members */
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--color-accent-blue);
    box-shadow: 0 0 0 5px rgba(142, 202, 251, 0.2);
    filter: grayscale(80%);
    transition: all 0.3s ease;
}

.team-member:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-member h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 1.1rem;
    color: var(--color-text-dim);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
    pointer-events: none; /* Allow clicks through to content */
}

.slider-button {
    background: var(--color-glass-light);
    backdrop-filter: blur(var(--blur-strength));
    border: var(--border-glass);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    color: var(--color-accent-blue);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    pointer-events: all; /* Make buttons clickable */
    user-select: none;
}

.slider-button:hover {
    background: var(--color-accent-blue);
    color: var(--color-bg-primary);
    transform: scale(1.1);
}
.slider-button span {
    display: block; /* Ensures centered text */
    line-height: 1; /* Adjusts vertical alignment */
}


/* Clients Section */
.clients-section {
    background: var(--gradient-bg);
}

.quote-panel {
    max-width: 900px;
    margin: 40px auto;
    padding: 50px;
    text-align: center;
}

.large-quote {
    font-size: 2.2rem;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.4;
    position: relative;
}

.large-quote::before,
.large-quote::after {
    font-size: 4rem;
    color: var(--color-accent-blue);
    opacity: 1;.6;
    position: absolute;
    line-height: 0;
}

.large-quote::before {
    content: '“';
    top: 0;
    left: -20px;
}

.large-quote::after {
    content: '”';
    bottom: 0;
    right: -20px;
}

.quote-author {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-top: 30px;
}

/* Pricing Section */
.pricing-section {
    background: var(--gradient-bg);
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Feature column + 3 pricing tiers */
    gap: 1px; /* Visual separation for table cells */
    overflow: hidden;
    border-radius: 15px;
    background: var(--color-glass-dark); /* Darker border between cells */
    box-shadow: var(--shadow-soft);
}

.pricing-header .pricing-cell {
    background: var(--color-glass-light);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 25px 20px;
    color: var(--color-text-dark);
    border-bottom: var(--border-glass);
}

.pricing-row {
    display: contents; /* Allows grid items to flow as rows without creating an actual row container */
}

.pricing-cell {
    background: var(--color-glass-dark);
    padding: 18px 20px;
    color: var(--color-text-light);
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05); /* Internal cell border */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 400;
}

.pricing-cell:last-child {
    border-right: none;
}

.pricing-row:last-child .pricing-cell {
    border-bottom: none;
}

.pricing-cell.feature-name {
    text-align: left;
    font-weight: 500;
    color: var(--color-text-light);
    background: var(--color-glass-light);
}

.pricing-cell.check {
    font-size: 1.5rem;
    color: var(--color-accent-blue);
    font-weight: 700;
}

.pricing-cell.check:empty {
    color: var(--color-text-dim);
    font-size: 1.2rem;
    content: '—'; /* Placeholder for empty cells */
}

/* FAQ Section */
.faq-section {
    background: var(--gradient-bg);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    user-select: none;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.5rem;
    color: var(--color-text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-item h3:hover {
    color: var(--color-accent-blue-light);
}

.faq-item h3::after {
    content: '+';
    font-size: 2rem;
    color: var(--color-accent-blue);
    transition: transform 0.3s ease;
}

.faq-item.active h3::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item p {
    font-size: 1.05rem;
    color: var(--color-text-dim);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
    padding-top: 0;
    opacity: 1;
}

.faq-item.active p {
    max-height: 200px; /* Arbitrary large enough value */
    padding-top: 20px;
    opacity: 1;
}


/* Newsletter Section */
.newsletter-section {
    background: var(--gradient-bg);
}

.newsletter-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 50px;
}

.newsletter-card h2 {
    margin-bottom: 20px;
}

.newsletter-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.placeholder-text {
    font-style: italic;
    color: var(--color-accent-blue);
    font-size: 1.2rem;
    margin-top: 20px;
}

/* Support Section (Map Integration) */
.support-section {
    padding: 0; /* Remove default padding as map takes full height */
    position: relative;
    height: 600px; /* Fixed height for the map container */
    overflow: hidden;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.5); /* Dim and desaturate map */
}

.contact-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 50px;
    max-width: 600px;
    text-align: center;
}

.contact-overlay h2 {
    margin-bottom: 20px;
}

.contact-overlay p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}


/* Footer */
.footer {
    background: var(--color-bg-primary);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-dim);
    border-top: var(--border-glass);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.7rem; }

    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none; /* Hide nav links on smaller screens, can be replaced with a hamburger menu */
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-actions .btn {
        padding: 12px 25px;
        font-size: 1rem;
        margin: 0 10px;
    }

    .section {
        padding: 80px 0;
    }

    .mission-section .two-column-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .mission-text h2, .mission-text h2::after {
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
    }

    .solution-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust for smaller cards */
        gap: 30px;
    }

    .service-block, .service-block.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 60px;
    }

    .service-block .service-content {
        padding: 30px;
    }

    .team-member {
        min-width: 300px; /* Adjust for smaller screens */
        margin-right: 20px;
    }
    
    .team-slider-container {
        padding: 0 20px;
    }

    .slider-button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .quote-panel {
        padding: 40px;
        margin: 30px auto;
    }

    .large-quote {
        font-size: 1.8rem;
    }

    .quote-author {
        font-size: 1.1rem;
    }

    .pricing-table {
        grid-template-columns: 1fr 1fr; /* Stack columns on smaller screens */
    }

    .pricing-header .pricing-cell:first-child {
        grid-column: span 2; /* Feature header spans both columns */
    }

    .pricing-header .pricing-cell:nth-child(2),
    .pricing-header .pricing-cell:nth-child(3),
    .pricing-header .pricing-cell:nth-child(4) {
        grid-column: span 1; /* Each tier header gets 1 column */
    }

    /* Restyle pricing rows for 2 columns (feature + single tier) */
    .pricing-row {
        display: contents; /* Ensure grid flow */
    }

    .pricing-row .pricing-cell:first-child {
        grid-column: span 1; /* Feature name is in first column */
        text-align: left;
    }
    .pricing-row .pricing-cell:not(:first-child) {
        grid-column: span 1; /* Each tier value is in a single column */
    }

    .pricing-header, .pricing-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller views */
    }

    .pricing-header .pricing-cell:first-child {
        grid-column: span 2;
        text-align: center;
    }
    .pricing-header .pricing-cell:nth-child(2),
    .pricing-header .pricing-cell:nth-child(3),
    .pricing-header .pricing-cell:nth-child(4) {
        display: none; /* Hide individual tier names in header on small screen */
    }

    .pricing-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-row .pricing-cell:nth-child(2),
    .pricing-row .pricing-cell:nth-child(3),
    .pricing-row .pricing-cell:nth-child(4) {
        display: none; /* Hide individual tier data */
    }
    .pricing-row .pricing-cell:nth-child(2):first-of-type { /* Show the first tier's data */
        display: block; /* Or grid-column span 1 */
    }
    /* This part of pricing table might need more complex JS to dynamically switch visible column or a very different structure for small screen.
       For the given requirements (grid-template-columns: repeat(3, 1fr) or repeat(auto-fit, minmax(300px, 1fr))),
       a pricing table that changes to two columns and still shows feature + all tiers is hard.
       A simpler approach for mobile would be to show feature + ONE tier at a time, or stack the tiers vertically.
       Let's assume the pricing table must maintain its feature comparison nature.
       For strict column count, I will use `grid-template-columns: 1fr` and allow vertical stacking on mobile. */

    .pricing-table {
        grid-template-columns: 1fr; /* Stack all cells */
    }
    .pricing-header, .pricing-row {
        grid-template-columns: 1fr;
    }
    .pricing-header .pricing-cell,
    .pricing-row .pricing-cell {
        grid-column: span 1; /* Ensure each cell takes full width */
        text-align: left; /* Align text left when stacked */
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .pricing-header .pricing-cell:not(:first-child) {
        padding-top: 10px; /* Add padding for visual separation when stacked */
    }
    .pricing-cell.feature-name {
        background: var(--color-glass-dark); /* Less distinction when stacked */
    }
    .pricing-cell.check {
        text-align: left; /* Adjust alignment */
    }
    .pricing-cell:last-child {
        border-bottom: none;
    }


    .faq-list {
        padding: 30px;
    }

    .map-container {
        height: 400px;
    }

    .contact-overlay {
        padding: 30px;
        max-width: 90%;
    }

    .contact-overlay h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        margin: 10px 0;
        width: 80%;
    }

    .nav-links {
        /* Mobile menu toggle would be here */
    }

    .logo {
        font-size: 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .solution-grid {
        grid-template-columns: 1fr; /* Stacks cards on mobile */
    }

    .team-slider {
        margin-left: -100px; /* Adjust as needed */
    }
    .team-member {
        min-width: 280px;
        margin-right: 15px;
        padding: 20px;
    }

    .large-quote {
        font-size: 1.5rem;
    }
    .large-quote::before, .large-quote::after {
        font-size: 3rem;
    }

    .pricing-table {
        /* already handled by stacking for <1024px */
    }

    .faq-item h3 {
        font-size: 1.2rem;
    }

    .map-container {
        height: 300px;
    }

    .contact-overlay {
        padding: 20px;
    }

    .contact-overlay h2 {
        font-size: 1.5rem;
    }

    .newsletter-card {
        padding: 30px;
    }
}
/* 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);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
