/* ============================================
   WATERSMEET MEDICAL CLINIC — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   GEOMETRIC BACKGROUND SHAPES
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
}

.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 300px;
    height: 300px;
    border: 3px solid rgba(45, 110, 45, 0.12);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    top: 45%;
    left: -3%;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(45, 110, 45, 0.08);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    top: 70%;
    right: 8%;
    width: 80px;
    height: 80px;
    background: rgba(45, 110, 45, 0.06);
    border-radius: 16px;
    transform: rotate(45deg);
    animation: float-slow 12s ease-in-out infinite;
}

.geo-triangle-1 {
    top: 30%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(45, 110, 45, 0.06);
    animation: float-slow 18s ease-in-out infinite reverse;
}

.geo-circle-3 {
    bottom: 10%;
    left: 15%;
    width: 120px;
    height: 120px;
    background: rgba(250, 242, 214, 0.6);
    border-radius: 50%;
    animation: float-slow 22s ease-in-out infinite;
}

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

/* ============================================
   FLOATING CARDS
   ============================================ */
.floating-card-1 {
    animation: float-card-1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-card-2 7s ease-in-out infinite;
}

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

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

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   NAVBAR SCROLL STATE
   ============================================ */
.navbar-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 110, 45, 0.08);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.menu-line {
    display: block;
}

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

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

.mobile-menu-open .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ============================================
   FORM STYLES
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%232d6e2d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ============================================
   FOCUS VISIBLE
   ============================================ */
*:focus-visible {
    outline: 2px solid #2d6e2d;
    outline-offset: 2px;
}

/* ============================================
   REDUCED 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;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
    .geo-circle-1,
    .geo-circle-2,
    .geo-square-1,
    .geo-triangle-1,
    .geo-circle-3 {
        display: none;
    }
}
