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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #f5f0e8;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f0d;
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 67, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 67, 0.5);
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 15, 13, 0.92);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 168, 67, 0.06);
}

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

/* Hero floating cards animations */
.floating-card {
    animation: floatCard1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: floatCard2 7s ease-in-out infinite;
}

.floating-card-3 {
    animation: floatCard3 5.5s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-0.5deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.3deg); }
}

/* Service cards hover */
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateX(4px);
}

/* Scroll reveal animations */
.reveal {
    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.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Gold gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #d4a843 0%, #e8c068 50%, #d4a843 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(rgba(212, 168, 67, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

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

button:focus-visible, a:focus-visible {
    outline: 2px solid rgba(212, 168, 67, 0.6);
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-card,
    .floating-card-2,
    .floating-card-3 {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-bottom: 12px;
        animation: none;
    }

    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-stats-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 32px;
    }
}

@media (min-width: 769px) {
    .hero-stats-mobile {
        display: none;
    }
}

/* Print styles */
@media print {
    #navbar, .floating-card, .floating-card-2, .floating-card-3 {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
