:root {
    --primary-font: 'Poppins', sans-serif;
    --dark-blue-bg: #0d1a2c;
    --light-gray-text: #e0e6ed;
    --translucent-white: rgba(255, 255, 255, 0.1);
    --translucent-white-hover: rgba(255, 255, 255, 0.15);
    --frosted-blur: 15px;
    --border-radius: 12px;
    --spacing-unit: 1rem;
    --section-padding: 6rem;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: var(--light-gray-text);
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1a2c 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.section-padding {
    padding: var(--section-padding) 0;
}

/* Glassmorphic Card Styling */
.glass-card {
    background: var(--translucent-white);
    backdrop-filter: blur(var(--frosted-blur));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--spacing-unit);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

h3 {
    font-size: 2rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-unit);
}

.section-title {
    position: relative;
    padding-bottom: var(--spacing-unit);
    color: #ffffff;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6dd5ed 0%, #2193b0 100%);
    border-radius: 5px;
}

.section-subtitle {
    font-size: 1.8rem;
    color: #ffffff;
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #6dd5ed, #2193b0);
    color: #ffffff;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 147, 176, 0.4);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(33, 147, 176, 0.6);
}

/* Header & Navigation */
.main-header {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: var(--spacing-unit) 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.brand-logo:hover {
    color: #6dd5ed;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: calc(var(--spacing-unit) * 2);
}

.nav-links a {
    color: var(--light-gray-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #6dd5ed;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #6dd5ed;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/image_34.jpg') no-repeat center center/cover; /* Large background image */
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Overlay */
    backdrop-filter: blur(3px); /* Gentle blur */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: calc(var(--spacing-unit) * 3);
    background: rgba(255, 255, 255, 0.05); /* Lighter translucent panel */
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-out forwards;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: var(--spacing-unit);
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.7rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: #a0a8b4;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto calc(var(--spacing-unit) * 3);
    color: var(--light-gray-text);
}

/* About Section */
.about-section .glass-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.key-benefits {
    list-style: none;
    padding: 0;
    margin-top: calc(var(--spacing-unit) * 2);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-unit) * 2;
}

.key-benefits li {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    color: #e0e6ed;
    transition: background 0.3s ease;
}

.key-benefits li:hover {
    background: rgba(255, 255, 255, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
    padding: calc(var(--spacing-unit) * 2);
    background: var(--translucent-white-hover);
    backdrop-filter: blur(var(--frosted-blur) * 0.7);
    border-radius: var(--border-radius);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-unit);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #6dd5ed;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #e0e6ed;
}

/* Services Section */
.services-section .glass-card {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
}

.process-step {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(109, 213, 237, 0.05) 0%, rgba(33, 147, 176, 0.05) 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.process-step:hover::before {
    opacity: 1;
}


.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #6dd5ed, #2193b0);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-unit);
    box-shadow: 0 4px 15px rgba(33, 147, 176, 0.3);
}

.process-step h4 {
    margin-bottom: var(--spacing-unit);
}

/* Gallery Section (Masonry Grid) */
.gallery-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-unit);
    margin-bottom: calc(var(--spacing-unit) * 3);
    padding: 0.8rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    color: var(--light-gray-text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(109, 213, 237, 0.1), rgba(33, 147, 176, 0.1));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    border-radius: 50px;
    z-index: -1;
}

.tab-button.active,
.tab-button:hover {
    color: #ffffff;
}

.tab-button.active::before {
    transform: scaleX(1);
    transform-origin: left;
}
.tab-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}


.tab-pane {
    display: none; /* Hidden by default */
    animation: fadeIn 0.8s ease-out forwards;
}

.tab-pane.active {
    display: grid; /* Display as grid when active */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 cards per row responsive */
    grid-auto-rows: 200px; /* Base height for rows */
    grid-gap: calc(var(--spacing-unit) * 1.5);
    padding-top: calc(var(--spacing-unit) * 2);
}

.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:nth-child(2n+1) { /* Varying heights */
    grid-row-end: span 2;
}

.gallery-item:nth-child(3n+2) {
    grid-row-end: span 3;
}

.gallery-item:nth-child(5n+3) {
    grid-row-end: span 2;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Team Section */
.team-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards */
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
}

.team-member {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    border: 4px solid rgba(109, 213, 237, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.team-member h4 {
    margin-bottom: 0.5rem;
    color: #6dd5ed;
}

.team-member .role {
    font-size: 0.95rem;
    color: #a0a8b4;
    margin-bottom: var(--spacing-unit);
}

/* Testimonials Section */
.testimonials-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards */
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
}

.testimonial-card {
    padding: calc(var(--spacing-unit) * 2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    border: 3px solid rgba(109, 213, 237, 0.4);
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: var(--spacing-unit);
    font-size: 1.05rem;
    color: #e0e6ed;
}

.testimonial-card .author {
    font-weight: 600;
    color: #6dd5ed;
    font-size: 1.1rem;
}

/* Showcase Section (Timeline) */
.showcase-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: calc(var(--spacing-unit) * 4) auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    position: relative;
    background: var(--translucent-white);
    backdrop-filter: blur(var(--frosted-blur));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    width: 45%;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -14px;
    background-color: #6dd5ed;
    border: 4px solid #ffffff;
    top: calc(var(--spacing-unit) * 2.5);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 55%;
}

.timeline-item:nth-child(even)::after {
    left: -11px;
    right: auto;
}

.timeline-item .timeline-date {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2193b0;
    margin-bottom: var(--spacing-unit);
}

.timeline-item h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

.faq-list {
    max-width: 800px;
    margin: calc(var(--spacing-unit) * 3) auto;
}

.faq-item {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.3rem;
    font-weight: 500;
    color: #6dd5ed;
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 1rem;
    color: var(--light-gray-text);
}

/* Contact Section */
.contact-section .glass-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quick-contact-actions {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: calc(var(--spacing-unit) * 2) 0;
    text-align: center;
    font-size: 0.9rem;
    color: #a0a8b4;
    margin-top: auto; /* Pushes footer to the bottom */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    h3 {
        font-size: 1.6rem;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
    .nav-links {
        display: none; /* Hide for smaller screens, could add a hamburger menu if allowed */
    }
    .main-header .container {
        justify-content: center; /* Center logo if no nav links */
    }
    .glass-card {
        padding: calc(var(--spacing-unit) * 2);
    }
    .timeline::after {
        left: 18px;
    }
    .timeline-item {
        width: 100%;
        padding-left: calc(var(--spacing-unit) * 5);
        padding-right: var(--spacing-unit);
    }
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }
    .timeline-item::after {
        left: 5px;
        right: auto;
    }
    .timeline-item:nth-child(even)::after {
        left: 5px;
    }
    .quick-contact-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    --section-padding: 4rem;
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .stats-grid,
    .process-steps-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    .gallery-item:nth-child(2n+1),
    .gallery-item:nth-child(3n+2),
    .gallery-item:nth-child(5n+3) {
        grid-row-end: span 1; /* Reset masonry effect for single column */
    }
    .tab-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    .nav-links {
        flex-direction: column;
        align-items: center;
        margin-top: calc(var(--spacing-unit) * 2);
    }
    .nav-links li {
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    .brand-logo {
        font-size: 1.5rem;
    }
    .glass-card {
        padding: calc(var(--spacing-unit) * 1.5);
    }
}

/* 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;}
