/* ============================================
   Nurses By Prescription — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    min-height: 100vh;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.fixed.inset-0.pointer-events-none {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    top: 15%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(214, 77, 31, 0.06) 0%, transparent 70%);
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    bottom: 10%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 176, 69, 0.08) 0%, transparent 70%);
    animation: float-slow 15s ease-in-out infinite reverse;
}

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

.geo-triangle--1 {
    top: 25%;
    left: 5%;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(214, 77, 31, 0.05);
    animation: spin-slow 25s linear infinite;
    transform-origin: center;
}

.geo-rect {
    position: absolute;
    pointer-events: none;
    border-radius: 12px;
}

.geo-rect--1 {
    top: 60%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: rgba(227, 176, 69, 0.07);
    transform: rotate(45deg);
    animation: float-slow 18s ease-in-out infinite;
}

.geo-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-dot--1 {
    top: 40%;
    right: 15%;
    width: 12px;
    height: 12px;
    background: rgba(214, 77, 31, 0.2);
    animation: pulse-dot 3s ease-in-out infinite;
}

.geo-dot--2 {
    bottom: 30%;
    left: 12%;
    width: 8px;
    height: 8px;
    background: rgba(227, 176, 69, 0.3);
    animation: pulse-dot 4s ease-in-out infinite 1s;
}

.geo-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: 2px solid;
}

.geo-ring--1 {
    top: 70%;
    left: 20%;
    width: 60px;
    height: 60px;
    border-color: rgba(214, 77, 31, 0.1);
    animation: spin-slow 20s linear infinite;
}

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

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

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

/* Mobile Menu */
#mobileMenu {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                pointer-events 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    position: relative;
}

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

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

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d64d1f, #e3b045);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .geo-circle--1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle--2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-triangle--1 {
        display: none;
    }
    
    .geo-rect--1 {
        display: none;
    }
}

@media (max-width: 360px) {
    .geo-circle {
        display: none;
    }
    
    .geo-dot,
    .geo-ring {
        display: none;
    }
}

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

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: rgba(214, 77, 31, 0.2);
    color: #772511;
}
