/* ============================================
   J&E Dental Services — Custom Styles
   ============================================ */

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

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

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

/* Navbar */
.nav-fixed {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Geometric Shapes */
.geometric-shape {
    position: absolute;
    opacity: 0.06;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #ff5c1a;
    top: -100px;
    left: -150px;
    animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #ff7a3f;
    bottom: 100px;
    right: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ff5c1a;
    top: 40%;
    left: 45%;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-circle-4 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #ff5c1a;
    bottom: -50px;
    left: 10%;
    animation: float-slow 18s ease-in-out infinite reverse;
}

.shape-circle-5 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #ff5c1a;
    top: -100px;
    right: -100px;
    animation: float-slow 22s ease-in-out infinite;
}

.shape-rect-1 {
    width: 200px;
    height: 200px;
    background: #ff7a3f;
    top: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: float-slow 16s ease-in-out infinite reverse;
}

.shape-rect-2 {
    width: 160px;
    height: 160px;
    background: #ff5c1a;
    bottom: 10%;
    left: 5%;
    transform: rotate(30deg);
    animation: float-slow 14s ease-in-out infinite;
}

.shape-diamond-1 {
    width: 180px;
    height: 180px;
    background: #ff5c1a;
    top: 15%;
    right: 5%;
    transform: rotate(45deg);
    animation: float-slow 17s ease-in-out infinite reverse;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #ff7a3f;
    top: 60%;
    left: 5%;
    opacity: 0.04;
    animation: float-slow 19s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-25px) rotate(1deg); }
}

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

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: linear-gradient(135deg, rgba(255, 92, 26, 0.03) 0%, rgba(45, 45, 68, 0.03) 100%);
    pointer-events: none;
}

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

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

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

/* Back to Top */
.back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

/* Mobile menu */
#mobileMenu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1rem;
}

/* Reduce motion */
@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;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
    background: #ff5c1a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8430a;
}
