/* ============================================
   INDEX_STYLE.CSS — Ultra-Glass Parallax Homepage
   Requires: common.css loaded first
   ============================================ */

/* ── Body: scrollable, dark base ── */
body {
    background: #01040d;
    margin: 0; padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Arial Black', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    color: #fff;
}
body::before, body::after { display: none; }

/* ── Fixed parallax background (viewport > stage) ── */
.bg-viewport {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bg-card-wrapper {
    position: absolute;
    animation: bg-floating 6s ease-in-out infinite alternate;
    will-change: transform;
    transform-style: preserve-3d;
}

.bg-card {
    position: relative;
    width: 680px;
    height: 200px;
    background: linear-gradient(135deg, var(--main) 20%, var(--glow) 120%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: rotateX(15deg) rotateY(-15deg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    box-shadow:
        -30px 45px 75px rgba(0, 0, 0, 0.85),
        -5px 10px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.bg-card::before {
    content: '';
    position: absolute;
    top: -1.5px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    transform: skewX(-45deg);
    transform-origin: bottom;
}

.bg-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -1.5px;
    width: 1.5px;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    transform: skewY(-45deg);
    transform-origin: right;
}

.bg-text {
    font-size: 162px;
    font-weight: 900;
    letter-spacing: -11px;
    color: #01040d;
    margin: 0;
    line-height: 1;
    user-select: none;
    text-shadow:
        -1.5px 2px 4px rgba(0,0,0,0.6),
        1px -1px 1px rgba(255,255,255,0.25);
    transform: translateX(-1%);
}

@keyframes bg-floating {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(var(--fx, -12px), var(--fy, -20px), var(--fz, 25px)) scale(1.02); }
}

/* Layer color variables */
.bg-viewport .lv1 { --main: rgba(218, 233, 247, 0.94); --glow: rgba(255, 255, 255, 0.5); z-index: 50; }
.bg-viewport .lv2 { --main: rgba(118, 175, 245, 0.90); --glow: rgba(214, 232, 255, 0.4); z-index: 40; }
.bg-viewport .lv3 { --main: rgba(42, 118, 244, 0.86); --glow: rgba(130, 177, 255, 0.3); z-index: 30; }
.bg-viewport .lv4 { --main: rgba(19, 68, 188, 0.82); --glow: rgba(61, 124, 255, 0.2); z-index: 20; }
.bg-viewport .lv5 { --main: rgba(7, 34, 116, 0.76); --glow: rgba(26, 77, 255, 0.15); z-index: 10; }

/* ── Page content (scrollable) ── */
.page-content {
    position: relative;
    z-index: 5;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 60px;
}

/* ── Hero section ── */
.hero-section {
    text-align: center;
    padding: 56px 20px 44px;
    animation: fadeUp .5s ease both;
}
.eyebrow {
    display: inline-flex;
    padding: 6px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.9);
    font-size: 12px; font-weight: 700;
    letter-spacing: 1.6px;
}
.hero-section h1 {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 750; color: #fff;
    margin: 0 0 12px; letter-spacing: -0.03em; line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 7, 22, 0.36);
}
.hero-subtitle {
    max-width: 520px; margin: 0 auto;
    color: rgba(255,255,255,0.78);
    font-size: 15px; line-height: 1.7;
    text-shadow: 0 8px 24px rgba(0, 7, 22, 0.26);
}
.hero-btn {
    display: inline-block; margin-top: 24px;
    padding: 12px 28px; border-radius: 999px;
    background: rgba(255,255,255,0.92); color: #0839b7;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 28px rgba(0,16,66,0.15);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0,16,66,0.22);
}

/* ── Glass card base ── */
.glass-card {
    background: rgba(10,18,42,0.34);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    box-shadow: 0 18px 52px rgba(0,11,46,0.22);
}
.section-title {
    font-size: 22px; font-weight: 700;
    color: #fff; margin: 0 0 20px;
}

/* ── Notice board ── */
.notice-section { margin-top: 36px; padding: 24px; }
.notice-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.notice, .notice-important, .notice-critical {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    padding: 14px 16px; font-size: 13px;
    color: rgba(255,255,255,0.88);
    border-radius: 12px; line-height: 1.65;
    word-wrap: break-word;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform .2s ease;
}
.notice             { border-left: 4px solid #4589ff; }
.notice-important   { border-left: 4px solid #ff7b7b; }
.notice-critical    { border-left: 4px solid #ffb84d; font-weight: 600; }
.notice:hover, .notice-important:hover, .notice-critical:hover { transform: translateY(-2px); }

/* ── Club carousel ── */
.clubs-section { margin-top: 36px; padding: 24px; }
.scroll-wrapper { position: relative; overflow: hidden; }
.scroll-container {
    display: flex; gap: 16px; padding: 8px 0;
    animation: marquee 35s linear infinite;
}
@keyframes marquee { 0%{transform:translateX(0%)} 100%{transform:translateX(-50%)} }
.fade-left, .fade-right {
    position: absolute; top: 0; width: 50px; height: 100%; z-index: 1; pointer-events: none;
}
.fade-left  { left: 0;  background: linear-gradient(to right, rgba(0,17,65,0.7), transparent); }
.fade-right { right: 0; background: linear-gradient(to left,  rgba(0,17,65,0.7), transparent); }

.card {
    flex: 0 0 auto; width: 220px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 14px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: scale(1.03); box-shadow: 0 12px 32px rgba(0,16,66,0.2); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.card-content { padding: 12px; }
.card h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #fff; }
.card p  { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.card .button {
    display: inline-block; margin-top: 10px;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.16); color: #fff;
    font-size: 12px; font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background .2s;
}
.card .button:hover { background: rgba(255,255,255,0.25); }

/* ── Footer ── */
.site-footer { text-align: center; padding: 30px 0; margin-top: 40px; }
.site-footer a { color: rgba(255,255,255,0.35); font-size: 12px; text-decoration: none; }

/* ── Animations ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 28px; }
    .hero-subtitle { font-size: 14px; }
    .notice-board { grid-template-columns: 1fr; }
    .card { width: 180px; }
    .bg-card {
        width: 520px;
        height: 150px;
    }
    .bg-text { font-size: 110px; }
}