/* ============================================
   Balboa Mission Center — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

/* ============================================
   Geometric Background Blobs
   ============================================ */
.geo-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-teal-1 {
    background: #99f6e4;
}

.blob-slate-1 {
    background: #cbd5e1;
}

.blob-teal-2 {
    background: #5eead4;
    animation-delay: -4s;
    animation-duration: 10s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* ============================================
   Hero Geometric Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.15;
}

.shape-square-1 {
    top: 15%;
    left: 8%;
    width: 120px;
    height: 120px;
    background: #2dd4bf;
    border-radius: 24px;
    transform: rotate(15deg);
    animation: shapeFloat 6s ease-in-out infinite;
}

.shape-circle-1 {
    top: 25%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: #5eead4;
    border-radius: 50%;
    animation: shapeFloat 8s ease-in-out infinite reverse;
}

.shape-triangle-1 {
    bottom: 25%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid #2dd4bf;
    animation: shapeFloat 7s ease-in-out infinite;
    animation-delay: -2s;
}

.shape-ring-1 {
    bottom: 20%;
    right: 8%;
    width: 100px;
    height: 100px;
    border: 4px solid #5eead4;
    border-radius: 50%;
    animation: shapeFloat 9s ease-in-out infinite reverse;
    animation-delay: -3s;
}

.shape-dots {
    top: 60%;
    left: 15%;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, #2dd4bf 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.3;
    animation: shapeFloat 5s ease-in-out infinite;
    animation-delay: -1s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 15deg)); }
    50% { transform: translateY(-20px) rotate(calc(var(--rotation, 15deg) + 5deg)); }
}

.shape-square-1 { --rotation: 15deg; }
.shape-circle-1 { --rotation: 0deg; }
.shape-triangle-1 { --rotation: 0deg; }
.shape-ring-1 { --rotation: 0deg; }
.shape-dots { --rotation: 0deg; }

/* ============================================
   Navigation
   ============================================ */
nav {
    transition: box-shadow 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ============================================
   Button & Interactive Elements
   ============================================ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    outline: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 640px) {
    .shape-square-1 {
        width: 60px;
        height: 60px;
        top: 10%;
        left: 5%;
    }
    
    .shape-circle-1 {
        width: 40px;
        height: 40px;
        top: 20%;
        right: 5%;
    }
    
    .shape-triangle-1 {
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-bottom: 43px solid #2dd4bf;
        bottom: 20%;
        left: 3%;
    }
    
    .shape-ring-1 {
        width: 50px;
        height: 50px;
        bottom: 15%;
        right: 5%;
    }
    
    .shape-dots {
        width: 30px;
        height: 30px;
        top: 50%;
        left: 8%;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .geo-blob,
    .geo-shape,
    .fixed {
        display: none !important;
    }
    
    body {
        color: #0f172a;
        background: white;
    }
}
