/* ========================================
   LOUD IMC - Custom Styles
   ======================================== */

:root {
    --primary: #65C2BF;
    /* Mint Green */
    --primary-light: #8EDDD9;
    /* Lighter Mint */
    --accent: #2F5C6E;
    /* Dark Teal */
    --accent-light: #3E768C;
    --accent-glow: rgba(101, 194, 191, 0.3);
    --text: #1F2937;
    /* Dark Slate */
    --text-muted: #6B7280;
    /* Muted Grey */
    --bg-light: #F3F8F8;
    /* Subtle Mint Tint */
    --bg-card: #ffffff;
    /* Explicitly set to white for revert */
    --bg-main: #ffffff;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #65C2BF 0%, #2F5C6E 100%);
    --gradient-2: linear-gradient(135deg, #2F5C6E 0%, #65C2BF 100%);
    --shadow: 0 25px 50px -12px rgba(47, 92, 110, 0.15);
    --shadow-sm: 0 4px 6px -1px rgba(47, 92, 110, 0.05);
    --radius: 12px;
    /* Slightly more geometric */
    --radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
    padding: 1rem 0;
    background: transparent !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(47, 92, 110, 0.98) !important;
    /* Dark Teal */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent) !important;
    /* Dark Teal */
    letter-spacing: -0.02em;
}

.nav-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.brand-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    color: var(--white) !important;
    /* White Text */
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Premium Navbar CTA Button */
.btn-join-nav {
    background: var(--gradient-1);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-join-nav:hover {
    transform: translateY(-2px);
    background: var(--gradient-2);
}

.nav-item.dropdown .nav-link::after {

    display: none;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    padding: 0.5rem 1.25rem;
    color: var(--text);
    transition: var(--transition);
}

.navbar .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--accent);
}

.navbar .dropdown-toggle::after {
    margin-left: 0.35em;
}

/* Mobile Navbar Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(47, 92, 110, 0.98);
        padding: 1rem;
        border-radius: var(--radius-sm);
        margin-top: 0.5rem;
    }

    .navbar .dropdown-menu {
        background: transparent;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0;
    }

    .navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 0.5rem 0;
    }

    .navbar .dropdown-item:hover {
        background: transparent;
        color: var(--white) !important;
        padding-left: 5px;
    }

    .hero-content {
        text-align: center;
        padding-top: 6rem;
    }

    .hero-title {
        position: relative;
        /* Reset absolute positioning for mobile flow */
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* ========================================
   HERO SECTION (Dentsu Style)
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    /* Full viewport height */
    width: 100%;
    display: flex;
    align-items: flex-start;
    /* Align to top to control vertical position manually */
    overflow: hidden;
    padding-top: 0;
    background-image: url('images/we_meet copy.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    color: var(--white);
}

/* Dark Overlay */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark tint */
    z-index: 1;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 3;
    /* Above overlay */
    padding: 0 5%;
    /* Side padding */
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 25vh;
    /* Push content down to clear logo/navbar */
}

.hero-title-slider {
    margin-bottom: 2rem;
    min-height: auto;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    /* Massive */
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    /* Restore clean white for better readability */
    margin: 0;
    text-transform: none;
    /* Keep natural case or uppercase as needed */
    letter-spacing: -0.02em;
}

/* Ensure active title is visible */
.hero-title:not(.hero-title-active) {
    display: none;
}

.hero-title.hero-title-active {
    display: block;
}

