/* Premium Sports Tech UI Theme */

:root {
    --bg-base: #030305; /* Deeper black */
    --card-bg: rgba(20, 20, 24, 0.4); /* Glassmorphism */
    --card-border: rgba(255, 255, 255, 0.05);
    --card-border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #8a8a93;
    
    /* Energetic Accents */
    --accent-main: #ffffff;
    --accent-red: #ff2a5f; /* Dynamic Taeguk Red */
    --accent-blue: #0070f3; /* Dynamic Taeguk Blue */
    --accent-cyan: #00f0ff; /* Tech metric glow */
    
    --font-heading: 'Montserrat', 'Pretendard', sans-serif;
    --font-body: 'Pretendard', 'Montserrat', sans-serif;
}

body { 
    margin: 0; 
    background-color: var(--bg-base); 
    color: var(--text-primary); 
    font-family: var(--font-body); 
    font-weight: 300; 
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background Layers */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -3;
    pointer-events: none;
}
.bg-glow-red {
    position: fixed;
    top: -20vh; right: -10vw; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(255, 42, 95, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -2; pointer-events: none;
}
.bg-glow-blue {
    position: fixed;
    bottom: -20vh; left: -10vw; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(0, 112, 243, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -2; pointer-events: none;
}

h1, h2, h3, h4, .logo, .card-title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Header */
header { 
    padding: 25px 5vw; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo { 
    font-size: 22px; 
    letter-spacing: 2px; 
    cursor: pointer; 
    font-style: italic; /* Speed/Sporty feel */
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    color: transparent;
}
nav {
    display: flex;
    gap: 35px;
}
nav a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    font-family: var(--font-heading);
    font-weight: 600; 
    font-size: 11px; 
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}
nav a:hover, nav a.active { 
    color: var(--text-primary); 
}
nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%; height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Hero Section */
.hero { 
    text-align: center; 
    padding: 120px 20px 80px; 
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.hero h1 { 
    font-size: clamp(36px, 6vw, 64px); 
    margin-bottom: 20px; 
    letter-spacing: -2px; 
    background: linear-gradient(135deg, #ffffff 0%, #666666 100%);
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.hero p { 
    color: var(--text-secondary); 
    font-size: clamp(16px, 2vw, 20px); 
    margin-bottom: 50px; 
}

/* Buttons */
.btn-primary { 
    background: var(--accent-main); 
    color: #000; 
    padding: 16px 40px; 
    border: none; 
    font-family: var(--font-heading);
    font-weight: 800; 
    font-size: 13px;
    letter-spacing: 2px;
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 4px; /* Sharper edges for sporty tech look */
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}
.btn-primary:hover { 
    background: #e0e0e0; 
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.25);
}

.btn-secondary {
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 1.5px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Container & Sections */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 40px 20px 100px; 
}
.section-header { 
    font-family: var(--font-heading);
    font-size: 12px; 
    font-weight: 600;
    color: var(--accent-blue); 
    letter-spacing: 4px; 
    margin-bottom: 50px; 
    text-transform: uppercase;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: -15px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Grid System */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

/* Sleek Cards */
.card { 
    background: var(--card-bg); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-top: 1px solid rgba(255,255,255,0.12); /* Highlights top edge */
    padding: 40px; 
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}
/* Shimmer effect on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.03), transparent);
    transform: skewX(-20deg);
    transition: 0.7s ease;
}
.clickable-card:hover::before {
    left: 150%;
}
.clickable-card:hover { 
    border-color: var(--card-border-hover); 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(0, 112, 243, 0.1);
}
.detail-card {
    cursor: default;
    background: rgba(10, 10, 12, 0.6);
    padding: 50px;
}

/* Card Typography */
.card-tag { 
    font-family: var(--font-heading);
    font-size: 10px; 
    font-weight: 600;
    color: var(--accent-cyan); 
    background: rgba(0, 240, 255, 0.05);
    padding: 6px 10px;
    border-radius: 4px;
    letter-spacing: 1px; 
    display: inline-block; 
    margin-bottom: 20px; 
    text-transform: uppercase;
}
.card-title { 
    font-size: 28px; 
    margin: 0 0 15px 0; 
}
.card-desc { 
    color: var(--text-secondary); 
    font-size: 15px; 
    margin-bottom: 30px; 
}

/* Metric Bars */
.metric-row { margin-bottom: 25px; }
.metric-label { 
    font-family: var(--font-heading);
    font-size: 11px; 
    color: var(--text-primary); 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 10px; 
    font-weight: 600;
    letter-spacing: 1.5px;
}
.bar-bg { 
    background: rgba(255,255,255,0.05); 
    height: 4px; 
    width: 100%; 
    border-radius: 2px; 
    position: relative;
    overflow: visible; /* To allow glow */
}
.bar-fill { 
    background: var(--accent-main); 
    height: 100%; 
    border-radius: 2px; 
    transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); 
    position: relative;
}
/* The glowing head of the progress bar */
.bar-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: inherit;
    border-radius: 50%;
    box-shadow: 0 0 10px inherit, 0 0 20px inherit;
}

/* Warnings */
.warning-text { 
    font-family: var(--font-body);
    color: var(--accent-red); 
    font-size: 13px; 
    font-weight: 600; 
    margin-top: 20px; 
    display: inline-block; 
    background: rgba(255, 42, 95, 0.1); 
    border: 1px solid rgba(255, 42, 95, 0.2);
    padding: 8px 12px; 
    border-radius: 4px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: rgba(15, 15, 18, 0.95);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    width: 100%;
    max-width: 450px;
    position: relative;
    padding: 50px 40px;
    border-radius: 16px;
}
.close-btn {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}
.close-btn:hover { color: var(--accent-red); }
.form-group { margin-bottom: 25px; }
.form-group label {
    font-family: var(--font-heading);
    display: block; 
    margin-bottom: 10px; 
    font-size: 10px; 
    color: var(--text-secondary); 
    text-transform: uppercase; 
    letter-spacing: 2px;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%; 
    padding: 15px; 
    background: rgba(0,0,0,0.3); 
    border: 1px solid rgba(255,255,255,0.1); 
    color: var(--text-primary); 
    border-radius: 4px; 
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 112, 243, 0.2);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    header { flex-direction: column; padding: 20px; }
    nav { margin-top: 20px; gap: 20px; justify-content: center; flex-wrap: wrap; }
    .hero { padding: 80px 20px 40px; }
    .hero h1 { font-size: 32px; }
    .detail-card { padding: 30px 20px; }
}