/* ========================================
   Single Speed Coffee Roasters-hi.
   Endurance Fuel — Custom Styles
======================================== */

/* Base Reset & Smooth Scroll */
*, *::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 Decorations
======================================== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    top: 20%;
    right: -5%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle--2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 92, 75, 0.06) 0%, transparent 70%);
    bottom: 30%;
    left: -3%;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle--3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 248, 231, 0.1) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.geo-rect {
    position: absolute;
    pointer-events: none;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 20px;
    transform: rotate(15deg);
}

.geo-rect--1 {
    width: 100px;
    height: 100px;
    top: 40%;
    left: 5%;
    animation: float 12s ease-in-out infinite;
}

.geo-triangle {
    position: absolute;
    pointer-events: none;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 70px 40px;
    border-color: transparent transparent rgba(13, 92, 75, 0.06) transparent;
    transform: rotate(-15deg);
}

.geo-triangle--1 {
    bottom: 20%;
    right: 8%;
    animation: float 9s ease-in-out infinite reverse;
}

.geo-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(13, 92, 75, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    width: 120px;
    height: 120px;
}

.geo-dots--1 {
    top: 15%;
    left: 8%;
    animation: float 7s ease-in-out infinite;
}

/* ========================================
   Animations
======================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

/* ========================================
   Navbar
======================================== */
#navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(255, 248, 231, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 30px rgba(13, 92, 75, 0.08);
}

/* ========================================
   Mobile Menu
======================================== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ========================================
   Scroll Reveal
======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.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; }

/* ========================================
   Form Styles
======================================== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D5C4B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========================================
   Selection Color
======================================== */
::selection {
    background: rgba(13, 92, 75, 0.2);
    color: #0D5C4B;
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 150px;
        height: 150px;
    }
    
    .geo-circle--2 {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.75rem;
    }
}
