/* ============================================
   Yang Peter T DDS — Custom Styles
   ============================================ */

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

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

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

img, svg {
    display: block;
    max-width: 100%;
}

/* --- Geometric Background Decorations --- */
.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(123, 45, 59, 0.06) 0%, transparent 70%);
    top: 10%;
    right: -100px;
}

.geo-circle--2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 112, 102, 0.08) 0%, transparent 70%);
    top: 45%;
    left: -60px;
}

.geo-circle--3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(123, 45, 59, 0.05) 0%, transparent 70%);
    bottom: 15%;
    right: 10%;
}

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

.geo-tri--1 {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 70px 40px;
    border-color: transparent transparent rgba(123, 45, 59, 0.06) transparent;
    top: 30%;
    left: 5%;
    transform: rotate(-15deg);
}

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

.geo-dots--1 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 5%;
    background-image: radial-gradient(circle, rgba(123, 45, 59, 0.12) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
}

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

.geo-ring--1 {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(123, 45, 59, 0.08);
    border-radius: 50%;
    top: 20%;
    left: 8%;
}

/* --- Navbar --- */
#navbar {
    background: rgba(255, 250, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
}

#navbar.scrolled {
    background: rgba(255, 250, 247, 0.95);
    box-shadow: 0 4px 24px rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #7B2D3B;
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.btn-primary-nav {
    display: inline-flex;
    align-items: center;
    background: #7B2D3B;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary-nav:hover {
    background: #5c1f2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(123, 45, 59, 0.3);
}

/* Mobile menu */
#mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    display: block;
}

/* --- Hero Buttons --- */
.btn-primary-hero {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #7B2D3B;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background: #FFFAF7;
}

.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: white;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .service-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Info Cards --- */
.info-card {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .info-card {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .info-card.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- CTA Buttons --- */
.btn-cta-hero {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #7B2D3B;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: white;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}

.btn-secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* --- Input Fields --- */
.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(123, 45, 59, 0.12);
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: #3d141a;
    background: #FFFAF7;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: rgba(123, 45, 59, 0.35);
}

.input-field:focus {
    border-color: #7B2D3B;
    background: white;
    box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.08);
}

.input-field:hover:not(:focus) {
    border-color: rgba(123, 45, 59, 0.25);
}

/* --- Primary Button (form) --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7B2D3B;
    color: white;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary:hover {
    background: #5c1f2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* --- Section reveal animations (below fold only) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-circle--1 {
        width: 200px;
        height: 200px;
    }

    .geo-circle--2 {
        width: 140px;
        height: 140px;
    }

    .geo-tri--1 {
        border-width: 0 24px 42px 24px;
    }

    .geo-dots--1 {
        width: 80px;
        height: 80px;
    }

    .geo-ring--1 {
        width: 60px;
        height: 60px;
    }
}
