/* ============================================
   NEW HAMPTON CHIROPRACTIC OFFICE
   Custom Styles — Vibrant Modern
   ============================================ */

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

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

body {
    min-height: 100vh;
}

::selection {
    background: #c9a227;
    color: #0a192f;
}

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

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.12) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    border-radius: 50%;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    border-radius: 50%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    border-radius: 50%;
    animation: float-slow 10s ease-in-out infinite;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(201, 162, 39, 0.2);
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: rotate-slow 20s linear infinite;
}

.geo-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(201, 162, 39, 0.06);
    bottom: 15%;
    right: 10%;
    transform: rotate(30deg);
    animation: rotate-slow 15s linear infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(201, 162, 39, 0.08);
    top: 40%;
    right: 5%;
    animation: float-slow 7s ease-in-out infinite;
}

.geo-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(201, 162, 39, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    top: 60%;
    left: 3%;
    opacity: 0.6;
}

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

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

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #c9a227, #d4a017);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ---------- Testimonial Cards ---------- */
.testimonial-card {
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 25, 47, 0.1);
}

/* ---------- Navbar ---------- */
.nav-link {
    position: relative;
}

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

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

/* ---------- Navbar Scroll State ---------- */
.navbar-scrolled {
    background: rgba(10, 25, 47, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-scrolled .menu-line {
    background: white;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu-active {
    opacity: 1 !important;
    pointer-events: all !important;
}

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

.mobile-menu-active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

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

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

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

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

/* ---------- Form Inputs ---------- */
input:focus, textarea:focus {
    outline: none;
}

/* ---------- Smooth Scroll Offset ---------- */
section[id] {
    scroll-margin-top: 80px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .geo-square-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-triangle-1 {
        border-left-width: 30px;
        border-right-width: 30px;
        border-bottom-width: 52px;
    }
}
