:root {
    --primary-color: #02A576;
    --primary-dark: #01845d;
    --text-color: #1a1a1a;
    --text-light: #f4f4f4;
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-soft: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    scroll-behavior: smooth;
}

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

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

/* Base reveal state - Visible by default for non-JS fallbacks */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hide only when JS is confirmed ready */
body.js-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
}

body.js-ready .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 1;
}

/* Hide only when JS is confirmed ready */
body.js-ready .fade-in {
    opacity: 0;
}

body.js-ready .fade-in.active {
    opacity: 1;
    animation: fadeInAnim 1s ease-out forwards;
}

@keyframes fadeInAnim {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2.5rem);
    /* Fluid container padding */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    /* Smoothly transition all properties */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .logo img.logo-img {
    height: 38px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a i {
    display: none;
    /* Hide icons on desktop */
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    margin-left: 1rem;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 165, 118, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
}

.hero-brand {
    margin-bottom: 2rem;
    perspective: 1000px;
}

.logo-tilt-container {
    display: inline-block;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-logo-img {
    height: 85px;
    width: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backface-visibility: hidden;
    transform: translateZ(20px);
    animation: flyIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    line-height: 1.2;
}

.hero-title .reveal-inner {
    display: block;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    /* Fluid font size */
    font-weight: 800;
    transform: translateY(100%);
    animation: revealUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards;
}

.hero-title .line:nth-child(2) .reveal-inner {
    animation-delay: 0.5s;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    /* Fluid font size */
    max-width: 650px;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    opacity: 0;
    animation: fadeInUpSoft 1s ease-out 1s forwards, letterSpread 1.5s ease-out 1s forwards;
}

.hero-btns {
    display: flex;
    gap: clamp(1rem, 3vw, 1.5rem);
    /* Adaptive button gap */
    opacity: 0;
    animation: fadeInUpSoft 1s ease-out 1.2s forwards;
    flex-wrap: wrap;
}

@keyframes revealUp {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes letterSpread {
    0% {
        letter-spacing: 0.2em;
        opacity: 0;
    }

    100% {
        letter-spacing: normal;
        opacity: 0.9;
    }
}

@keyframes fadeInUpSoft {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@keyframes flyIn {
    0% {
        opacity: 0;
        transform: translateY(50px) translateZ(-500px) scale(0.8);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) translateZ(0) scale(1);
        filter: blur(0);
    }
}

/* About Section */
.about {
    padding: clamp(5rem, 10vw, 10rem) 0;
    /* Adaptive padding */
    background-color: var(--white);
}

.about h2.section-title {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    /* Fluid section title */
}

.about h2 span {
    color: var(--primary-color);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.about-image-side {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.image-rotation-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    animation: turnAround 10s linear infinite, aboutFloat 6s ease-in-out infinite;
}

.slideshow-img-1,
.slideshow-img-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: opacity 1s ease-in-out;
}

.slideshow-img-1 {
    animation: aboutCrossFade 10s ease-in-out infinite;
}

.slideshow-img-2 {
    animation: aboutCrossFade 10s ease-in-out infinite reverse;
}

@keyframes turnAround {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

@keyframes aboutFloat {

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

    50% {
        transform: translateY(-20px);
    }
}

@keyframes aboutCrossFade {

    0%,
    45% {
        opacity: 1;
        z-index: 10;
    }

    55%,
    100% {
        opacity: 0;
        z-index: 0;
    }
}

.bento-grid {
    flex: 1.2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(130px, auto);
    gap: clamp(0.5rem, 2vw, 1.2rem);
    /* Fluid gap */
}

@keyframes bentoFloat {

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

    50% {
        transform: translateY(-10px);
    }
}

.bento-card {
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-soft);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    animation: bentoFloat 4s ease-in-out infinite;
}

.bento-card:nth-child(1) {
    animation-delay: 0s;
}

.bento-card:nth-child(2) {
    animation-delay: 1s;
}

.bento-card:nth-child(3) {
    animation-delay: 2s;
}

.bento-card:nth-child(4) {
    animation-delay: 1.5s;
}

.bento-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    animation-play-state: paused;
}

.hover-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    pointer-events: none;
}

.bento-card:hover .hover-arrow,
.gallery-item-wrapper:hover .hover-arrow {
    opacity: 1;
    transform: translateX(0);
}

.bento-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.bento-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Card Variants */
.card-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.card-header-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-logo-mini {
    height: 35px;
    width: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 8px;
}

.logo-white-bg {
    background: var(--white) !important;
    padding: 8px 15px !important;
}

.card-accent {
    background-color: var(--white);
    color: var(--text-color);
    justify-content: space-around;
    padding: 2rem;
    border: 1px solid #f1f5f9;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 1;
    line-height: 1;
}

.card-accent p {
    font-size: 0.9rem;
    font-weight: 400;
}

.card-market {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 15px 35px rgba(2, 165, 118, 0.2);
}

.card-market:hover {
    box-shadow: 0 30px 60px rgba(2, 165, 118, 0.3);
}

.card-market .card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-market .percentage {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.card-market .card-icon {
    background: transparent;
    color: var(--white);
    margin: 0;
    font-size: 2rem;
}

.card-white {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid #f1f5f9;
}

.card-white .card-icon {
    background: transparent;
    box-shadow: none;
    border: none;
    color: var(--primary-color);
    margin: 0;
    font-size: 2rem;
    /* Make it slightly larger since the box is gone */
}

.card-top-inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.card-globe {
    background: radial-gradient(circle at bottom right, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.globe-placeholder {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 200px;
    height: 200px;
    background: url('https://raw.githubusercontent.com/manishmshiva/verglas/main/globe-dots.png') no-repeat center/contain;
    opacity: 0.1;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .about-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image-side {
        width: 100%;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-primary,
    .card-accent,
    .card-white {
        grid-column: span 1 !important;
    }
}

/* Gallery Section */
.gallery {
    padding: clamp(5rem, 10vw, 8rem) 0;
    /* Adaptive padding */
    background: var(--bg-light);
    overflow: hidden;
}

.gallery-track-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.gallery-track-container::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    will-change: transform;
}

.gallery-item-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(2, 165, 118, 0.3);
    transition: var(--transition-soft);
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    flex-shrink: 0;
}

.gallery-item {
    width: 300px;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-soft);
}

.gallery-item-wrapper:hover .gallery-item {
    transform: scale(1.1);
    filter: grayscale(0%) saturate(1.2);
}

.gallery-item-wrapper:hover {
    box-shadow: 0 15px 45px rgba(2, 165, 118, 0.5);
    z-index: 10;
}

/* Removed CSS keyframes scroll */

/* Services */
.services {
    padding: clamp(5rem, 10vw, 8rem) 0 2rem 0;
    /* Reduced bottom padding */
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    margin-bottom: 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    /* Global fluid section title */
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.services-track-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.services-track-container::-webkit-scrollbar {
    display: none;
}

.services-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    will-change: transform;
}

/* Removed CSS keyframes servicesScroll */

.services-track .service-card {
    width: 350px;
    flex-shrink: 0;
}

.service-card {
    background: var(--white);
    color: var(--text-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-soft);
    text-align: center;
    position: relative;
    filter: grayscale(100%);
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    filter: grayscale(0%);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Partners */
.partners {
    padding: clamp(5rem, 10vw, 8rem) 0;
    /* Consistent padding */
    background-color: var(--white) !important;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 5;
}

.partners .section-title {
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.partners .section-title span {
    color: var(--primary-dark);
    opacity: 0.9;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    /* Fluid gap */
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 450px;
    perspective: 1000px;
    border-radius: 20px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg) !important;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    top: 0;
    left: 0;
}

.flip-card-front {
    transform: rotateY(0deg);
    z-index: 2;
}

.flip-card-back {
    transform: rotateY(180deg);
    z-index: 1;
}

.partner-card {
    background-size: cover !important;
    background-position: center !important;
    color: var(--white) !important;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.85));
    z-index: -1;
    transition: opacity 0.4s ease;
}

.partner-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.partner-card p {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 300px;
}

/* Dynamic background change during hover flip */
.flip-card:hover .partner-card::before {
    background: linear-gradient(to bottom, rgba(2, 165, 118, 0.4), rgba(1, 132, 93, 0.9));
}

.partner-details {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
    text-align: left;
    width: 100%;
    max-width: 260px;
}

.partner-details li {
    margin-bottom: 0.9rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.partner-details i {
    color: var(--primary-color);
    font-size: 1rem;
}

.partner-card.retail {
    background: url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?auto=format&fit=crop&w=800&q=80') no-repeat;
}

.partner-card.brand {
    background: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=800&q=80') no-repeat;
}

.partner-card .btn-outline {
    border: 2px solid var(--white) !important;
    color: var(--white) !important;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

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


/* Enhanced Sparkle Effect */
.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    animation: sparkleMove 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 0 15px currentColor;
}

@keyframes sparkleMove {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--move-x), var(--move-y)) scale(1.5);
        opacity: 0;
    }
}

