/* ============================================
   Gen Min Acupuncture and Herb Center
   Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --burgundy-50: #fdf2f4;
    --burgundy-100: #fce7eb;
    --burgundy-600: #c21d44;
    --burgundy-700: #a11536;
    --burgundy-800: #841432;
    --burgundy-950: #3a0713;
    --blush-400: #ff748a;
    --blush-500: #ff3d5e;
    --cream: #FFF8F0;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* --- Fixed Geometric Background Shapes --- */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(194, 29, 68, 0.06) 0%, transparent 70%);
    top: 15%;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 116, 138, 0.08) 0%, transparent 70%);
    bottom: 30%;
    left: -50px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-circle--3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(194, 29, 68, 0.05) 0%, transparent 70%);
    top: 60%;
    right: 20%;
    animation: float-slow 18s ease-in-out infinite;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 0;
}

.geo-triangle--1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 116, 138, 0.06);
    top: 40%;
    left: 5%;
    animation: float-slow 22s ease-in-out infinite;
}

.geo-diamond {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.geo-diamond--1 {
    width: 80px;
    height: 80px;
    background: rgba(194, 29, 68, 0.05);
    top: 70%;
    right: 10%;
    transform: rotate(45deg);
    animation: float-slow 16s ease-in-out infinite reverse;
}

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

/* --- Navbar --- */
.nav-header {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(194, 29, 68, 0.1);
    transition: var(--transition-smooth);
}

.nav-header.scrolled {
    background: rgba(255, 248, 240, 0.98);
    box-shadow: 0 4px 20px rgba(194, 29, 68, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--burgundy-600), var(--blush-400));
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, var(--burgundy-700) 0%, var(--burgundy-600) 100%);
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(194, 29, 68, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--burgundy-800) 0%, var(--burgundy-700) 100%);
    box-shadow: 0 8px 25px rgba(194, 29, 68, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    transition: var(--transition-smooth);
}

/* --- Hero --- */
.hero {
    position: relative;
}

.hero-geo {
    animation: hero-float 8s ease-in-out infinite;
}

.hero-geo--circle1 {
    animation-delay: 0s;
}

.hero-geo--circle2 {
    animation-delay: -2s;
    animation-duration: 10s;
}

.hero-geo--rect1 {
    animation-delay: -4s;
    animation-duration: 12s;
}

.hero-geo--rect2 {
    animation-delay: -1s;
    animation-duration: 9s;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    33% { transform: translateY(-15px) rotate(2deg) scale(1.02); }
    66% { transform: translateY(10px) rotate(-1deg) scale(0.98); }
}

.scroll-indicator {
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* --- Service Cards --- */
.service-card {
    opacity: 1;
}

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

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

/* --- Mobile Menu --- */
.mobile-menu {
    animation: menu-slide 0.3s ease;
}

@keyframes menu-slide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(194, 29, 68, 0.08);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(194, 29, 68, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(194, 29, 68, 0.1) !important;
    outline: none !important;
}

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

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-geo {
        display: none;
    }
}
