/* ========================================
   Straughan Nursery — Custom Styles
   ======================================== */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* ========================================
   Geometric Animations (Hero)
   ======================================== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #4fd39a;
    top: -100px;
    right: 10%;
    animation: float1 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #8ae9bc;
    bottom: 15%;
    left: 5%;
    animation: float2 10s ease-in-out infinite;
}

.geo-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #bdf4d8;
    top: 40%;
    right: 5%;
    animation: float3 6s ease-in-out infinite;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: #4fd39a;
    top: 20%;
    left: 8%;
    border-radius: 24px;
    transform: rotate(45deg);
    animation: spin1 12s linear infinite;
}

.geo-rect-2 {
    width: 80px;
    height: 80px;
    background: #8ae9bc;
    bottom: 30%;
    right: 15%;
    border-radius: 16px;
    transform: rotate(20deg);
    animation: spin2 8s linear infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid #4fd39a;
    top: 60%;
    left: 15%;
    opacity: 0.05;
    animation: float1 14s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(20px) scale(1.05); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0); }
    33% { transform: translateY(-15px); }
    66% { transform: translateY(10px); }
}

@keyframes spin1 {
    from { transform: rotate(45deg) translate(0, 0); }
    25% { transform: rotate(90deg) translate(10px, -10px); }
    50% { transform: rotate(135deg) translate(0, 5px); }
    75% { transform: rotate(180deg) translate(-10px, -5px); }
    to { transform: rotate(225deg) translate(0, 0); }
}

@keyframes spin2 {
    from { transform: rotate(20deg); }
    to { transform: rotate(380deg); }
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(6, 21, 42, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

#navbar.scrolled .nav-link:hover {
    color: #1a9d62;
}

#navbar.scrolled .nav-text {
    color: #06152a;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-link {
    position: relative;
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========================================
   Form Styles
   ======================================== */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 184, 120, 0.15);
}

/* ========================================
   Custom Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7690b2;
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: #8ae9bc;
    color: #06152a;
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }
    
    .geo-circle-3 {
        width: 80px;
        height: 80px;
    }
    
    .geo-rect-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-rect-2 {
        width: 40px;
        height: 40px;
    }
    
    .geo-triangle {
        border-left: 35px solid transparent;
        border-right: 35px solid transparent;
        border-bottom: 60px solid #4fd39a;
    }
}
