@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght=300;400;500;600;700;800&display=swap');

html {
    overflow-x: hidden;
}

/* --- System Reset & Cool Slate Tinted Theme --- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc; /* Clean Slate-50 background tint */
    background-image: linear-gradient(to bottom, #f8fafc, #ffffff);
    color: #334155;
    /* Mobile Chrome doesn't resolve 100vh correctly on first paint — it
       includes space the address bar is covering, so fixed/full-height
       elements can render wrong until the first scroll forces a
       recalculation. 100dvh (Chrome 108+) fixes this from first paint.
       The 100vh line stays as a fallback for browsers that don't
       support dvh — they'll just ignore the line below it. */
    min-height: 100vh;
    min-height: 100dvh;
}

#mobile-menu,
#mobile-menu-backdrop {
    min-height: 100vh;
    min-height: 100dvh;
}

/* --- Clean White Cards with Faint Borders --- */
.glass-card {
    background: #FFFFFF;
    border: 1px solid #e2e8f0; /* border-slate-200 */
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
}

/* --- Keep ALL of your original animations (marquee, float, nav-anim, etc.) exactly as you had them below this line --- */

/* --- Continuous Ticker Engine --- */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

/* --- Navigation Link Micro-Animations --- */
.nav-anim {
    position: relative;
    transition: color 0.3s ease;
}

.nav-anim::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #1E1B4B, #EF4444);
    border-radius: 99px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-anim:hover::after {
    width: 100%;
}

.nav-link-active {
    color: #1E1B4B !important;
    font-weight: 700;
    position: relative;
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FACC15;
    border-radius: 9999px;
}

/* --- Button Physics & Glow Accelerators --- */
.btn-animate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-animate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.15);
}

.btn-animate:active {
    transform: translateY(0) scale(0.96);
}

/* --- Floating Keyframe Physics --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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




.slider{
    position:relative;
    width:100%;
    max-width:620px;
    margin:auto;
}

.slider-wrapper{
    overflow:hidden;
    border-radius:32px;
}

.slider-track{
    display:flex;
    transition:transform .6s ease;
}

.slide {
    min-width: 100%;
    width: 100%;
    height: 300px;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
@media(max-width:768px){

    .slider{
        max-width:95vw;
    }

    .slide img{
        height:420px;
        border-radius:28px;
    }

}

.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:46px;
    height:46px;
    border-radius:50%;
    background:#fff;
    border:none;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    cursor:pointer;
    z-index:10;
}

#prevBtn{
    left:15px;
}

#nextBtn{
    right:15px;
}

.slider-dots{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:20px;
}

.slider-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#cbd5e1;
    cursor:pointer;
    transition:.3s;
}

.slider-dot.active{
    width:32px;
    border-radius:20px;
    background:#1E1B4B;
}
/* =========================================================
   NEW HEADER — glass, animated, scroll-aware
   ========================================================= */
html { scroll-behavior: smooth; }

#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #FACC15, #EF4444, #6366F1);
    z-index: 60;
    transition: width 0.12s linear;
}

.site-header {
    /* isolation: isolate pins the header's own stacking order (logo,
       nav, auth buttons, Gallery dropdown) so nothing inside it can
       ever be out-painted by a sibling row-item or by page content
       below the header — this is what was letting the Gallery
       dropdown get buried behind the Contact/Register area on
       desktop. */
    isolation: isolate;
    /* Matches the footer's bg-slate-900 so the whole page reads as one
       consistent dark-navy-bookended layout, top and bottom. */
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s ease, background 0.4s ease;
    animation: headerDropIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* The decorative blobs need their own clipped layer — the header
   itself must NOT clip (overflow: hidden here was cutting off the
   Gallery dropdown menu, since it renders inside the header). */
.site-header-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.site-header.scrolled {
    background: rgba(15, 23, 42, 0.97);
    box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45);
}

.site-header-row { transition: height 0.35s ease; }
.site-header.scrolled .site-header-row { height: 4.25rem; }