/* Contact */
.contact {
    padding: clamp(5rem, 10vw, 8rem) 0;
    /* Adaptive padding */
    background-color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    /* Fluid gap */
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: none;
    margin: 0;
}

.contact-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 15px;
    transition: var(--transition-soft);
}

.contact-card-link:hover .contact-item {
    background: #f8fafc;
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #555;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-card-link:hover .contact-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: rotate(10deg);
}

.contact-card-link:hover .contact-text h3 {
    color: var(--primary-color);
}

.contact-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #333;
}

.contact-text p {
    font-size: 1.1rem;
    color: #666;
}

.contact-text a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.map-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

.developers-mention {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.developers-mention p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.developers-mention a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.developers-mention a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #eee;
    background-color: var(--white);
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}


.delay-1 {
    animation-delay: 0.4s;
}

.delay-2 {
    animation-delay: 0.8s;
}

.delay-3 {
    animation-delay: 1.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

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

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

/* Hero Specific Animations */
.hero-logo-img {
    animation: glow 6s linear infinite;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    /* More movement and subtle rotation */
}

@keyframes glow {

    0%,
    100% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }

    50% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
    }
}

/* Hero h1 is now .hero-title and .reveal-inner */
.hero-title .reveal-inner {
    color: var(--white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(2, 165, 118, 0.4);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-btns .btn:hover {
    transform: scale(1.1) translateY(-8px);
    /* More dramatic hover */
    box-shadow: 0 15px 30px rgba(2, 165, 118, 0.5);
}

.hero {
    animation: bgZoom 15s ease-in-out infinite alternate;
    /* Faster zoom */
}

@keyframes bgZoom {
    from {
        background-size: 105%;
    }

    to {
        background-size: 120%;
    }
}

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

    100% {
        transform: translateX(calc(-350px * 3 - 2rem * 3));
    }
}

@media (max-width: 768px) {
    .about-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }

    .about-img-floating {
        max-width: 300px;
        margin: 0 auto 2rem;
        display: block;
    }

    .image-rotation-wrapper {
        margin: 0 auto;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .card-primary,
    .card-accent,
    .card-white {
        grid-column: span 1 !important;
    }

    .navbar {
        padding: 1rem 0;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    .navbar .logo img.logo-img {
        mix-blend-mode: multiply;
    }

    .navbar.scrolled {
        padding: 0.5rem 0;
    }

    .menu-toggle .bar {
        background-color: var(--text-color);
    }

    .hero {
        height: 100vh;
        height: 100dvh;
        background-image: url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1080&h=1920&q=80');
        /* Portrait optimized image for mobile screens */
        background-size: cover;
        background-position: center bottom;
        background-attachment: scroll;
        margin-top: 0;
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(2, 165, 118, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
        /* Restored brand green gradient from desktop */
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-title .reveal-inner {
        font-size: clamp(2.2rem, 10vw, 3rem);
        text-align: left;
    }

    .hero p {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        text-align: left;
        margin-bottom: 2rem;
        animation: fadeInUpSoft 1s ease-out 0.8s forwards;
    }

    .hero-btns {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
        justify-content: flex-start;
    }

    .hero-btns .btn {
        margin-left: 0;
        width: auto;
        min-width: 140px;
        text-align: center;
        padding: 0.8rem 1.2rem;
    }

    .hero-logo-img {
        height: 65px;
        margin-bottom: 1rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1100;
        /* Ensure it's above the navbar and nav-links */
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--white);
        width: 80%;
        height: 100vh;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
        padding: 6rem 0;
        z-index: 1000;
        display: flex;
        /* Overriding any hidden states */
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.2rem 0;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 1rem;
        color: var(--text-color);
    }

    .nav-links a i {
        display: inline-block;
        /* Show icons on mobile */
        font-size: 1.4rem;
        color: var(--primary-color);
        width: 30px;
        text-align: center;
    }

    .card-accent .card-header {
        margin-bottom: 2rem;
        /* Increased spacing between mission points */
    }

    .card-accent .card-header:last-child {
        margin-bottom: 0;
    }

    .gallery-item {
        width: 260px;
        height: 180px;
    }

    .gallery-track-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .gallery-track-container::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari/Webkit */
    }

    .gallery-track {
        animation: scroll 25s linear infinite;
        display: flex;
        width: max-content;
    }

    .gallery-track-container:hover .gallery-track,
    .gallery-track-container:active .gallery-track {
        animation-play-state: paused;
    }

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

        100% {
            transform: translateX(calc(-260px * 6 - 2rem * 6));
        }
    }


    .bento-card {
        padding: 1.2rem;
        min-height: 160px;
    }

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

    .services-track-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-track-container::-webkit-scrollbar {
        display: none;
    }

    .services-track {
        animation: servicesScroll 25s linear infinite;
        display: flex;
        width: max-content;
    }

    .services-track-container:hover .services-track,
    .services-track-container:active .services-track {
        animation-play-state: paused;
    }

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

        100% {
            transform: translateX(calc(-280px * 3 - 2rem * 3));
        }
    }

    /* Stacking Partner and Contact boxes */
    .split,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

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


.contact-box-modal {
    background: #f8fdfb;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e0f2ec;
    margin-top: 2rem;
}

.contact-btns-modal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-btn-modal {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    transition: var(--transition);
    color: white;
}

.modal .whatsapp-btn {
    background: #25d366;
}

.modal .email-btn {
    background: #007bff;
}

.contact-btn-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Brand Partners Section */
.brand-partners {
    padding: 2rem 0 clamp(4rem, 8vw, 6rem) 0;
    /* White background */
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.brand-partners-bg-video {
    display: none;
    /* Hide the video element */
}

.brand-partners .brand-card {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('arun icecream product line.jpeg') center/cover no-repeat;
    border: none;
}

.brand-partners .brand-info h3 {
    color: var(--white);
}

.brand-partners .brand-info p {
    color: rgba(255, 255, 255, 0.9);
}

.brand-partners .section-title {
    color: var(--primary-color);
}

.brand-partners .section-title span {
    color: var(--primary-dark);
}

.brand-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Logo Carousel Styles */
.logo-carousel-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.logo-carousel-container::-webkit-scrollbar {
    display: none;
}

.logo-carousel-track {
    display: flex;
    width: max-content;
    gap: 2rem;
}

/* Let JS handle hover pausing now, CSS pause only worked for CSS animations */

.logo-carousel-track .brand-card {
    flex: 0 0 350px;
    width: 350px !important;
    /* Prevent mobile overrides */
    margin: 0;
    opacity: 1;
    /* Ensure visible in carousel */
    transform: none;
    /* Reset reveal transform for carousel items */
    animation: none !important;
    /* Disable individual pop-up animations in carousel */
}

.brand-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    /* Stronger shadow for better pop */
    transition: var(--transition-soft);
    max-width: 400px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* More visible border */
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.7) translateY(40px);
}