.hero-title .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.btn-primary,
.btn-hero-primary {
    background: var(--white);
    color: var(--accent) !important;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    /* Sharper corners */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover,
.btn-hero-primary:hover {
    background: var(--primary);
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Clean up old elements */
.hero::before,
.hero::after,
.hero-image-container,
.hero-particles {
    display: none;
}


.btn-secondary:hover {
    background: var(--primary);
    color: var(--white) !important;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ========================================
   SECTION COMMON
   ======================================== */

.page-content {
    padding-top: 120px;
    min-height: 100vh;
}

@media (max-width: 991px) {
    .page-content {
        padding-top: 100px;
        /* Reduced for mobile */
    }
}

section {
    padding: 5rem 0;
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.2s forwards;
    /* Delay for title */
}

/* Page Body Text */
.page-body {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 0.4s forwards;
    /* Delay for text body */
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.page-hero-image {
    width: 100%;
    aspect-ratio: 4/3;
    /* Enforce a 4:3 rectangular aspect ratio */
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 0;
    /* For animation */
    animation: fadeSlideUp 0.8s ease-out forwards;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.page-hero-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.page-hero-image:hover img {
    transform: scale(1.03);
    /* Subtle zoom */
}

@media (max-width: 991px) {
    .page-hero-image {
        aspect-ratio: auto;
        /* Let height adapt */
        height: auto;
        max-height: 400px;
    }
}

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

.about-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-1);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.3;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   LOGO SLIDER SECTION
   ======================================== */

.logo-slider-section {
    padding: 4rem 0;
    background: var(--bg-light);
    overflow: hidden;
}

.logo-slider-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.logo-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.logo-slider-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.logo-slider-fade-left {
    left: 0;
    background: linear-gradient(90deg, var(--bg-light) 0%, transparent 100%);
}

.logo-slider-fade-right {
    right: 0;
    left: auto;
    background: linear-gradient(270deg, var(--bg-light) 0%, transparent 100%);
}

.logo-slider {
    display: flex;
    gap: 3rem;
    animation: logoSliderLoop 30s linear infinite;
}

.logo-slider:hover {
    animation-play-state: paused;
}

.logo-slider-item {
    flex-shrink: 0;
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: var(--transition);
}

.logo-slider-item:hover {
    transform: scale(1.1);
    box-shadow: none;
}

.logo-slider-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.4);
    opacity: 0.85;
    transition: var(--transition);
}

.logo-slider-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes logoSliderLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   HOW WE WORK - HORIZONTAL SLIDER
   ======================================== */

/* ========================================
   HOW WE WORK - HORIZONTAL SLIDER
   ======================================== */

.how-we-work-section {
    background: var(--white);
    /* Clean White */
    position: relative;
    padding: 5rem 0;
}

.work-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    /* Prevent buttons from bleeding into other sections */
}

.work-slider-wrapper {
    overflow: hidden;
    padding: 1.5rem 0;
    /* More breathing room */
}

.work-slider-track {
    display: flex;
    gap: 2rem;
    /* Increased gap */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1rem;
}

.work-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(47, 92, 110, 0.08);
    /* Subtle Teal Border */
    flex: 0 0 320px;
    min-width: 320px;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
    /* Mint Border on Hover */
}

.work-slider-container {
    position: relative;
    padding: 0 40px;
    /* Space for buttons */
}

.work-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* Circle */
    background: var(--white);
    border: 1px solid var(--accent-light);
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.work-slider-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.work-slider-prev {
    left: 0;
}

.work-slider-next {
    right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .work-card {
        flex: 0 0 280px;
        min-width: 280px;
    }

    .work-slider-btn {
        width: 40px;
        height: 40px;
    }

    .work-slider-prev {
        left: 0;
    }

    .work-slider-next {
        right: 0;
    }
}

.work-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.work-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(47, 92, 110, 0.2) 100%);
    opacity: 0;
    transition: var(--transition);
}

.work-card:hover .work-card-overlay {
    opacity: 1;
}

.work-card-body {
    padding: 1.5rem;
}

.work-card-body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    /* Dark Teal */
    margin-bottom: 0.5rem;
}

