/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-xs) 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    font-size: 1rem;
}

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

.nav-link.active {
    color: var(--color-accent);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-bg);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand p {
    opacity: 0.8;
    margin-top: var(--spacing-sm);
    max-width: 300px;
}

.footer-col h4 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Tablet/Mobile Adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-links.active {
        clip-path: circle(140% at 100% 0);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* CTA Section - Themed */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e4b7a 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Milk Splash / Background Decoration */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    color: var(--color-secondary);
    /* Gold/Accent Color */
    font-weight: 500;
}

/* Button override for dark background */
.cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

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

/* CTA Wave Divider */
.custom-shape-divider-top-1689 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-top-1689 svg {
    position: relative;
    display: block;
    width: calc(138% + 1.3px);
    height: 120px;
    transform: rotateY(180deg);
}

.custom-shape-divider-top-1689 .shape-fill {
    fill: #FFFFFF;
}

/* Floating 3D Icons */
.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    z-index: 0;
    animation: float-slow 6s ease-in-out infinite;
}

.icon-1 {
    top: 20%;
    left: 10%;
    font-size: 8rem;
    animation-delay: 0s;
    transform: rotate(-15deg);
}

.icon-2 {
    bottom: 20%;
    right: 10%;
    font-size: 10rem;
    animation-delay: 2s;
    transform: rotate(15deg);
}

.icon-3 {
    top: 15%;
    right: 25%;
    font-size: 4rem;
    animation-delay: 4s;
    opacity: 0.05;
}

.icon-4 {
    bottom: 30%;
    left: 20%;
    font-size: 5rem;
    animation-delay: 1s;
    opacity: 0.05;
}

@keyframes float-slow {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

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

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

/* Cleanup old CTA CSS artifacts */
.custom-shape-divider-top-1689 {
    display: none;
}

.floating-icon {
    display: none;
}

/* Hero Grid Responsive */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-grid>div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.5rem !important;
    }
}

/* Hide floating cards on mobile to prevent overflow */
@media (max-width: 768px) {

    #heroCard1,
    #heroCard2 {
        display: none !important;
    }
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 968px) {
    .app-buttons {
        justify-content: center;
    }
}

/* Benefits Section Responsive */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-visual {
    position: relative;
    height: 400px;
}

@media (max-width: 968px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .benefits-visual {
        height: 300px;
        /* Smaller height on mobile */
        margin-bottom: 2rem;
    }

    /* Center align the checklist items text on mobile */
    .benefits-grid h3 {
        justify-content: center;
    }

    .benefits-grid p {
        margin-left: 0 !important;
        /* Remove indentation on mobile for centered text */
    }
}

/* Benefits Carousel Styles */
.carousel-container {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
}

.benefits-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.benefit-slide {
    min-width: 100%;
    position: relative;
}

/* Card Pop Animation (Triggered by JS) */
.card-pop {
    animation: pop-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

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