/* ===== Custom Styles for Dental Hygiene Clinic ===== */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(224, 82, 50, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 20%;
    left: -3%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    top: 40%;
    right: 5%;
    width: 80px;
    height: 80px;
    background: rgba(224, 82, 50, 0.06);
    border-radius: 1rem;
    transform: rotate(45deg);
    animation: float-medium 12s ease-in-out infinite;
}

.geo-triangle-1 {
    bottom: 30%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(251, 191, 36, 0.08);
    animation: float-medium 18s ease-in-out infinite reverse;
}

.geo-dots {
    top: 60%;
    right: 15%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(224, 82, 50, 0.12) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    border-radius: 50%;
    animation: float-slow 25s ease-in-out infinite;
}

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

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

/* ===== Navbar ===== */
#navbar {
    background: rgba(255, 251, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(92, 58, 46, 0.06);
}

#navbar.scrolled {
    background: rgba(255, 251, 240, 0.95);
    box-shadow: 0 4px 30px rgba(92, 58, 46, 0.08);
}

.nav-link {
    position: relative;
}

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

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

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

/* ===== 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, #e05232, #fbbf24);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Start below the fold elements slightly hidden for JS reveal */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #e05232;
}

/* ===== Selection ===== */
::selection {
    background: rgba(224, 82, 50, 0.2);
    color: #3d2419;
}

/* ===== Focus styles ===== */
*:focus-visible {
    outline: 2px solid #e05232;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .geo-circle-1,
    .geo-circle-2,
    .geo-square-1,
    .geo-triangle-1,
    .geo-dots {
        display: none;
    }
}

/* ===== Form select arrow ===== */
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='%235c3a2e' stroke-width='2.5' 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;
}
