/* ============================================
   Dermatology Group FL — Custom Styles
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

/* ============================================
   Geometric Animations (Hero)
   ============================================ */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-1 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: 25%;
    right: 15%;
    animation-delay: 2s;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    top: 40%;
    left: 8%;
    animation-delay: 4s;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255, 255, 255, 0.1);
    top: 30%;
    left: 15%;
    animation-delay: 1s;
    transform: rotate(15deg);
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    top: 60%;
    right: 10%;
    animation-delay: 3s;
    transform: rotate(45deg);
}

.geo-ring-1 {
    width: 200px;
    height: 200px;
    border: 4px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation-delay: 5s;
}

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

#navbar.scrolled .font-display {
    color: #064e3b !important;
}

/* ============================================
   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, #059669, #10b981, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* ============================================
   Condition Chips
   ============================================ */
.condition-chip {
    transition: all 0.3s ease;
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.1);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .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; }
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    position: relative;
}

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

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

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    outline: none !important;
}

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

::-webkit-scrollbar-track {
    background: #fefdf8;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: #064e3b;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    nav, .geo-shape, #contactForm, #successMessage {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-gradient-to-br {
        background: #059669 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