@keyframes headerDropIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.site-header-blob {
    position: absolute;
    display: block;
    border-radius: 9999px;
    filter: blur(50px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}
.blob-a {
    width: 220px; height: 220px;
    background: radial-gradient(circle, #FACC15, transparent 70%);
    top: -130px; left: 6%;
    animation: blobDrift 14s ease-in-out infinite;
}
.blob-b {
    width: 260px; height: 260px;
    background: radial-gradient(circle, #6366F1, transparent 70%);
    top: -150px; right: 8%;
    animation: blobDrift 18s ease-in-out infinite reverse;
}
@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(24px, 12px); }
}

.logo-glow {
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    background: conic-gradient(from 0deg, #FACC15, #EF4444, #6366F1, #FACC15);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s ease;
    z-index: 0;
    animation: spinGlow 4s linear infinite;
}
.group:hover .logo-glow { opacity: 0.5; }
@keyframes spinGlow { to { transform: rotate(360deg); } }

.nav-pill {
    position: relative;
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    transition: color 0.3s ease;
    z-index: 1;
}
.nav-pill:hover { color: #ffffff; }
.nav-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.85);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}
.nav-pill:hover::before {
    opacity: 1;
    transform: scale(1);
}
.nav-pill.text-coopYellow::before {
    opacity: 1;
    transform: scale(1);
    background: rgba(250, 204, 21, 0.14);
}
.nav-pill.nav-anim::after { display: none; }

.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
.btn-shine:hover::after { left: 125%; }

.hamburger-btn {
    position: relative;
    border-radius: 9999px;
    transition: background 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(90deg);
}

.mobile-sidebar { overflow: hidden; }
.sidebar-blob {
    position: absolute;
    display: block;
    width: 300px; height: 300px;
    border-radius: 9999px;
    background: radial-gradient(circle, #6366F1, transparent 70%);
    opacity: 0.25;
    top: -90px; right: -110px;
    filter: blur(45px);
    pointer-events: none;
    z-index: 0;
}
.sidebar-link {
    position: relative;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.45s ease, transform 0.45s ease, background 0.2s ease;
}
#mobile-menu.translate-x-0 .sidebar-link { opacity: 1; transform: translateX(0); }
#mobile-menu.translate-x-0 .sidebar-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.translate-x-0 .sidebar-link:nth-child(2) { transition-delay: 0.10s; }
#mobile-menu.translate-x-0 .sidebar-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.translate-x-0 .sidebar-link:nth-child(4) { transition-delay: 0.20s; }
#mobile-menu.translate-x-0 .sidebar-link:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.translate-x-0 .sidebar-link:nth-child(6) { transition-delay: 0.30s; }

/* =========================================================
   SITE-WIDE SCROLL-REVEAL SYSTEM (applied automatically by app.js)
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Directional variants — used on the hero two-column layouts so text
   slides in from the left and the accompanying image/card slides in
   from the right, matching the original design intent but now
   triggered by scroll position instead of firing once on page load. */
.reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal-left { transform: translateX(-52px); }
.reveal-right { transform: translateX(52px); }
.reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: translateX(0); }

/* Card lift on hover, everywhere .glass-card is used */
.glass-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px -18px rgba(15, 23, 42, 0.18);
}

/* Ripple feedback on buttons */
.btn-animate, .btn-shine { position: relative; overflow: hidden; }
.ripple-circle {
    position: absolute;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(2.6); opacity: 0; }
}

/* Gentle continuous accents used across pages */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animate-fadeInUp { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-scaleIn { animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}


/* =========================================================
   AUTH PAGES (login / signup / password recovery)
   No header on these — a visible back button + centered
   card carries the branding instead.
   ========================================================= */
.auth-body {
    position: relative;
    overflow: hidden;
}

.auth-blob {
    position: fixed;
    border-radius: 9999px;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.auth-blob-a {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(250,204,21,0.35), transparent 70%);
    top: -120px; left: -80px;
    animation: blobDrift 16s ease-in-out infinite;
}
.auth-blob-b {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(99,102,241,0.28), transparent 70%);
    bottom: -140px; right: -100px;
    animation: blobDrift 20s ease-in-out infinite reverse;
}

.back-btn {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.15);
    padding: 0.55rem 1.1rem 0.55rem 0.55rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1E1B4B;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.back-btn:hover {
    background: #1E1B4B;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.35);
}
.back-btn-icon {
    width: 28px; height: 28px;
    border-radius: 9999px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #1E1B4B;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.back-btn:hover .back-btn-icon {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    transform: translateX(-3px);
}

.auth-icon-badge {
    width: 3.5rem; height: 3.5rem;
    border-radius: 1.1rem;
    background: linear-gradient(145deg, #f8fafc, #eef2f7);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #1E1B4B;
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.15);
    margin: 0 auto;
}

.auth-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.auth-input:focus {
    border-color: #1E1B4B;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 27, 75, 0.08);
}

.auth-otp-input {
    width: 100%;
    padding: 1.1rem;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
    color: #1E1B4B;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.auth-otp-input:focus {
    border-color: #1E1B4B;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 27, 75, 0.08);
}

.auth-submit-btn {
    width: 100%;
    background: #1E1B4B;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1rem;
    border-radius: 0.85rem;
    box-shadow: 0 10px 24px -10px rgba(30, 27, 75, 0.5);
    transition: background 0.25s ease, transform 0.2s ease;
}
.auth-submit-btn:hover { background: #15132f; }

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1.1rem;
}
.auth-alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; }
.auth-alert-success { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }

.auth-resend-link {
    color: #4f46e5;
    font-weight: 800;
    text-decoration: none;
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.2s ease;
}
.auth-resend-link.active { pointer-events: auto; opacity: 1; }
.auth-resend-link.active:hover { text-decoration: underline; }
