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

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

body {
    overflow-x: hidden;
}

/* Gold Button */
.gold-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #C9A84C 0%, #E8D5A3 50%, #B8943F 100%);
    color: #070E0A;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.gold-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #E8D5A3 0%, #F5E6B8 50%, #D4AF5A 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gold-button:hover::before {
    opacity: 1;
}

.gold-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3), 0 2px 8px rgba(201, 168, 76, 0.2);
}

.gold-button:active {
    transform: translateY(0);
}

.gold-button span,
.gold-button svg,
.gold-button a {
    position: relative;
    z-index: 1;
}

/* Navigation */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(7, 14, 10, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
}

/* Hero Badge */
.hero-badge {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

/* Hero text animations */
#hero h1 {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

#hero p {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

#hero .flex-wrap {
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

/* Stat items */
.stat-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.stat-item:nth-child(1) { animation-delay: 0.6s; }
.stat-item:nth-child(2) { animation-delay: 0.7s; }
.stat-item:nth-child(3) { animation-delay: 0.8s; }
.stat-item:nth-child(4) { animation-delay: 0.9s; }

/* Service cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    box-shadow: 0 8px 40px rgba(201, 168, 76, 0.08);
}

/* Area cards */
.area-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.area-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial cards */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    box-shadow: 0 8px 40px rgba(201, 168, 76, 0.06);
}

/* Section animations */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Menu lines animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

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

::-webkit-scrollbar-track {
    background: #070E0A;
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

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

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

/* Select styling */
select option {
    background: #0A1410;
    color: #F9F0D8;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    #hero .flex-wrap {
        flex-direction: column;
    }

    #hero .flex-wrap a {
        width: 100%;
        text-align: center;
    }

    .stat-item {
        text-align: center;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .font-serif.text-4xl,
    .font-serif.text-5xl {
        font-size: 2rem !important;
    }
}