.brand-card.active {
    animation: popUpEnhanced 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.brand-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(2, 165, 118, 0.15);
}

@keyframes popUpEnhanced {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(40px);
    }

    70% {
        transform: scale(1.1) translateY(-15px);
        /* Stronger "pop" effect */
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.brand-logo-wrapper {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8fdfb;
    border-radius: 20px;
    display: inline-block;
}

.brand-logo-item {
    height: 110px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: var(--transition-soft);
}

.brand-card:hover .brand-logo-item {
    transform: scale(1.1);
}

.brand-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.brand-info p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .brand-grid {
        flex-direction: column;
        align-items: center;
    }

    .brand-card {
        width: 100%;
    }

    .brand-partners .brand-card {
        width: 90%;
        max-width: 320px;
        padding: 1.5rem;
    }
}

/* Retail Network Section */
.retail-network {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.retail-network .section-title {
    color: var(--primary-color);
}

.retail-network .section-title span {
    color: var(--primary-dark);
}

.retail-network .brand-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.retail-network .brand-logo-wrapper {
    background: transparent;
    padding: 0;
}

/* Specific sizing for Retail Network logos to make them large and professional */
.logo-ajman {
    height: auto;
    max-height: 160px;
    /* Normalized to 160px */
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.logo-noon,
.logo-safari,
.logo-mango {
    height: 160px;
    /* Large and consistent sizing */
    width: auto;
}

@media (max-width: 768px) {

    /* Force horizontal layout for the carousel track, overriding .brand-grid's column direction */
    .logo-carousel-track {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    /* Scale down the entire retail logo carousel cards to fit ~2.5 cards on screen */
    .logo-carousel-track .brand-card {
        flex: 0 0 200px;
        width: 200px !important;
        height: 380px;
        /* Fixed height for uniformity */
        padding: 1.5rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .logo-carousel-track .brand-logo-wrapper {
        min-height: 100px;
        /* Consistent logo area */
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .logo-carousel-track .brand-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        min-height: 2.8rem;
        /* Align titles even if they wrap */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .retail-network .logo-noon,
    .retail-network .logo-safari,
    .retail-network .logo-mango,
    .retail-network .logo-ajman {
        height: 80px;
        width: auto;
        max-height: 80px;
    }

    /* Scale down Operational Excellence cards for mobile so multiple can be seen */
    .services-track .service-card {
        width: 250px;
        padding: 2rem 1.5rem;
    }

    .gallery-item {
        width: 200px;
        height: 140px;
    }

    /* Scale down the text within the small cards */
    .logo-carousel-track .brand-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .logo-carousel-track .brand-info p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}