:root {
    --primary-color: #0f766e;
    /* Deep Teal */
    --primary-light: #14b8a6;
    --primary-dark: #0f5132;
    --accent-color: #f59e0b;
    /* Amber/Gold */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --nav-height: 80px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.3);
}

.btn-primary.large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-icon {
    color: var(--accent-color);
    display: flex;
}

.nav-logo-img {
    height: 64px !important;
    /* Force height */
    width: auto !important;
    max-width: 150px;
    /* Prevent it from getting too wide */
    object-fit: contain;
    display: block;
    /* Remove inline behaviors */
}

.footer-logo-img {
    height: 110px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    /* Cover everything */
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    /* Ensure blur doesn't leak */
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Backdrop Blur Layer */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darken background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}

.slide img {
    position: relative;
    z-index: 2;
    height: 100%;
    width: auto;
    /* Allow natural width based on height */
    max-width: 100%;
    display: block;
    margin-left: auto;
    /* Align to the right side */
    margin-right: 0;
    object-fit: contain;
    /* Show the full image */
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    /* Shadow to separate from bg */
}

/* Update Gradient to be on top of background but below text/img */
.slide::after {
    display: none;
    /* Remove old gradient, using backdrop instead */
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Align to the left side */
    padding-left: 8%;
    padding-right: 5%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem 3rem;
    border-radius: var(--radius-lg);
    text-align: left;
    /* Align text left for better readability on side */
    color: var(--white);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    /* Reduce width to see image */
    animation: slideRight 0.8s ease-out;
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Layout Right Alternations */
.slide.layout-right .hero-content {
    align-items: flex-end;
    /* Align to right */
    padding-right: 8%;
    padding-left: 5%;
}

.slide.layout-right .glass-card {
    text-align: right;
    /* Text align right */
    animation: slideLeft 0.8s ease-out;
}

.slide.layout-right img {
    margin-left: 0;
    margin-right: auto;
    /* Push image to left */
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    /* Shadow on other side */
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.6);
    /* Black border for visibility */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Subtle shadow for extra pop */
}

.indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Feature Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background-color: var(--text-main);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--primary-light);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-logo-img {
        height: 40px !important;
    }

    .logo {
        gap: 8px;
        /* Reduce gap slightly */
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Restore Full Height Image Layout */
    .slide img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        /* Cover the screen */
        object-position: top center;
        /* IMPORTANT: Keep faces visible at top */
        margin: 0 !important;
        box-shadow: none !important;
    }

    /* Ensure the blur background wrapper is also full screen */
    .slide {
        background-position: center top;
    }

    .hero-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 20px;
        /* Align content to bottom */
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center !important;
        /* Center card horizontally */
    }

    .glass-card {
        width: 100%;
        max-width: 100% !important;
        margin-bottom: 50px;
        /* Space for indicators */
        padding: 1.5rem;
        text-align: left !important;

        /* RESTORE GLASS EFFECT */
        background: rgba(255, 255, 255, 0.2);
        /* Translucent */
        /* Translucent */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-lg);
        color: var(--white);
        /* White text again for contrast on blur */
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

        /* Reset specific desktop animations if needed, main slide animation handles entry */
        transform: none !important;
        animation: none !important;
    }

    /* SPECIFIC FIX: Only the first slide needs the dark background for contrast */
    .slide:first-child .glass-card {
        background: rgba(15, 23, 42, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .glass-card .hero-title {
        font-size: 2rem;
        color: var(--white);
        /* White text */
        margin-bottom: 0.5rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .glass-card .hero-description {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 1.2rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);

        /* Show full text */
        display: block;
        overflow: visible;
    }

    .hero-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Indicators move up slightly */
    .carousel-indicators {
        bottom: 20px;
        z-index: 30;
    }

    /* Revert indicators to white since card is dark/glassy */
    .indicator {
        background: rgba(255, 255, 255, 0.4);
    }

    .indicator.active {
        background: var(--white);
    }

    /* Specific fix for group photos (Slide 2 & 4) on mobile to avoid cutting sides */
    .slide:nth-child(2) img,
    .slide:nth-child(4) img {
        object-fit: contain !important;
        height: 65% !important;
        /* Occupy top ~2/3 of screen */
        object-position: center bottom !important;
        /* Sit just above the card area roughly */
        margin-top: 5% !important;
    }
}

/* Contact Section Styles - New Addition */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Text narrower, Form wider */
    gap: 50px;
    align-items: center;
    /* Vertically center the text relative to form */
    max-width: 1000px;
    /* Slightly tighter width */
    margin: 0 auto;
}

.contact-text-area {
    padding-top: 0;
    text-align: right;
    /* Align text towards the form for better flow */
}

.contact-text-area p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    margin-left: auto;
    /* Push lines to right if they are blocks */
}

.contact-form-area {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Form Styles */
.contact-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
    /* Darker label */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    /* Subtle border instead of gray bg */
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
    width: 100%;
    /* Full width button */
    display: block;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Contact Text Side */
.contact-text-area p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Responsive Contact */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-text-area {
        text-align: center;
        /* Center text on mobile */
        padding-bottom: 20px;
    }

    .contact-text-area p {
        margin-left: 0;
        /* Remove right-align offset */
        margin-right: 0;
    }

    .contact-form-area {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* About Us Layout - Image Right */
.about-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    /* Take remaining space */
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-image {
    flex: 1;
    /* Take equal space roughly, or adjust */
    max-width: 500px;
    /* Limit width to keep it balanced */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Responsive About Us */
@media (max-width: 768px) {
    .about-layout {
        flex-direction: column;
    }

    .about-image {
        display: block;
        /* Show image */
        width: 100%;
        margin-top: 30px;
    }
}

/* New Combined Footer Layout */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Wrapper for Image + Brand Details */
.footer-brand {
    flex: 2;
    /* Takes up more space on the left */
}

.footer-brand-container {
    display: flex;
    /* Row layout */
    align-items: center;
    gap: 40px;
    /* Space between photo and brand text */
}

.footer-feat-img {
    max-width: 250px;
    /* Control image width */
    height: auto;
    max-height: 350px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align brand text */
    text-align: left;
}

/* Social on the Right */
.footer-social {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-icons a {
    width: 50px;
    /* Larger icons */
    height: 50px;
    font-size: 1.2rem;
    /* Initial size was likely smaller */
}

.footer-logo-img {
    height: 110px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

/* Responsive Footer updates */
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand-container {
        flex-direction: column;
        /* Stack image and text */
        text-align: center;
        gap: 20px;
    }

    .footer-brand-text {
        align-items: center;
        text-align: center;
    }

    .footer-social {
        align-items: center;
    }

    /* Hide the feature image on very small screens if desired, or keep checking user pref. */
    .footer-feat-img {
        max-width: 100%;
        max-height: 250px;
        /* Smaller on mobile */
    }
}

@media (max-width: 768px) {
    .footer-feat-img {
        display: none;
        /* Hide on mobile per original request */
    }
}

/* Adjustment for Slide 4 - Move card down and compact it */
.slide:nth-child(4) .hero-content {
    justify-content: flex-end;
    padding-bottom: 70px;
    /* Clear the dots (30px bottom + height) */
}

.slide:nth-child(4) .glass-card {
    padding: 3rem;
    /* Increased padding */
    max-width: 750px;
    /* Wider for big screens */
}