/* ==========================================
   UNC Internal Medicine at Goldsboro
   Custom Styles
   ========================================== */

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

/* Custom selection color */
::selection {
    background-color: #7B2D3B;
    color: white;
}

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

.shape-circle-1 {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 168, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 180, 168, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 180, 0.1) 0%, transparent 70%);
    top: 30%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 160, 180, 0.08);
    border-radius: 24px;
    top: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 180, 200, 0.06);
    border-radius: 16px;
    bottom: 25%;
    right: 25%;
    transform: rotate(20deg);
    animation: spin 15s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 150, 170, 0.07);
    top: 45%;
    left: 8%;
    transform: rotate(-15deg);
    animation: float 7s ease-in-out infinite;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, rgba(255, 200, 220, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    bottom: 15%;
    right: 8%;
    opacity: 0.6;
}

.shape-line-1 {
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 180, 200, 0.2), transparent);
    top: 35%;
    right: 5%;
    transform: rotate(-30deg);
}

.shape-line-2 {
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(255, 160, 180, 0.15), transparent);
    bottom: 30%;
    left: 3%;
    transform: rotate(20deg);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

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

/* ==========================================
   Hero Animations
   ========================================== */
.hero-badge {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

#hero h1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

#hero p {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

#hero .flex.flex-col,
#hero .flex.flex-row {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

#hero .mt-16 {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

/* ==========================================
   Service Cards
   ========================================== */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ==========================================
   Mobile Menu
   ========================================== */
.mobile-menu-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease;
}

.mobile-menu-link:hover {
    padding-left: 12px;
}

/* ==========================================
   Form Styles
   ========================================== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' 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;
}

/* ==========================================
   Focus Visible for Accessibility
   ========================================== */
*:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
}

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

/* ==========================================
   Responsive Adjustments
   ========================================== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-circle-2 {
        width: 160px;
        height: 160px;
    }
    
    .shape-square-1 {
        width: 70px;
        height: 70px;
    }
    
    .shape-square-2 {
        width: 50px;
        height: 50px;
    }
    
    .shape-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 69px solid rgba(255, 150, 170, 0.07);
    }
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    nav, #contact, .geo-shape, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: white;
    }
}
