*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(21, 32, 54, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.nav-scrolled .mobile-menu-btn svg {
    color: #ffffff;
}

/* Hero nav state (no scroll) */
.nav:not(.nav-scrolled) .nav-logo-text {
    color: #ffffff;
}

.nav:not(.nav-scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.nav:not(.nav-scrolled) .mobile-menu-btn svg {
    color: #ffffff;
}

/* Star decorations */
.star-decoration {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.star-1 { top: 15%; left: 10%; animation-delay: 0s; }
.star-2 { top: 25%; right: 15%; animation-delay: 1s; }
.star-3 { bottom: 30%; left: 5%; animation-delay: 2s; }
.star-4 { top: 60%; right: 8%; animation-delay: 0.5s; }
.star-5 { bottom: 20%; right: 25%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 1; }
}

/* Circle decorations */
.circle-decoration {
    position: absolute;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(228, 118, 84, 0.15), transparent 70%);
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 219, 176, 0.1), transparent 70%);
    bottom: 10%;
    left: -3%;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.open {
    max-height: 500px;
}

.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 90, 51, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #d4924a;
}

/* Selection color */
::selection {
    background: rgba(217, 90, 51, 0.2);
    color: #1e2d4a;
}
