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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #060F1D;
    color: #ffffff;
    overflow-x: hidden;
}

/* Loader */
#loader {
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Hero glow */
.hero-glow {
    background: radial-gradient(circle, rgba(212, 168, 75, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulse-glow 6s ease-in-out infinite;
}

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

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Staggered hero reveals */
.hero .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero .reveal:nth-child(2) { transition-delay: 0.2s; }
.hero .reveal:nth-child(3) { transition-delay: 0.3s; }
.hero .reveal:nth-child(4) { transition-delay: 0.4s; }
.hero .reveal:nth-child(5) { transition-delay: 0.5s; }
.hero .reveal:nth-child(6) { transition-delay: 0.6s; }

/* Navigation */
#header {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

#header.scrolled {
    background: rgba(6, 15, 29, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4A84B;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-link {
    position: relative;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

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

.menu-line {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(2px, 2px);
}

#menu-btn.active .menu-line:nth-child(2) {
    transform: rotate(-45deg) translate(2px, -2px);
    opacity: 0;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: #D4A84B;
    color: #060F1D;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #E2C07A;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 75, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: rgba(212, 168, 75, 0.5);
    background: rgba(212, 168, 75, 0.05);
    transform: translateY(-2px);
}

/* Menu items */
.menu-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Input fields */
.input-field {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    padding: 12px 0;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-field:focus {
    border-bottom-color: #D4A84B;
}

textarea.input-field {
    line-height: 1.7;
}

/* Image hover */
.aspect-\[4\/5\] img,
.aspect-\[4\/3\] img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.aspect-\[4\/5\]:hover img,
.aspect-\[4\/3\]:hover img {
    transform: scale(1.03);
}

/* Selection */
::selection {
    background: rgba(212, 168, 75, 0.2);
    color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 75, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 75, 0.5);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .font-serif.text-4xl { font-size: 2.25rem; }
}
