:root {
    --primary: rgba(253, 126, 20, 1);
    --primary-hover: rgba(253, 126, 20, 0.8);
    --bg-dark: #0f1115;
    --bg-darker: #07080a;
    --text-main: #f8f9fa;
    --text-muted: #a0aab2;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

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

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 17, 21, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.indians-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
}

.flag-text {
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    flex: 1; /* Take up available space */
    display: flex;
    justify-content: center; /* Center links in that space */
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

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

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

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

.login-btn {
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--glass-bg);
}

.login-btn::after {
    display: none;
}

.login-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
}

.hamburger {
    display: none; /* Hidden on desktop */
}

/* Social Media Icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    color: #fff;
    opacity: 0.75;
    transition: opacity 0.3s, color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.15);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    /* Removed the gradient fallback so the image is visible */
    /*background: linear-gradient(135deg, #111 0%, #2a080a 100%);*/
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, var(--bg-dark) 100%);
}

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

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(230, 57, 70, 0.4);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(253, 126, 20, 0.2);
}

/* Sections */
.section {
    padding: 100px 0;
}

.dark-section {
    background-color: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-title span {
    color: var(--primary);
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* News Grid -> Carousel track */
.carousel-wrapper {
    position: relative;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.news-grid {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.news-card {
    flex: 0 0 calc(33.333% - 20px);
    cursor: pointer;
    background: var(--bg-darker);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid var(--glass-border);
}

.news-card:hover {
    transform: translateY(-5px);
    background: rgba(253, 126, 20, 0.05);
    border-color: var(--primary-hover);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
}

.placeholder-img {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    /*background: rgba(230, 57, 70, 0.05);
    border-color: rgba(230, 57, 70, 0.2);*/
    background: rgba(253, 126, 20, 0.05);
    border-color: var(--primary-hover);
}

.team-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.team-card p {
    color: var(--text-muted);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Table */
.table-container {
    padding: 30px;
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.standings-table th,
.standings-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.standings-table th {
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.standings-table tr.highlight td {
    color: var(--primary);
    font-weight: bold;
}

/* Tabs */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-main);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3.5rem;
    }

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

    .news-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .news-card {
        flex: 0 0 100%;
    }

    .news-grid {
        gap: 0;
    }

    .hamburger {
        display: flex; /* Show on mobile */
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .hamburger span {
        width: 30px;
        height: 2px;
        background: white;
    }

    .social-icons {
        margin-left: auto;
        margin-right: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* Modal & Popup */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

/* News Modal styles moved to assets/css/news-modal.css */

/* Sponsors Section */
.section-sponsors {
    padding-top: 60px;
    padding-bottom: 80px;
    background: var(--bg-darker);
}

.sponsors-carousel {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    margin-top: 40px;
}

.sponsors-carousel::before,
.sponsors-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.sponsors-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-darker) 0%, transparent 100%);
}

.sponsors-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-darker) 0%, transparent 100%);
}

.sponsors-track {
    display: flex;
    width: max-content;
    gap: 60px;
    animation: scroll-sponsors 40s linear infinite;
    align-items: center;
}

.sponsors-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-sponsors {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.partner-logo img {
    max-height: 60px;
    width: auto;
    max-width: 180px;
    filter: grayscale(1) opacity(0.5);
    transition: all 0.4s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo:hover img {
    filter: grayscale(0) opacity(1);
}

@media (max-width: 768px) {
    .sponsors-grid {
        gap: 30px;
    }

    .partner-logo img {
        max-height: 45px;
        max-width: 140px;
    }
}