/* ============================================
   RANDALL BUILDING — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ============================================
   GEOMETRIC DECORATIVE SHAPES
   ============================================ */
.fixed[aria-hidden="true"] {
    z-index: 0;
}

.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.geo-circle-1 {
    top: 15%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(232, 85, 48, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-rect-1 {
    top: 45%;
    left: 2%;
    width: 120px;
    height: 120px;
    background: rgba(251, 191, 36, 0.05);
    border-radius: 20px;
    transform: rotate(45deg);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    bottom: 20%;
    right: 8%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(232, 85, 48, 0.04);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-circle-2 {
    top: 70%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 230, 211, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

.geo-rect-2 {
    top: 30%;
    left: 45%;
    width: 80px;
    height: 80px;
    background: rgba(232, 85, 48, 0.04);
    border-radius: 12px;
    transform: rotate(30deg);
    animation: float-slow 12s ease-in-out infinite;
}

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

.geo-rect-1 { --rotation: 45deg; }
.geo-rect-2 { --rotation: 30deg; }

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: rgba(250, 245, 240, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    background: rgba(250, 245, 240, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default state: visible (progressive enhancement) */
.reveal {
    transform: translateY(0);
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        transform: translateY(24px);
        opacity: 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 {
        transform: translateY(0);
        opacity: 1;
    }

    /* Staggered delays */
    .reveal:nth-child(1) { transition-delay: 0.05s; }
    .reveal:nth-child(2) { transition-delay: 0.12s; }
    .reveal:nth-child(3) { transition-delay: 0.19s; }
    .reveal:nth-child(4) { transition-delay: 0.26s; }
    .reveal:nth-child(5) { transition-delay: 0.33s; }
    .reveal:nth-child(6) { transition-delay: 0.40s; }
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobile-menu.open {
    max-h: 400px;
}

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

::-webkit-scrollbar-track {
    background: #faf5f0;
}

::-webkit-scrollbar-thumb {
    background: #d9b49c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b89474;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(232, 85, 48, 0.15);
    color: #722213;
}

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .fixed[aria-hidden="true"],
    .geo-shape {
        display: none;
    }
    
    #navbar {
        position: relative;
        background: white;
    }
}
