/* focusEDU — Custom Styles */

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

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Wave separator */
.wave-separator {
    position: relative;
}
.wave-separator::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: white;
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* Glassmorphism nav dropdown */
header .group:hover > div {
    backdrop-filter: blur(12px);
}

/* Hero gradient overlay for background images */
.hero-overlay {
    background: linear-gradient(135deg, rgba(25, 53, 92, 0.92) 0%, rgba(25, 53, 92, 0.6) 50%, rgba(25, 53, 92, 0.3) 100%);
}

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

/* Prose overrides for blog content */
.prose img {
    border-radius: 0.5rem;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}
.prose blockquote {
    border-left-color: #b81321;
    font-style: italic;
}

/* Dark bullet points — visible on all pages */
.prose :where(ul > li)::marker {
    color: #1f2937;
}
.prose :where(ol > li)::marker {
    color: #1f2937;
}

/* 3D Flip Cards */
.flip-card {
    perspective: 1000px;
    height: 260px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.flip-card-front {
    background: white;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
    transform: rotateY(0deg);
    z-index: 2;
}
.flip-card-back {
    background: #19355c;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
}
.flip-card-back p {
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 1rem;
}
.flip-card-back .flip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #ef383a;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: auto;
}
.flip-card-back .flip-link:hover {
    color: #ff6b6b;
}

/* Scroll reveal animations — activated by IntersectionObserver in main.js */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
