/* ============================================
   Albemarle Appraisal — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    min-height: 100vh;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
}

.shape-circle-1 {
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, #34d4a0 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #34d4a0 0%, transparent 70%);
    bottom: -100px;
    left: -150px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 346px solid #34d4a0;
    top: 40%;
    left: 5%;
    opacity: 0.02;
    animation: rotate-slow 30s linear infinite;
}

.shape-diamond {
    width: 200px;
    height: 200px;
    background: #34d4a0;
    transform: rotate(45deg);
    top: 60%;
    right: 8%;
    opacity: 0.025;
    animation: float-slow 18s ease-in-out infinite;
}

.shape-ring {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 60px solid #34d4a0;
    top: 20%;
    left: 60%;
    opacity: 0.015;
    animation: rotate-slow 40s linear infinite reverse;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

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

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

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

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

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

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

#navbar.scrolled {
    background-color: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(52, 212, 160, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #34d4a0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-nav-link {
    display: block;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #34d4a0, #10b882);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ============================================
   Process Steps
   ============================================ */
.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #34d4a0, transparent);
    opacity: 0.3;
}

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

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 800;
    color: rgba(52, 212, 160, 0.06);
    line-height: 1;
    pointer-events: none;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #34d4a0 !important;
    box-shadow: 0 0 0 3px rgba(52, 212, 160, 0.1) !important;
}

select option {
    background-color: #0d1f3a;
    color: #ffffff;
}

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 400px;
        height: 400px;
    }
    
    .shape-circle-2 {
        width: 300px;
        height: 300px;
    }
    
    .shape-triangle {
        display: none;
    }
    
    .shape-diamond {
        width: 100px;
        height: 100px;
    }
    
    .shape-ring {
        width: 200px;
        height: 200px;
        border-width: 30px;
    }
    
    /* Hide floating cards on mobile */
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
    
    .process-step::after {
        display: none;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
        top: 12px;
        right: 16px;
    }
}

@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background-color: rgba(52, 212, 160, 0.3);
    color: #ffffff;
}

/* ============================================
   Focus Visible for Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid #34d4a0;
    outline-offset: 2px;
}

/* ============================================
   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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
