/* ============================================
   DR. JORES CARABELAIAN — 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;
    overflow-x: hidden;
}

/* --- Geometric Background Shapes --- */
.geo-shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 83, 45, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -200px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: rgba(20, 83, 45, 0.05);
    border-radius: 50%;
    top: 40%;
    right: 10%;
    animation: float-slow 12s ease-in-out infinite;
}

.rect-1 {
    width: 80px;
    height: 80px;
    background: rgba(20, 83, 45, 0.04);
    border-radius: 20px;
    top: 25%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.rect-2 {
    width: 60px;
    height: 60px;
    background: rgba(74, 222, 128, 0.08);
    border-radius: 14px;
    bottom: 20%;
    right: 5%;
    transform: rotate(20deg);
    animation: spin-slow 20s linear infinite reverse;
}

.dot-grid {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(20, 83, 45, 0.12) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    top: 15%;
    right: 30%;
    opacity: 0.6;
}

/* --- Animations --- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.02); }
}

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

/* --- Navigation --- */
#navbar {
    background: rgba(254, 253, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 83, 45, 0.06);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(5, 46, 22, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-link {
    transition: all 0.3s ease;
}

.mobile-link:hover {
    color: #16a34a;
}

/* --- 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, #4ade80, #22c55e, #16a34a);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 24px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 120px;
    line-height: 1;
    color: rgba(20, 83, 45, 0.06);
    pointer-events: none;
}

.testimonial-card.bg-forest-800::before {
    color: rgba(255, 255, 255, 0.05);
}

/* --- 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='%2314532d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
}

/* --- Selection --- */
::selection {
    background: rgba(20, 83, 45, 0.15);
    color: #052e16;
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
    border-radius: 4px;
}
