/* Project Sulangan - Custom Styles */

/* Smooth scrolling & font rendering */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom transitions for nav links */
nav a {
    transition: color 0.2s ease, border-color 0.2s ease;
}

/* Card hover lift effect */
.card-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-lift:hover {
    transform: translateY(-4px);
}

/* Scroll-reveal fade-in */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children inside a reveal-group */
.reveal-group .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group .reveal:nth-child(2) { transition-delay: 120ms; }
.reveal-group .reveal:nth-child(3) { transition-delay: 240ms; }
.reveal-group .reveal:nth-child(4) { transition-delay: 360ms; }

/* Timeline connector */
.flex > .flex-col .w-0\.5 {
    transition: height 0.3s ease;
}

/* Responsive image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #00BBF2;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease;
}

/* Stat dividers on desktop */
.stat-grid > div + div {
    position: relative;
}
@media (min-width: 768px) {
    .stat-grid > div + div::before {
        content: '';
        position: absolute;
        left: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background: currentColor;
        opacity: 0.15;
    }
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
