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

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

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

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

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #a5d6a7;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #66bb6a;
    bottom: 10%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #c8e6c9;
    top: 40%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

.geo-circle-4 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #a5d6a7;
    bottom: -80px;
    left: -80px;
    animation: float 10s ease-in-out infinite;
}

.geo-circle-5 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #c8e6c9;
    top: -60px;
    right: 10%;
    animation: float 9s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #66bb6a;
    top: 30%;
    left: 5%;
    transform: rotate(15deg);
    animation: spin 20s linear infinite;
}

.geo-square-1 {
    width: 80px;
    height: 80px;
    background: #a5d6a7;
    bottom: 20%;
    right: 15%;
    transform: rotate(45deg);
    animation: float 5s ease-in-out infinite;
}

.geo-square-2 {
    width: 60px;
    height: 60px;
    background: #c8e6c9;
    top: 20%;
    left: 10%;
    transform: rotate(30deg);
    animation: spin 15s linear infinite reverse;
}

.geo-diamond-1 {
    width: 150px;
    height: 150px;
    background: #66bb6a;
    top: 10%;
    right: 5%;
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite;
}

.geo-ring-1 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 20px solid #c8e6c9;
    top: 60%;
    left: 8%;
    animation: float 7s ease-in-out infinite reverse;
}

/* Dot Pattern */
.dot-pattern {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #a5d6a7 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.5;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

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

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Cards */
.service-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Treatment Cards */
.treatment-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.treatment-card:hover {
    transform: translateY(-4px);
}

.treatment-card img {
    transition: transform 0.7s ease;
}

/* Testimonial Cards */
.testimonial-card {
    transition: transform 0.4s ease, background 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(26, 95, 58, 0.08);
}

.nav-link {
    position: relative;
}

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

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

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #a5d6a7;
}

#navbar:not(.scrolled) .nav-link::after {
    background: #a5d6a7;
}

#navbar:not(.scrolled) .nav-text {
    color: rgba(255, 255, 255, 0.95);
}

#navbar:not(.scrolled) .nav-text span {
    color: rgba(165, 214, 167, 0.9);
}

/* Mobile Menu */
.mobile-link {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu {
    visibility: hidden;
}

#mobile-menu.open {
    visibility: visible;
    transform: translateX(0);
}

#mobile-menu.closed {
    visibility: hidden;
    transform: translateX(-100%);
}

/* Mobile menu lines animation */
.menu-line {
    display: block;
}

body.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #2d8a5e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: #a5d6a7;
    color: #0f3822;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #66bb6a;
}
