/* ========== BASE STYLES ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

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

::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a12;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d4456a, #f59e0b);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e97492, #fbbf24);
}

/* ========== NAVBAR ========== */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after {
    width: 100%;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

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

@media (prefers-reduced-motion: no-preference) {
    .reveal-animated {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal-animated.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MOBILE MENU ========== */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}
.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.1), transparent);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.mobile-nav-link:hover::before {
    width: 8px;
}

/* ========== GLOW EFFECTS ========== */
.glow-amber {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

/* ========== CARD HOVER ========== */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* ========== FOCUS STYLES ========== */
:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========== UTILITY ========== */
.text-shadow {
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
}

/* ========== LOADING STATE ========== */
.page-loaded #hero img {
    animation: fadeInImage 1s ease forwards;
}

@keyframes fadeInImage {
    from { opacity: 0; }
    to { opacity: 1; }
}
