/* ===== BASE ===== */
*, *::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(200, 169, 97, 0.3);
    color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060E1A;
}
::-webkit-scrollbar-thumb {
    background: #C8A961;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E5C15A;
}

/* ===== NAVBAR ===== */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(6, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 169, 97, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    pointer-events: none;
}
#mobile-menu.open {
    pointer-events: all;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

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

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

/* ===== CTA BANNER PATTERN ===== */
.cta-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(6, 14, 26, 0.3) 20px,
        rgba(6, 14, 26, 0.3) 21px
    );
}

/* ===== INPUT FOCUS ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ===== MOBILE MENU ANIMATION ===== */
.menu-line {
    display: block;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* ===== HERO FLOAT ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* ===== GOLD GLOW PULSE ===== */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(200, 169, 97, 0.2); }
    50% { box-shadow: 0 0 40px rgba(200, 169, 97, 0.4); }
}

.glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .service-card {
        transform: none !important;
    }
}
