/* ===== Custom Styles for Partners Urgent Care UTC ===== */

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

.circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -200px;
    border-radius: 50%;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(139, 26, 43, 0.05);
    bottom: 10%;
    left: -80px;
    border-radius: 50%;
}

.rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 182, 182, 0.3);
    top: 30%;
    right: 5%;
    border-radius: 24px;
    transform: rotate(15deg);
}

.triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(139, 26, 43, 0.06);
    top: 20%;
    left: 45%;
    transform: rotate(-20deg);
}

.dot-grid {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(139, 26, 43, 0.1) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    bottom: 15%;
    right: 10%;
    border-radius: 20px;
}

.circle-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
}

.rect-2 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    bottom: -50px;
    left: 10%;
    border-radius: 32px;
    transform: rotate(-10deg);
}

.circle-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    border-radius: 50%;
}

.rect-3 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.04);
    top: 20%;
    right: 15%;
    border-radius: 20px;
    transform: rotate(30deg);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

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

/* Navbar Scroll State */
nav.scrolled {
    background: rgba(253, 248, 244, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(139, 26, 43, 0.08);
}

nav.scrolled .logo-text {
    color: #8b1a2b;
}

/* Mobile Menu */
.mobile-menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

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

/* Service Card Tilt Effect */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(139, 26, 43, 0.2);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Selection */
::selection {
    background: rgba(139, 26, 43, 0.15);
    color: #8b1a2b;
}

/* Service card stagger animation */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible:nth-child(1) { transition-delay: 0.05s; }
.service-card.visible:nth-child(2) { transition-delay: 0.1s; }
.service-card.visible:nth-child(3) { transition-delay: 0.15s; }
.service-card.visible:nth-child(4) { transition-delay: 0.2s; }
.service-card.visible:nth-child(5) { transition-delay: 0.25s; }
.service-card.visible:nth-child(6) { transition-delay: 0.3s; }

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero text reveal */
.hero-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal:nth-child(2) { animation-delay: 0.25s; }
.hero-reveal:nth-child(3) { animation-delay: 0.4s; }
.hero-reveal:nth-child(4) { animation-delay: 0.55s; }
.hero-reveal:nth-child(5) { animation-delay: 0.7s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu link hover */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* Map container hover */
.rounded-3xl.overflow-hidden {
    transition: box-shadow 0.3s ease;
}

.rounded-3xl.overflow-hidden:hover {
    box-shadow: 0 20px 60px rgba(139, 26, 43, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .rect-1 {
        width: 60px;
        height: 60px;
    }
    
    .dot-grid {
        width: 100px;
        height: 100px;
    }
}
