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

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

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: #D4A017;
    color: #2A0D13;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F9F0F2;
}
::-webkit-scrollbar-thumb {
    background: #D4A017;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B8860B;
}

/* ========== REVEAL ANIMATIONS (progressive enhancement) ========== */
/* Default state: all elements visible */
.reveal-up {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When JS enhances: hide initially */
.js-reveal .reveal-up {
    opacity: 0;
    transform: translateY(30px);
}

.js-reveal .reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.js-reveal .reveal-up:nth-child(2) { transition-delay: 0.1s; }
.js-reveal .reveal-up:nth-child(3) { transition-delay: 0.2s; }
.js-reveal .reveal-up:nth-child(4) { transition-delay: 0.3s; }
.js-reveal .reveal-up:nth-child(5) { transition-delay: 0.4s; }

/* ========== HERO DECORATIVE ELEMENTS ========== */
.hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-deco-1 {
    top: 15%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.15) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.hero-deco-2 {
    top: 60%;
    right: 8%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(107, 39, 55, 0.08) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

.hero-deco-3 {
    bottom: 20%;
    left: 15%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(253, 211, 77, 0.2) 0%, transparent 70%);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* ========== SCROLL DOT ========== */
.scroll-dot {
    animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
    0% { top: 0; opacity: 1; }
    50% { top: calc(100% - 12px); opacity: 0.5; }
    100% { top: 0; opacity: 1; }
}

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

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

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

/* ========== SERVICE CARDS ========== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4A017, #FCD34D);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ========== MOBILE MENU ========== */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #D4A017;
    transition: width 0.3s ease;
}

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

/* ========== GALLERY ========== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========== FORM STYLES ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 39, 55, 0.1);
}

/* ========== FOCUS VISIBLE ========== */
*:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .reveal-up {
        transform: none;
        opacity: 1;
    }
}
