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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #060f1f;
    color: white;
    overflow-x: hidden;
}

.font-['Playfair_Display'] {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-['Inter'] {
    font-family: 'Inter', sans-serif;
}

/* Scroll reveal base — content is visible by default, JS adds animated class */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(6, 15, 31, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #060f1f;
}

::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.5);
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: white;
}

/* Pulse animation for hero */
@keyframes pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Star twinkle */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Button hover glow */
button:hover,
a:hover {
    cursor: pointer;
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* Ensure all text has proper contrast */
.text-white\/60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white\/50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-white\/40 {
    color: rgba(255, 255, 255, 0.4);
}

/* Gold gradient text fallback */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Mobile menu active state */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Card hover lift */
.reveal:hover {
    transform: translateY(-4px);
}
