/* === Base & Reset === */
*, *::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;
}

/* === Hero Geometric Shapes === */
.hero-shapes {
    pointer-events: none;
}

.geo-shape {
    position: absolute;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, #D4A843 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid #D4A843;
    bottom: 15%;
    left: -50px;
    animation-delay: -3s;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #D4A843;
    top: 40%;
    right: 10%;
    opacity: 0.05;
    animation-delay: -5s;
}

.shape-diamond {
    width: 100px;
    height: 100px;
    background: #D4A843;
    top: 25%;
    left: 8%;
    transform: rotate(45deg);
    opacity: 0.06;
    animation-delay: -2s;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #D4A843;
    bottom: 25%;
    right: 5%;
    opacity: 0.05;
    animation-delay: -4s;
}

.shape-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #D4A843;
    top: 60%;
    left: 15%;
    opacity: 0.04;
    animation-delay: -6s;
}

.grid-pattern {
    background-image: 
        linear-gradient(rgba(212, 168, 67, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 67, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.shape-diamond {
    animation-name: floatDiamond;
}

@keyframes floatDiamond {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(-15px); }
}

.shape-ring {
    animation-name: floatRing;
}

@keyframes floatRing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === Navbar === */
#navbar {
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    backdrop-filter: blur(20px);
    background: rgba(10, 22, 40, 0.85);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* === Mobile Menu === */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 1;
}

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

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

/* === Gallery === */
.gallery-item {
    cursor: pointer;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* === Button focus styles === */
a:focus-visible, button:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
    border-radius: 4px;
}

/* === Selection === */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fff;
}
