:root {
    --bg-dark: #070707;
    --bg-card: rgba(20, 20, 20, 0.6);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent-blue: #00d2ff;
    --accent-orange: #ff4e00;
    --accent-gold: #ffbe0b;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Noise texture for premium grit */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Navigation - Glassmorphism */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.ipl-text {
    color: var(--text-main);
}

.controversies-text {
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    max-width: 800px;
}

.glitch {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-dark);
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-gold));
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 78, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 78, 0, 0.6);
}

/* Background Ambient Shapes */
.hero-shapes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.circle-blue {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-orange {
    width: 500px;
    height: 500px;
    background: var(--accent-orange);
    bottom: -10%;
    right: 5%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(5%, 10%); }
    66% { transform: translate(-10%, 5%); }
}

/* Section Common */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards Slider & Filters */
.controversy-grid {
    padding: 8rem 0 8rem 5%; 
    min-height: 100vh;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding-right: 5%;
}

.filter-btn {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-main);
}

.filter-btn.active {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-gold));
    color: var(--bg-dark);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 78, 0, 0.3);
}

.cards-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2.5rem;
    padding-right: 5%;
    padding-bottom: 2rem; /* space for scrollbar/shadows */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-orange) var(--bg-dark);
}

.cards-container::-webkit-scrollbar {
    height: 8px;
}

.cards-container::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 10px;
}

.cards-container::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 10px;
}

/* Controversy Card (Glassmorphism) */
.card {
    min-width: 350px;
    max-width: 400px;
    flex-shrink: 0; /* Prevent shrinking in slider */
    scroll-snap-align: start;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--glass-shadow), 0 0 20px rgba(0, 210, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-img-placeholder {
    height: 200px;
    width: 100%;
    background: linear-gradient(45deg, #111, #222);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
    position: relative;
    overflow: hidden;
}

.card-img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-year {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

.read-more {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.card:hover .read-more {
    opacity: 0.8;
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Detailed Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 210, 255, 0.25);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--accent-orange);
}

.modal-header {
    padding: 3rem 3rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-year {
    color: var(--accent-gold);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.modal-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-top: 0.5rem;
    line-height: 1.2;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }
}

.modal-image {
    flex: 1;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    border-right: 1px solid var(--glass-border);
}

.modal-text {
    flex: 1.5;
    padding: 2.5rem 3rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.detailed-story {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--glass-border);
    color: var(--text-main);
    line-height: 1.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .glitch { font-size: 3rem; }
    .nav-links { display: none; }
    .hero { padding-top: 5rem; }
}