.work-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.work-card-cta {
    font-weight: 600;
    color: var(--primary);
    /* Mint Green */
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-card:hover .work-card-cta {
    gap: 0.75rem;
    color: var(--accent);
}

.work-card-cta i {
    font-size: 0.75rem;
}

/* ========================================
   SERVICES
   ======================================== */

.services-section {
    background: var(--bg-light);
    /* Subtle Mint Tint */
    padding: 5rem 0;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(47, 92, 110, 0.05);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(101, 194, 191, 0.1);
    /* Light Mint Bg */
    color: var(--primary);
    /* Mint Icon */
    font-size: 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}


.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    /* Dark Teal */
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog-section {
    background: var(--white);
    padding: 5rem 0;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(47, 92, 110, 0.08);
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 1rem;
    background: var(--white);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-content {
    padding: 1.75rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card:hover .blog-content h3 {
    color: var(--primary);
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.blog-link:hover {
    gap: 0.75rem;
    color: var(--accent);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

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

.contact-form .form-control {
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid #e2e8f0;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: var(--white) !important;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.contact-map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.contact-info i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

/* ========================================
   FOOTER
   ======================================== */

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--accent) !important;
    /* Dark Teal */
    color: var(--white) !important;
    padding: 5rem 0 2rem;
    position: relative;
    z-index: 10;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
    /* Mint Green Hover */
    transform: translateY(-2px);
}

/* Consolidated Footer Styles */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 50%;
    /* Circle */
    transition: var(--transition);
    background: transparent;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer h5,
.footer h6 {
    color: var(--white) !important;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.8;
}

.footer .small {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Footer Bottom Separator */
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Footer with Background Image */
.footer.footer-has-bg {
    background-color: #1a1a1a;
    border-top: none;
    position: relative;
    z-index: 1;
}

.footer.footer-has-bg .footer-brand,
.footer.footer-has-bg .footer-links a,
.footer.footer-has-bg .footer-bottom p,
.footer.footer-has-bg .about-text {
    color: #ffffff;
}

.footer.footer-has-bg .footer-links a:hover {
    color: var(--accent);
}

.footer.footer-has-bg .footer-main {
    position: relative;
    z-index: 2;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet and smaller desktop */
@media (max-width: 991px) {
    .hero-content {
        padding: 6rem 1rem 3rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-bar {
        gap: 2rem;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .contact-form .row {
        --bs-gutter-x: 0.5rem;
    }

    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-logo {
        height: 32px;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-content {
        padding: 5rem 1rem 2rem;
    }

    .hero-title-slider {
        min-height: 11em;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        /* Touch-friendly */
    }

    .about-section .row {
        flex-direction: column-reverse;
    }

    .about-text {
        font-size: 1rem;
        text-align: center;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .work-card-body {
        padding: 1.25rem;
    }

    .work-card-body h3 {
        font-size: 1.1rem;
    }

    .stat-bar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .services-section .row {
        --bs-gutter-y: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
        text-align: center;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto 1rem;
    }

    .blog-section .row {
        --bs-gutter-y: 2rem;
    }

    .blog-content {
        padding: 1.25rem;
    }

    .blog-content h3 {
        font-size: 1rem;
    }

    .contact-section .row {
        flex-direction: column;
    }

    .contact-form {
        margin-bottom: 2rem;
    }

    .contact-form .form-control {
        padding: 0.875rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .btn-submit {
        width: 100%;
        padding: 0.875rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .contact-map-wrapper {
        height: 300px;
    }

    .contact-info {
        text-align: center;
        padding: 1.25rem;
    }

    .logo-slider-item {
        width: 120px;
        height: 70px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .nav-logo {
        height: 28px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero-content {
        padding: 4rem 1rem 2rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 12vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .about-image-wrapper {
        margin-top: 2rem;
    }

    .work-card-image {
        height: 180px;
    }

    .blog-image {
        height: 180px;
    }

    .logo-slider-item {
        width: 100px;
        height: 60px;
    }

    .logo-slider-fade {
        width: 60px;
    }

    .stat-item {
        margin-bottom: 1rem;
    }

    .footer-main {
        gap: 1.5rem;
    }
}

/* AOS overrides */
[data-aos] {
    pointer-events: auto;
}

/* ========================================
   AI CHATBOT "SARA"
   ======================================== */

/* Chatbot Toggle */
.chat-widget-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-widget-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* If on mobile, stack them vertically? Or keep side by side?
   Let's keep side by side on desktop, stack on mobile. */
@media (max-width: 767px) {
    .chat-widget-toggle {
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

/* Chat Notification Badge */
.chat-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background-color: #ff4757;
    border: 2px solid var(--white);
    border-radius: 50%;
    z-index: 1002;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(255, 71, 87, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* Quick Actions Area */
.chat-quick-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    overflow-x: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    scrollbar-width: none;
    /* Firefox */
}

.chat-quick-actions::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.quick-action-btn {
    background: rgba(101, 194, 191, 0.1);
    color: var(--accent);
    border: 1px solid rgba(101, 194, 191, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.chat-widget {
    position: fixed;
    bottom: 6rem;
    left: 2rem;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--gradient-1);
    background-color: #f59e0b;
    /* Fallback color */
    padding: 1rem 1.25rem;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    /* Prevent collapse */
    width: 100%;
    z-index: 2;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.chat-title h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chat-title span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8fafc;
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.message.bot {
    align-self: flex-start;
    background: var(--white);
    color: var(--text);
    border-bottom-left-radius: 0.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.user {
    align-self: flex-end;
    background: var(--gradient-1);
    color: var(--white);
    border-bottom-right-radius: 0.2rem;
}

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    gap: 0.2rem;
    padding: 0.75rem 1.25rem !important;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.chat-input-area {
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    padding: 0.75rem 1.25rem;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--accent);
}

/* Sister Concern Section */
.sister-concern-section {
    border-top: 1px solid #f1f5f9;
}

.sister-logo {
    width: 60px;
    height: 60px;
    border: 2px solid #aec737;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.d-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #aec737;
    line-height: 1;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Sora';
    src: url('fonts/Sora-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 800;
    font-display: swap;
    font-style: normal;
}

.chat-send {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-send:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .chat-widget {
        width: calc(100% - 2rem);
        /* Full width minus margins */
        right: 1rem;
        left: 1rem;
        bottom: 5.5rem;
        /* Above floating buttons */
        height: 60vh;
    }
}

/* Highlight Gradient Text */
.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Form Validation & Feedback */
.form-control.is-invalid {
    border-color: #ff4757;
    animation: shake 0.4s ease-in-out;
    box-shadow: 0 0 0 0.25rem rgba(255, 71, 87, 0.1);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(47, 92, 110, 0.1);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Button Hero Primary */
.btn-hero-primary {
    background: var(--accent);
    /* Dark Teal */
    color: var(--white);
    padding: 0.8rem 2.5rem;
    border-radius: 12px;
    /* Slightly rounded */
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 92, 110, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    background: var(--primary);
    /* Mint Green on hover */
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(101, 194, 191, 0.4);
}

/* Footer Links Section */
.footer-links-section {
    background-color: var(--accent);
    /* Dark Blue */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
    color: var(--white);
    text-transform: uppercase;
}

.footer-link-list li {
    margin-bottom: 0.6rem;
}

.footer-link-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-link-list a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Stats Section (Transparent) */
.stats-section {
    position: relative;
    background: transparent;
    overflow: hidden;
}

.stats-bg-overlay {
    display: none;
    /* Removed for transparent look */
}

.stat-card {
    background: transparent;
    border: none;
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.stat-title {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    /* Reduced font size */
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    /* Reduced font size */
    font-weight: 700;
    /* Gradient Text */
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-number span {
    display: inline-block;
}

/* Mobile Stats Responsive */
@media (max-width: 991px) {
    .stat-card {
        padding: 1rem 0.5rem;
    }

    .stat-title {
        font-size: 0.8rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--accent-glow);
    color: var(--white);
}

/* Impact Section Styles */
.impact-section {
    background: var(--bg-main);
}

.impact-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(101, 194, 191, 0.1);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.impact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.impact-stats {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Sora', sans-serif;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: block;
}

.impact-card h3 {

    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

[data-theme="dark"] .impact-card h3 {
    color: var(--primary);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Premium Blog Cards */
.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image-wrapper img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--accent);
    transition: var(--transition);
}

.blog-card:hover h3 {
    color: var(--primary);
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-read-more {
    margin-top: auto;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.blog-read-more:hover {
    gap: 0.75rem;
    color: var(--accent);
}