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

:root {
    --navy-950: #0a0f1e;
    --navy-900: #0f172a;
    --gold-500: #d4a017;
    --gold-400: #f0c808;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--navy-950);
    color: white;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== GEOMETRIC DECORATIVE SHAPES ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
}

.circle-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(212, 160, 23, 0.15);
    border-radius: 50%;
    top: 15%;
    right: -5%;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 150px;
    height: 150px;
    background: rgba(212, 160, 23, 0.06);
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(212, 160, 23, 0.08);
    top: 40%;
    left: 3%;
    transform: rotate(15deg);
    animation: float-slow 18s ease-in-out infinite;
}

.square-1 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(212, 160, 23, 0.12);
    top: 60%;
    right: 8%;
    transform: rotate(45deg);
    animation: float-slow 22s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(3deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
    75% { transform: translateY(-25px) rotate(2deg); }
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    backdrop-filter: none;
}

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

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-400);
    transition: width 0.3s ease;
}

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

/* Mobile menu */
#mobileMenu {
    z-index: 50;
}

#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenu.closed {
    transform: translateX(-100%);
}

.menu-line {
    display: block;
}

.menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.4rem;
}

.mobile-nav-link {
    position: relative;
}

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

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

/* ===== 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, var(--gold-500), var(--gold-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 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 {
        opacity: 1;
        transform: none;
    }
    
    .geo-shape {
        animation: none;
    }
}

/* ===== SCROLL REVEAL (below fold only) ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== BUTTONS ===== */
a, button {
    cursor: pointer;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--navy-950);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 160, 23, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 160, 23, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .geo-shape {
        display: none;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
}
