/* ===== Custom Styles for Fallbrook Winery Management Office ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.geo-circle-1 {
    top: 15%;
    left: 8%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(141, 231, 200, 0.4);
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    top: 60%;
    right: 12%;
    width: 80px;
    height: 80px;
    background: rgba(85, 153, 255, 0.3);
    border-radius: 50%;
    animation: float-medium 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    bottom: 20%;
    left: 15%;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(85, 192, 143, 0.3);
    border-radius: 50%;
    animation: float-slow 10s ease-in-out infinite;
}

.geo-square-1 {
    top: 25%;
    right: 20%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(141, 231, 200, 0.2);
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.geo-square-2 {
    bottom: 30%;
    left: 5%;
    width: 40px;
    height: 40px;
    background: rgba(63, 93, 255, 0.2);
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}

.geo-triangle-1 {
    top: 40%;
    left: 3%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(141, 231, 200, 0.15);
    animation: float-medium 7s ease-in-out infinite;
}

.geo-ring-1 {
    top: 70%;
    right: 5%;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(85, 153, 255, 0.15);
    border-radius: 50%;
    animation: float-slow 9s ease-in-out infinite reverse;
}

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

@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Service Card Hover Effects ===== */
.service-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== Process Step Connector Lines ===== */
.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 60%;
    width: calc(100% - 20px);
    height: 2px;
    background: linear-gradient(to right, rgba(85, 212, 170, 0.3), transparent);
}

.process-step:last-child::after {
    display: none;
}

@media (max-width: 1023px) {
    .process-step::after {
        display: none;
    }
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background: rgba(11, 19, 53, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(85, 153, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Menu Animations ===== */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.4rem;
}

/* ===== Selection Color ===== */
::selection {
    background: rgba(85, 212, 170, 0.3);
    color: #f0f4ff;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Scroll Reveal Animations (progressive enhancement) ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    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; }

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