/* ============================================
   1030 Gause West — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */

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

.shape-circle-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.08) 0%, transparent 70%);
    top: 15%;
    right: -80px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 110, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(128, 0, 32, 0.05);
    border-radius: 24px;
    top: 45%;
    left: 5%;
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 77, 110, 0.06);
    top: 70%;
    right: 8%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

.shape-ring-1 {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(128, 0, 32, 0.06);
    bottom: 35%;
    right: 15%;
    animation: float-slow 16s ease-in-out infinite;
}

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

/* ============================================
   Hero Geometric Shapes
   ============================================ */

.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-1 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    top: 10%;
    left: 5%;
    animation: hero-float-1 12s ease-in-out infinite;
}

.hero-geo-2 {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    top: 20%;
    right: 10%;
    transform: rotate(30deg);
    animation: hero-float-2 10s ease-in-out infinite;
}

.hero-geo-3 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 87px solid rgba(255, 255, 255, 0.04);
    bottom: 30%;
    left: 15%;
    animation: hero-float-3 14s ease-in-out infinite;
}

.hero-geo-4 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: 20%;
    right: 20%;
    animation: hero-float-1 8s ease-in-out infinite reverse;
}

.hero-geo-5 {
    width: 160px;
    height: 160px;
    background: rgba(255, 173, 184, 0.08);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: hero-pulse 6s ease-in-out infinite;
}

.hero-geo-6 {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    top: 75%;
    left: 40%;
    transform: rotate(45deg);
    animation: hero-float-2 9s ease-in-out infinite;
}

@keyframes hero-float-1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-30px) translateX(15px); }
}

@keyframes hero-float-2 {
    0%, 100% { transform: translateY(0) rotate(30deg); }
    50% { transform: translateY(20px) rotate(45deg); }
}

@keyframes hero-float-3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

@keyframes hero-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* ============================================
   Navigation
   ============================================ */

.nav-link {
    position: relative;
}

.nav-link:hover {
    color: #800020 !important;
}

#navbar.scrolled {
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(128, 0, 32, 0.08);
}

#navbar.scrolled .nav-link {
    color: #800020;
}

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

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

.mobile-nav-link {
    display: block;
}

.mobile-nav-link:hover {
    color: #800020 !important;
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */

.reveal {
    opacity: 1;
    transform: translateY(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 {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .geo-shape,
    .hero-geo {
        animation: none;
    }

    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================
   Custom scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* ============================================
   Selection color
   ============================================ */

::selection {
    background: rgba(128, 0, 32, 0.15);
    color: #540014;
}

/* ============================================
   Utility: focus visible
   ============================================ */

:focus-visible {
    outline: 2px solid #800020;
    outline-offset: 2px;
}

/* ============================================
   Responsive tweaks
   ============================================ */

@media (max-width: 640px) {
    .shape-circle-1 {
        width: 150px;
        height: 150px;
    }

    .shape-circle-2 {
        width: 100px;
        height: 100px;
    }

    .shape-square-1 {
        width: 80px;
        height: 80px;
    }
}
