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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    overflow-x: hidden;
}

/* ===== Decorative Hero Circles ===== */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.deco-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.deco-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(167,243,208,0.4) 0%, transparent 70%);
    bottom: 10%;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.deco-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    top: 30%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

.deco-4 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(110,231,183,0.3) 0%, transparent 70%);
    bottom: -50px;
    right: 20%;
    animation: float 7s ease-in-out infinite reverse;
}

/* ===== Sparkle Dots ===== */
.sparkle-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: sparkle 3s ease-in-out infinite;
}

.s1 { top: 20%; left: 15%; animation-delay: 0s; }
.s2 { top: 40%; right: 20%; animation-delay: 0.8s; width: 4px; height: 4px; }
.s3 { bottom: 30%; left: 25%; animation-delay: 1.6s; width: 8px; height: 8px; }
.s4 { top: 60%; right: 10%; animation-delay: 2.2s; }
.s5 { bottom: 20%; right: 35%; animation-delay: 0.4s; width: 5px; height: 5px; }

/* ===== Scroll Dot Animation ===== */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar Scroll State ===== */
nav.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(4, 120, 87, 0.08);
}

nav.scrolled .logo-text {
    color: #064e3b;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-link:hover {
    color: #059669;
    padding-left: 8px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* ===== Selection ===== */
::selection {
    background: #a7f3d0;
    color: #064e3b;
}

/* ===== Button Focus States ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* ===== Image Loading ===== */
img {
    image-rendering: auto;
}

/* ===== Print Styles ===== */
@media print {
    nav, #backToTop, .scroll-reveal { display: none; }
    body { color: #000; background: #fff; }
    section { padding: 20px 0; }
}
