/* ============================================
   Outpatient Testing Center — Custom Styles
   ============================================ */

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

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

body {
    position: relative;
}

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #7B2D8E;
    top: -200px;
    right: -200px;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #FF9800;
    bottom: 10%;
    left: -150px;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: #A844B8;
    top: 40%;
    right: 5%;
    transform: rotate(45deg);
    opacity: 0.04;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #FFA726;
    top: 60%;
    left: 8%;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.shape-dots {
    width: 300px;
    height: 300px;
    background-image: radial-gradient(circle, #7B2D8E 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    top: 30%;
    right: -50px;
    opacity: 0.08;
}

/* ============================================
   Hero Geometric Elements
   ============================================ */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.geo-amber-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.geo-amber-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
}

.geo-plum-ring {
    width: 400px;
    height: 400px;
    border: 3px solid rgba(168, 68, 184, 0.3);
    border-radius: 50%;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
}

.geo-dots-1 {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.5) 2px, transparent 2px);
    background-size: 16px 16px;
    top: 20%;
    left: 50%;
    opacity: 0.6;
}

.geo-dots-2 {
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, rgba(168, 68, 184, 0.5) 2px, transparent 2px);
    background-size: 14px 14px;
    bottom: 20%;
    right: 30%;
    opacity: 0.5;
}

.geo-stripe {
    width: 600px;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(251, 191, 36, 0.03) 20px,
        rgba(251, 191, 36, 0.03) 40px
    );
    left: 0;
    top: 0;
}

/* Hero Photo Grid */
.hero-photo-grid {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    opacity: 0.7;
    max-width: 340px;
}

.hero-photo {
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.hero-photo.photo-1 {
    width: 100%;
    height: 320px;
    grid-column: 1 / -1;
    border-radius: 24px;
}

.hero-photo.photo-2 {
    width: 100%;
    height: 160px;
}

.hero-photo.photo-3 {
    width: 100%;
    height: 160px;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 10px;
    letter-spacing: 0.2em;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

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

/* ============================================
   Why Us Section Geometric Shapes
   ============================================ */
.why-geo {
    position: absolute;
    pointer-events: none;
}

.geo-amber-square {
    width: 250px;
    height: 250px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 40px;
    bottom: -50px;
    right: -50px;
    transform: rotate(20deg);
}

.geo-plum-circle {
    width: 200px;
    height: 200px;
    border: 3px solid rgba(168, 68, 184, 0.2);
    border-radius: 50%;
    top: 10%;
    left: -50px;
}

.geo-diamond {
    width: 100px;
    height: 100px;
    background: rgba(251, 191, 36, 0.15);
    transform: rotate(45deg);
    top: 30%;
    right: 10%;
    border-radius: 8px;
}

.geo-stripe-pattern {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(168, 68, 184, 0.03) 30px,
        rgba(168, 68, 184, 0.03) 60px
    );
}

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

.geo-circle-accent {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 45, 142, 0.08) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.geo-square-accent {
    width: 200px;
    height: 200px;
    background: rgba(255, 152, 0, 0.06);
    border-radius: 32px;
    bottom: -50px;
    right: 10%;
    transform: rotate(30deg);
}

/* ============================================
   CTA Section Geometric Shapes
   ============================================ */
.cta-geo {
    position: absolute;
    pointer-events: none;
}

.geo-circle-cta-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 45, 142, 0.15) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.geo-circle-cta-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 45, 142, 0.1) 0%, transparent 70%);
    bottom: -100px;
    right: -50px;
}

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

.geo-footer-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 68, 184, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.geo-footer-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    bottom: -150px;
    left: -50px;
}

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

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

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

/* Mobile menu */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
    color: #FF9800;
    padding-left: 12px;
}

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

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    perspective: 1000px;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-photo-grid {
        display: none;
    }
}

@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    .shape-circle-1 { display: block; width: 300px; height: 300px; }
    .shape-circle-2 { display: block; width: 200px; height: 200px; }
    
    .why-geo, .test-geo, .cta-geo, .footer-geo {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-photo-grid {
        display: none;
    }
    
    .shape-square-1, .shape-triangle-1, .shape-dots {
        display: none;
    }
}

/* ============================================
   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 !important;
        transform: none !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

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

/* ============================================
   Selection
   ============================================ */
::selection {
    background: #A844B8;
    color: white;
}
