/* ===== Custom Styles for Dynamic Dental Services ===== */

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

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

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

#navbar.scrolled {
    background-color: rgba(39, 12, 38, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border: 2px solid rgba(251, 191, 36, 0.4);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(192, 82, 200, 0.2));
    border-radius: 50%;
    bottom: 20%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(161, 58, 159, 0.4);
    border-radius: 50%;
    top: 40%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.shape-square-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), transparent);
    top: 25%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-square-2 {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    bottom: 30%;
    right: 15%;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(161, 58, 159, 0.2);
    top: 15%;
    right: 25%;
    animation: float 9s ease-in-out infinite;
}

.shape-ring-1 {
    width: 160px;
    height: 160px;
    border: 3px solid rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    bottom: 15%;
    left: 20%;
    animation: float 10s ease-in-out infinite reverse;
}

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

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .geo-shape {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu .mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ===== Custom Select ===== */
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='%23842d7e' 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;
    appearance: none;
    -webkit-appearance: none;
}

/* ===== Focus styles ===== */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* ===== Selection ===== */
::selection {
    background-color: rgba(161, 58, 159, 0.3);
    color: #481a45;
}
