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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 15%;
    right: -80px;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 3px solid rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    top: 40%;
    left: 5%;
    transform: rotate(15deg);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(16, 185, 129, 0.06);
    top: 60%;
    right: 8%;
}

.geo-dots {
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(16, 185, 129, 0.15) 2px, transparent 2px);
    background-size: 12px 12px;
    top: 30%;
    left: 15%;
    opacity: 0.6;
}

/* Navigation */
.nav-header {
    background: rgba(254, 253, 248, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

/* Hamburger */
.hamburger-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background-color: #065f46;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 5px;
}

#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 5px;
}

/* Mobile menu */
.mobile-nav-link {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
}

@media (min-width: 1024px) {
    #mobile-menu {
        display: none;
    }
}

/* Special cards */
.special-card {
    will-change: transform;
}

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

/* Scroll reveal animations */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
}

/* 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;
    }
}

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

/* Selection */
::selection {
    background-color: rgba(16, 185, 129, 0.2);
    color: #064e3b;
}
