/* ============================================
   Clubmigo - Coming Soon / Teaser Landing Page
   Inspired by: Live Match Center with Red Accent
   Created by: ArcVerk AS
   ============================================ */

/* --- CSS Variables / Theme --- */
:root {
    --primary: #1a3a6b;
    --primary-dark: #0f2440;
    --primary-light: #2a5a9e;
    --secondary: #0d1b2a;
    --dark: #070e17;
    --darker: #03070d;
    --light: #e8ecf1;
    --text: #c8d0dc;
    --text-muted: #6b7d9e;
    --font-main: 'Montserrat', 'Segoe UI', sans-serif;
    --font-display: 'Oswald', 'Impact', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--darker);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-ball {
    width: 60px;
    height: 60px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-muted);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Animated Background --- */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(26, 58, 107, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 58, 107, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

.bg-glow-1 {
    top: -200px;
    left: -200px;
    background: var(--primary);
    animation-delay: 0s;
}

.bg-glow-2 {
    bottom: -300px;
    right: -200px;
    background: var(--primary);
    animation-delay: 4s;
    width: 500px;
    height: 500px;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.05; }
    100% { transform: translate(50px, 30px) scale(1.2); opacity: 0.12; }
}

/* --- Floating Particles (footballs) --- */
.particle {
    position: absolute;
    font-size: 24px;
    opacity: 0.04;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

.particle:nth-child(1) { top: 10%; left: 5%; animation-duration: 25s; font-size: 30px; }
.particle:nth-child(2) { top: 30%; right: 10%; animation-duration: 30s; font-size: 20px; animation-delay: -5s; }
.particle:nth-child(3) { bottom: 20%; left: 15%; animation-duration: 22s; font-size: 28px; animation-delay: -10s; }
.particle:nth-child(4) { top: 60%; right: 5%; animation-duration: 28s; font-size: 18px; animation-delay: -15s; }
.particle:nth-child(5) { bottom: 10%; right: 30%; animation-duration: 35s; font-size: 22px; animation-delay: -7s; }
.particle:nth-child(6) { top: 5%; right: 40%; animation-duration: 26s; font-size: 16px; animation-delay: -3s; }

@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.03; }
    50% { opacity: 0.07; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(5,5,8,0.95) 0%, rgba(5,5,8,0) 100%);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(5,5,8,0.98);
    padding: 12px 40px;
    box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo svg {
    width: 40px;
    height: 40px;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--light);
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(204, 0, 0, 0.15);
    border: 1px solid rgba(204, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 40px;
    animation: fadeInDown 1s ease forwards;
    opacity: 0;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-title-line {
    display: block;
    color: var(--light);
}

.hero-title-line span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title-line span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineReveal 1s ease 1.2s forwards;
}

@keyframes lineReveal {
    to { transform: scaleX(1); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 10px auto 40px;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--light);
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease 0.7s forwards;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- Hero Stats Bar --- */
.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 80px;
    padding: 30px 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
    animation: fadeInUp 1s ease 1s forwards;
    opacity: 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    display: block;
}

.stat-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-item .stat-number span {
    color: var(--primary);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- Mascot Section (Statto) --- */
.mascot-section {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    margin-bottom: 60px;
    line-height: 1.2;
}

.mascot-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.mascot-visual {
    position: relative;
    flex-shrink: 0;
}

.mascot-silhouette {
    width: 200px;
    height: 260px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-glowing-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(204, 0, 0, 0.15);
    border-radius: 50%;
    animation: ringPulse 3s ease-in-out infinite;
}

.mascot-glowing-ring:nth-child(2) {
    width: 120%;
    height: 120%;
    animation-delay: 1s;
    border-color: rgba(204, 0, 0, 0.08);
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

.mascot-info {
    text-align: left;
    max-width: 400px;
}

.mascot-name {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.mascot-name span {
    color: var(--primary);
}

.mascot-title-role {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.mascot-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.mascot-stats {
    display: flex;
    gap: 30px;
}

.mascot-stat {
    text-align: center;
}

.mascot-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    display: block;
}

.mascot-stat-value span {
    color: var(--primary);
}

.mascot-stat-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- Teaser / Coming Soon Section --- */
.teaser {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(204,0,0,0.03) 50%, transparent 100%);
}

.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.teaser-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.teaser-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.teaser-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(204, 0, 0, 0.2);
    transform: translateY(-5px);
}

.teaser-card:hover::before {
    transform: scaleX(1);
}

.teaser-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(204, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.teaser-card:hover .teaser-icon {
    background: rgba(204, 0, 0, 0.2);
    transform: scale(1.1);
}

.teaser-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.teaser-card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Countdown / Coming Soon --- */
.countdown-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}

.countdown-label {
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--light);
    display: block;
    line-height: 1;
    min-width: 70px;
}

.countdown-number span {
    color: var(--primary);
}

.countdown-label-item {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.4;
    padding-top: 5px;
}

/* --- Newsletter / Notify Section --- */
.notify {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    text-align: center;
}

.notify-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.notify-input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--light);
    font-size: 14px;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition);
}

.notify-input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 20px rgba(204,0,0,0.1);
}

.notify-input::placeholder {
    color: var(--text-muted);
}

.notify-btn {
    padding: 16px 30px;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.notify-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.notify-message {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
    display: none;
}

.notify-message.success {
    color: #4ade80;
    display: block;
}

.notify-message.error {
    color: var(--primary);
    display: block;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.3);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-brand svg {
    width: 30px;
    height: 30px;
}

.footer-brand-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.footer-brand-text span {
    color: var(--primary);
}

.footer-info {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-info a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-info a:hover {
    color: var(--light);
    text-decoration: underline;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: var(--primary);
    opacity: 0.3;
    margin: 10px 0;
}

.footer-arcverk {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-arcverk a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-arcverk a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.03);
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 1px;
}

/* --- Reveal Animation on Scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 20px 40px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
        margin-top: 50px;
    }

    .mascot-container {
        flex-direction: column;
        gap: 30px;
    }

    .mascot-info {
        text-align: center;
    }

    .mascot-stats {
        justify-content: center;
    }

    .countdown {
        gap: 15px;
    }

    .countdown-number {
        font-size: 2rem;
        min-width: 50px;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

    .countdown-wrapper {
        padding: 30px 20px;
    }

    .teaser-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 15vw, 3rem);
    }

    .btn {
        padding: 14px 25px;
        font-size: 12px;
    }

    .notify-form {
        flex-direction: column;
    }

    .notify-input {
        min-width: auto;
    }
}
