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

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

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group img {
        transition: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #0f0f0f;
}

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

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(8, 8, 8, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f5f5f5;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Gold shimmer effect for special text */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-gold-shimmer {
    background: linear-gradient(
        90deg,
        #f0d88a 0%,
        #e8c068 25%,
        #C9A84C 50%,
        #e8c068 75%,
        #f0d88a 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.animate-pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

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

/* Smooth focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Form styles */
input, textarea {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(45, 45, 45, 0.8);
    color: #f5f5f5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #737373;
}

/* Success message */
.form-success {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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