/* ============================================
   Marie Glenn J DDS PC — Custom Styles
   ============================================ */

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

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

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #c8e6c9;
    bottom: 10%;
    left: 5%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #81c784;
    top: 40%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: #a5d6a7;
    border-radius: 24px;
    top: 20%;
    left: 8%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-square-2 {
    width: 80px;
    height: 80px;
    background: #c8e6c9;
    border-radius: 16px;
    bottom: 25%;
    right: 15%;
    transform: rotate(30deg);
    animation: spin-slow 15s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid #81c784;
    top: 60%;
    left: 15%;
    animation: float 7s ease-in-out infinite;
    opacity: 0.06;
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Hero Content Animation --- */
.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

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

/* --- Navbar Scroll State --- */
.navbar-scrolled {
    background: rgba(250, 249, 246, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-link {
    color: #1b5e20 !important;
}

.navbar-scrolled .logo-text {
    color: #1b5e20 !important;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Custom Selection --- */
::selection {
    background: #558b2f;
    color: white;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .geometric-shape,
    .shape-circle-1,
    .shape-circle-2,
    .shape-circle-3,
    .shape-square-1,
    .shape-square-2,
    .shape-triangle-1 {
        animation: none !important;
    }
    
    .hero-content {
        animation: none;
    }
    
    .reveal {
        transition: none;
        opacity: 1 !important;
        transform: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* --- Mobile Menu Transition --- */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* --- Card Hover Effects --- */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* --- Focus Styles --- */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* --- Button Active State --- */
button:active,
a:active {
    transform: scale(0.98);
}

/* --- Print Styles --- */
@media print {
    nav, .geometric-shape, .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: white;
    }
}
