/* Base & Utilities */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #40E0D0;
    color: #0A2342;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #40E0D0 0%, #2bc4b4 100%);
    color: #0A2342;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(64, 224, 208, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #0A2342;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 0.95rem;
    border: 2px solid rgba(10, 35, 66, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #40E0D0;
    color: #1fa396;
    transform: translateY(-2px);
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 252, 243, 0.92);
    backdrop-blur: 20px;
    box-shadow: 0 1px 20px rgba(10, 35, 66, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #40E0D0;
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-link {
    font-size: 1.5rem;
}

/* Floating Badge Animation */
.floating-badge {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Hero Badge */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero content animations */
#hero .lg\\:col-span-7 > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

#hero .lg\\:col-span-7 > *:nth-child(1) { animation-delay: 0.1s; }
#hero .lg\\:col-span-7 > *:nth-child(2) { animation-delay: 0.2s; }
#hero .lg\\:col-span-7 > *:nth-child(3) { animation-delay: 0.3s; }
#hero .lg\\:col-span-7 > *:nth-child(4) { animation-delay: 0.4s; }
#hero .lg\\:col-span-7 > *:nth-child(5) { animation-delay: 0.5s; }

#hero .lg\\:col-span-5 > * {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

#hero .lg\\:col-span-5 > *:nth-child(1) { animation-delay: 0.3s; }
#hero .lg\\:col-span-5 > *:nth-child(2) { animation-delay: 0.6s; }

/* Back to top */
#backToTop.visible {
    opacity: 1;
    pointer-events: all;
}

#backToTop:hover {
    transform: translateY(-3px);
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fefcf3;
}

::-webkit-scrollbar-thumb {
    background: #a3b5cc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #758fb3;
}
