/* ============================================
   KANUNKA FC - THE CRANES | SHARED STYLES
   Premium Dark Theme + Stadium Night Vibe
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

/* CSS Variables - Electric Green / Stadium Night */
:root {
    --primary: #00ff87;
    --primary-dim: #00cc6a;
    --primary-glow: rgba(0, 255, 135, 0.4);
    --secondary: #00e5ff;
    --accent: #ffd700;
    --bg-dark: #0a0e17;
    --bg-card: rgba(15, 22, 36, 0.85);
    --bg-card-solid: #0f1624;
    --bg-section: #0d1321;
    --bg-section-alt: #111827;
    --surface: rgba(255, 255, 255, 0.03);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --gradient-hero: linear-gradient(135deg, #0a0e17 0%, #1a1f3a 50%, #0a0e17 100%);
    --gradient-card: linear-gradient(145deg, rgba(15, 22, 36, 0.9), rgba(10, 14, 23, 0.95));
    --gradient-glow: linear-gradient(135deg, var(--primary), var(--secondary));
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Rajdhani', sans-serif;
    --nav-height: 80px;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --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: auto; /* Lenis handles smooth scrolling */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-dim);
    border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--secondary);
}

/* ============ NAVBAR ============ */
.cranes-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    background: rgba(10, 14, 23, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.cranes-nav.scrolled {
    background: rgba(10, 14, 23, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.cranes-nav .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.cranes-nav .nav-brand img {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.cranes-nav .nav-brand span {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cranes-nav .nav-brand .brand-accent {
    color: var(--primary);
}

.cranes-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cranes-nav .nav-links a {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}

.cranes-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.cranes-nav .nav-links a:hover,
.cranes-nav .nav-links a.active {
    color: var(--primary);
}

.cranes-nav .nav-links a:hover::after,
.cranes-nav .nav-links a.active::after {
    width: 70%;
}

.nav-cta-btn {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 24px;
    background: var(--gradient-glow);
    color: var(--bg-dark);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}
.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--primary-glow);
    color: var(--bg-dark);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 991px) {
    .nav-toggle { display: flex; }
    .cranes-nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        flex-direction: column;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(30px);
        padding: 100px 2rem 2rem;
        gap: 8px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid var(--glass-border);
    }
    .cranes-nav .nav-links.open { right: 0; }
    .cranes-nav .nav-links a {
        font-size: 1.1rem;
        padding: 12px 16px;
    }
    .nav-cta-wrap { margin-top: auto; }
}

/* ============ BUTTONS ============ */
.btn-glow {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 36px;
    background: var(--gradient-glow);
    color: var(--bg-dark);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
    color: var(--bg-dark);
}
.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-glow:hover::after {
    opacity: 1;
}

.btn-outline-glow {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 14px 36px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-outline-glow:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

/* ============ GLASSMORPHISM CARD ============ */
.glass-card {
    background: var(--gradient-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.glass-card:hover {
    border-color: rgba(0, 255, 135, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--primary-glow);
}

/* ============ SECTION STYLING ============ */
.section {
    padding: 100px 0;
    position: relative;
}
.section-alt {
    background: var(--bg-section-alt);
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}
.section-title h2 .highlight {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}
.section-title p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}
.section-title .line {
    width: 80px;
    height: 3px;
    background: var(--gradient-glow);
    margin: 20px auto 0;
    border-radius: 3px;
}

/* ============ MARQUEE TICKER ============ */
.ticker-bar {
    background: linear-gradient(90deg, var(--bg-dark), var(--bg-section-alt), var(--bg-dark));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    padding: 12px 0;
    white-space: nowrap;
}
.ticker-content {
    display: inline-flex;
    animation: ticker 20s linear infinite;
    gap: 60px;
}
.ticker-content span {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.ticker-content span::before {
    content: '⚽';
    font-size: 0.9rem;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============ FOOTER ============ */
.cranes-footer {
    background: linear-gradient(180deg, var(--bg-section-alt), var(--bg-dark));
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 0;
    position: relative;
}
.cranes-footer .footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand img {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}
.footer-brand h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.footer-socials {
    display: flex;
    gap: 12px;
}
.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: var(--transition);
}
.footer-socials a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--primary-glow);
}
.footer-col h4 {
    font-family: var(--font-accent);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 6px;
}
.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 24px 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}
.footer-bottom a {
    color: var(--primary);
}
.nes-credit {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.nes-credit a {
    color: var(--primary);
    text-decoration: none;
    transition: text-decoration 0.2s;
}
.nes-credit a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .cranes-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 575px) {
    .cranes-footer .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ UTILITY CLASSES ============ */
.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glow-text {
    text-shadow: 0 0 20px var(--primary-glow), 0 0 40px rgba(0, 255, 135, 0.2);
}

.gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page Header for sub-pages */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}
.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
    z-index: 0;
}
.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.7) 0%, rgba(10, 14, 23, 0.95) 100%);
    z-index: 1;
}
.page-header-content {
    position: relative;
    z-index: 2;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, var(--primary-glow) 0%, transparent 50%);
    opacity: 0.3;
    z-index: 1;
}
.page-header h1 {
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
}
.page-header p {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Hero Badge (shared across pages) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 135, 0.1);
    border: 1px solid rgba(0, 255, 135, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 30px;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--primary-glow); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px transparent; }
}

/* Particle / ambient effects */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}
.ambient-glow-1 {
    top: -200px;
    right: -200px;
    background: var(--primary);
}
.ambient-glow-2 {
    bottom: -200px;
    left: -200px;
    background: var(--secondary);
}

/* Loading / Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}
.preloader-ball {
    width: 40px;
    height: 40px;
    background: var(--gradient-glow);
    border-radius: 50%;
    animation: preloader-bounce 0.6s ease-in-out infinite alternate;
}
@keyframes preloader-bounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(0.9); }
}

/* Responsive typography helpers */
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-title { margin-bottom: 40px; }
    .container-custom { padding: 0 1rem; }
}
