:root {
    --primary: #5271ff;
    /* Electric Blue */
    --secondary: #00d2ff;
    /* Cyan Accent */
    --accent: #ff4757;
    /* Vibrant Red for CTA */
    --bg-dark: #0f1014;
    /* Deep Charcoal/Black */
    --bg-card: rgba(25, 27, 33, 0.7);
    --text-main: #ffffff;
    --text-muted: #a0a6b5;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    /* Modern sleek background */
    background-image:
        radial-gradient(circle at top right, rgba(82, 113, 255, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(0, 210, 255, 0.1), transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glass Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    background: rgba(15, 16, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Language Toggle */
.lang-switcher button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-header);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-switcher button:hover {
    background: var(--primary);
}

/* Hero Section */
/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 80px;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    /* Use closest-side to ensure it never touches the edges roughly */
    background: radial-gradient(ellipse at center, rgba(82, 113, 255, 0.2) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Mask (.hero::after) removed to prevent clipping artifacts */

.hero-content h1 {
    font-family: var(--font-header);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a0a6b5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(82, 113, 255, 0.4);
}

.btn.primary:hover {
    background: #405ef0;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(82, 113, 255, 0.6);
}

/* Sections */
.category-section {
    padding: 6rem 5%;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--secondary);
    color: var(--text-main);
}

/* Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Article Card */
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    line-height: 1.4;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary);
}

/* Article View Overlay */
#article-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    overflow-y: auto;
    background: #000;
    /* Fallback */
    background: rgba(15, 16, 20, 0.98);
    backdrop-filter: blur(10px);
    padding: 4rem 5%;
}

.view-header {
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#close-article {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

#close-article:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.view-content {
    max-width: 900px;
    margin: 0 auto;
}

#article-hero {
    height: 450px;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

#article-title {
    font-family: var(--font-header);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff, #bdc3c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-text {
    font-size: 1.1rem;
    color: #cbd5e0;
    line-height: 1.8;
}

.article-text h3,
.article-text h4 {
    color: var(--primary);
    font-family: var(--font-header);
    margin: 2.5rem 0 1rem;
}

/* Play Now Button */
#play-now-btn {
    display: block;
    width: 100%;
    margin-top: 4rem;
    padding: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(82, 113, 255, 0.4);
    transition: var(--transition);
}

#play-now-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(82, 113, 255, 0.6);
}

/* Language Modal - Modern */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal[style*="display: flex"] {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1a1c23;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal[style*="display: flex"] .modal-content {
    transform: scale(1);
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.lang-option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 1.5rem;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lang-option-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(82, 113, 255, 0.3);
}

/* Footer */
footer {
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: #0b0c0f;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .category-section {
        padding: 4rem 5%;
    }
}