/* ============================================
   Dr. Perry Williams II DC — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
    background-color: #0B1D3A;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
}

::selection {
    background-color: rgba(212, 168, 67, 0.3);
    color: #ffffff;
}

/* --- Navbar --- */
.nav-fixed {
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(3, 8, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-line {
    transition: all 0.3s ease;
}

.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) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-link {
    display: block;
}

/* --- Hero Section --- */
.hero-section {
    background: #0B1D3A;
    position: relative;
}

/* Geometric Background Shapes */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.05) 0%, transparent 70%);
    bottom: 10%;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-rect {
    position: absolute;
    pointer-events: none;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(212, 168, 67, 0.15);
    top: 20%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin-slow 30s linear infinite;
}

.geo-triangle {
    position: absolute;
    pointer-events: none;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(212, 168, 67, 0.06);
    bottom: 25%;
    right: 8%;
    animation: float-slow 12s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(212, 168, 67, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    width: 200px;
    height: 200px;
    top: 30%;
    right: 15%;
    opacity: 0.5;
}

.geo-dots-2 {
    background-image: radial-gradient(circle, rgba(212, 168, 67, 0.15) 1px, transparent 1px);
    background-size: 25px 25px;
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    opacity: 0.4;
}

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

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

/* Hero Image */
.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.hero-image-accent {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(212, 168, 67, 0.3);
    border-radius: 20px;
    z-index: -1;
}

.hero-float-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(3, 8, 18, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    animation: float-card 4s ease-in-out infinite;
}

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

/* Scroll Indicator */
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(212, 168, 67, 0.6), transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #D4A843;
    color: #0B1D3A;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #D4A843;
}

.btn-primary:hover {
    background: #E8C36A;
    border-color: #E8C36A;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 168, 67, 0.3);
}

.btn-primary-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-primary-icon {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: rgba(212, 168, 67, 0.5);
    color: #D4A843;
    transform: translateY(-2px);
}

/* --- CTA Buttons --- */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0B1D3A;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #0B1D3A;
}

.btn-cta:hover {
    background: #060F1E;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(11, 29, 58, 0.4);
}

.btn-cta-icon {
    transition: transform 0.3s ease;
}

.btn-cta:hover .btn-cta-icon {
    transform: translateX(4px);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #0B1D3A;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(11, 29, 58, 0.3);
}

.btn-cta-secondary:hover {
    border-color: #0B1D3A;
    background: rgba(11, 29, 58, 0.05);
    transform: translateY(-2px);
}

/* --- About Section --- */
.about-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.about-image-frame:hover .about-image {
    transform: scale(1.03);
}

.about-gold-block {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: rgba(3, 8, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Value Cards */
.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: rgba(212, 168, 67, 0.2);
    background: rgba(212, 168, 67, 0.04);
    transform: translateY(-4px);
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212, 168, 67, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Service Cards --- */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    border-color: rgba(212, 168, 67, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 168, 67, 0.1);
}

.service-card-gold {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #D4A843, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* --- Approach Section --- */
.approach-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.approach-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.approach-image-container:hover .approach-image {
    transform: scale(1.03);
}

.approach-float {
    position: absolute;
    bottom: 24px;
    left: -24px;
    background: rgba(3, 8, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.approach-step {
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.approach-step:hover {
    padding-left: 8px;
}

/* --- Visit Cards --- */
.visit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.visit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4A843, #E8C36A);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.visit-card:hover {
    border-color: rgba(212, 168, 67, 0.2);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.visit-card-number {
    font-size: 6rem;
    line-height: 1;
    opacity: 0.15;
    font-family: 'Playfair Display', Georgia, serif;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 36px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    border-color: rgba(212, 168, 67, 0.5);
    background: rgba(212, 168, 67, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #D4A843;
    color: #0B1D3A;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', system-ui, sans-serif;
}

.btn-submit:hover {
    background: #E8C36A;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 168, 67, 0.3);
}

.btn-submit-icon {
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-submit-icon {
    transform: translateX(4px);
}

/* Contact Info Items */
.contact-info-item {
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(4px);
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.5s ease;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 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;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-float-card {
        left: 10px;
        bottom: -10px;
    }

    .about-gold-block {
        right: 10px;
        bottom: -10px;
    }

    .approach-float {
        left: 10px;
        bottom: 16px;
    }

    .visit-card-number {
        font-size: 4rem;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }

    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
}
