/* =========================================
   VARIABLES & SETUP
   ========================================= */
:root {
    /* Colors */
    --clr-primary: #e30613;
    /* TSG Red */
    --clr-primary-dark: #cc0510;
    --clr-secondary: #000000;
    /* Black */
    --clr-accent: #f8a12d;
    /* Orange */
    --clr-bg: #f9f9f9;
    /* Light Gray Background */
    --clr-white: #ffffff;
    --clr-text: #333333;
    --clr-text-light: #777777;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(227, 6, 19, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.1;
    color: var(--clr-secondary);
}

.highlight {
    color: var(--clr-primary);
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--clr-primary);
    border-color: var(--clr-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    border-color: var(--clr-white);
}

.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-secondary);
    transform: translateY(-3px);
}

.btn.sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header.light h2 {
    color: var(--clr-white);
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--clr-primary);
    margin: 0 auto;
}

.divider.white {
    background-color: var(--clr-white);
}


/* =========================================
   HEADER / NAV
   ========================================= */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

#main-header.scrolled {
    background-color: #e30613;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo {
    max-height: 200px;
    width: auto;
    display: block;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 22px;
    color: var(--clr-white);
    text-transform: uppercase;
    letter-spacing: 0px;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scrolled .site-logo {
    max-height: 50px;
    /* Shrinks aggressively when scrolling */
}

.scrolled .logo-text {
    opacity: 1;
    max-width: 400px;
    /* Expands to reveal text */
}

/* Fallback text logo styles kept for footer */

.logo.white {
    color: var(--clr-white);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--clr-white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--clr-white);
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
    /* Offset for header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero_placeholder.jpg');
    /* The AI generated image */
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(227, 6, 19, 0.85) 100%);
    z-index: -1;
}

.slant-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--clr-bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 1;
}

.hero-content {
    color: var(--clr-white);
    width: 100%;
    margin-top: 120px;
}

.hero-content h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--clr-white);
    margin-bottom: 20px;
    line-height: 0.9;
    text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.news-card {
    background: var(--clr-white);
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--clr-secondary);
    transition: var(--transition);
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--clr-primary);
    box-shadow: var(--shadow-lg);
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-img {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: var(--font-heading);
    transition: transform 0.5s ease;
}

.news-content {
    padding: 30px;
    background: var(--clr-white);
    position: relative;
    z-index: 2;
    /* To cover the scaling image */
}

.news-date {
    display: block;
    font-size: 13px;
    color: var(--clr-primary);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

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

.news-card p {
    color: var(--clr-text-light);
    margin-bottom: 20px;
    font-size: 15px;
}

.read-more {
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 14px;
}

.read-more:hover {
    color: var(--clr-secondary);
}

/* =========================================
   TEAMS SECTION
   ========================================= */
.teams-section {
    background-color: var(--clr-secondary);
    position: relative;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--clr-bg);
    border-left: 6px solid var(--clr-primary);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Darker shadow for dark bg */
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--clr-accent);
    /* Orange on hover */
}

.card-inner {
    padding: 40px 30px;
}

.team-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.league {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.team-card p {
    margin-bottom: 30px;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: #111;
    color: #aaa;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--clr-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #aaa;
}

.footer-col a:hover {
    color: var(--clr-primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    color: var(--clr-white);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 50%;
}

.social-links a:hover {
    background-color: var(--clr-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* =========================================
   SCROLL ANIMATIONS (Triggered by JS)
   ========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        /* Mobile menu logic omitted for brevity */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .slant-bottom {
        height: 50px;
    }
}