/* ===== Custom Styles for Arrazola Pedro M Medical Website ===== */

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

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

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
    bottom: 100px;
    left: -80px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(0, 212, 170, 0.15);
    border-radius: 24px;
    top: 200px;
    right: 100px;
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

.shape-rect-2 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(0, 212, 170, 0.1);
    border-radius: 16px;
    bottom: 250px;
    left: 150px;
    transform: rotate(20deg);
    animation: float-medium 10s ease-in-out infinite reverse;
}

.shape-dot-grid {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(0, 212, 170, 0.2) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    bottom: 120px;
    right: 200px;
    animation: float-slow 18s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(48deg); }
}

/* ===== Scroll Reveal Animations ===== */
/* Default state: visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.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; }
.reveal.delay-5 { transition-delay: 0.5s; }
.reveal.delay-6 { transition-delay: 0.6s; }

/* Hidden state for JS progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* ===== Service Cards ===== */
.service-card {
    border: 1px solid rgba(10, 31, 68, 0.08);
}

.service-card:hover {
    border-color: rgba(0, 212, 170, 0.4);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    position: relative;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(10, 31, 68, 0.06);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    border-color: #00B894 !important;
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1) !important;
}

/* ===== Selection ===== */
::selection {
    background: rgba(0, 212, 170, 0.3);
    color: #0A1F44;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A1F44;
}

::-webkit-scrollbar-thumb {
    background: #00D4AA;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #33FFD1;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
        right: -80px;
    }

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

    .shape-rect-1 {
        width: 60px;
        height: 60px;
        right: 40px;
    }

    .shape-rect-2 {
        width: 40px;
        height: 40px;
    }

    .shape-dot-grid {
        width: 60px;
        height: 60px;
    }
}
