/* ===== Custom Styles for LDF Family Resource Center ===== */

/* Base */
*, *::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 Background Shapes ===== */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(251, 191, 36, 0.15);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    top: 60%;
    right: 10%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(251, 191, 36, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
    bottom: 15%;
    left: 15%;
    width: 120px;
    height: 120px;
    background: rgba(251, 191, 36, 0.08);
    border-radius: 50%;
    animation: float 5s ease-in-out infinite;
}

.shape-triangle-1 {
    top: 20%;
    right: 25%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(251, 191, 36, 0.1);
    animation: spin-slow 20s linear infinite;
}

.shape-square-1 {
    bottom: 25%;
    right: 5%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(251, 191, 36, 0.12);
    transform: rotate(45deg);
    animation: spin-slow 15s linear infinite reverse;
}

.shape-dots {
    top: 40%;
    left: 3%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.2) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.6;
}

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

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

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

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-spin-slow {
    animation: spin-slow 30s linear infinite;
}

.animate-spin-slow-reverse {
    animation: spin-slow-reverse 25s linear infinite;
}

/* ===== Scroll Reveal (Progressive Enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Default visible state for reduced-motion or no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

/* ===== Mobile Menu ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

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

/* ===== Navigation Active State ===== */
.nav-link.active {
    color: #9d174d;
    background-color: #fdf4f8;
}

/* ===== Service Card Hover Effects ===== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9d174d, #fbbf24);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ===== Button Ripple Effect ===== */
button, a {
    position: relative;
    overflow: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9d174d;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 640px) {
    .geo-shape {
        display: none;
    }
}

/* ===== Print Styles ===== */
@media print {
    header, footer, .geo-shape, button {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
