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

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

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

::selection {
    background: #C2704E;
    color: #FFFAF5;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(194, 112, 78, 0.08);
}

.nav-logo {
    transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-logo {
    color: #fff;
}

#navbar.scrolled .nav-logo {
    color: #8a472f;
}

/* ===== Geometric Hero Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 3px solid rgba(255, 250, 245, 0.6);
    top: -80px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 220, 150, 0.3);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 250, 245, 0.4);
    top: 30%;
    left: 8%;
    animation: float-slow 12s ease-in-out infinite;
}

.circle-4 {
    width: 80px;
    height: 80px;
    background: rgba(255, 250, 245, 0.15);
    border-radius: 50%;
    bottom: 25%;
    right: 12%;
    animation: float-slow 18s ease-in-out infinite reverse;
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(255, 250, 245, 0.1);
    top: 20%;
    right: 20%;
    transform: rotate(15deg);
    animation: spin-slow 30s linear infinite;
}

.triangle-2 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid rgba(255, 220, 150, 0.15);
    bottom: 30%;
    left: 15%;
    transform: rotate(-20deg);
    animation: spin-slow 25s linear infinite reverse;
}

.ring-1 {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid rgba(255, 250, 245, 0.2);
    top: 60%;
    right: 5%;
    animation: float-slow 16s ease-in-out infinite;
}

.dot-grid {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 8%;
    background-image: radial-gradient(circle, rgba(255,250,245,0.5) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    animation: float-slow 14s ease-in-out infinite reverse;
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default visible state for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.animated {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays */
.reveal:nth-child(1) { transition-delay: 0.0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== Gallery Scroll ===== */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(194, 112, 78, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== Card Hover Effects ===== */
.card {
    perspective: 1000px;
}

/* ===== Focus Styles ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C2704E;
    outline-offset: 2px;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 640px) {
    .circle-1 {
        width: 250px;
        height: 250px;
    }
    .circle-2 {
        width: 120px;
        height: 120px;
    }
    .triangle-1 {
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 87px solid rgba(255, 250, 245, 0.1);
    }
}

/* ===== Print ===== */
@media print {
    #navbar, .geo-shape, .animate-scroll { display: none; }
    body { color: #000; background: #fff; }
}
