/* ==========================================================================
   VALORANT THEME OVERHAUL & INDEX PAGE STYLES
   ========================================================================== */

/* NEW: Valorant-inspired color palette */
:root {
    --valorant-red: #ff4655;
    --valorant-dark: #0f172a;
    --valorant-dark-accent: #111a2c;
    --valorant-offwhite: #ece8e1;
    
    /* Overriding original variables for consistency */
    --primary-blue: var(--valorant-red); 
    --accent-teal: var(--valorant-red);
    --light-bg-blue: var(--valorant-dark);
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: url('https://www.transparenttextures.com/patterns/gplay.png'); /* NEW: Subtle background texture */
    opacity: 0.03;
    z-index: -10;
}

/* General Section Styling */
main {
    overflow-x: hidden;
}

.features-section,
.live-scrims-section {
    padding: 120px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative; /* NEW: for pseudo-elements */
}

/* NEW: Angled section dividers */
.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top right, transparent 49.5%, var(--valorant-dark-accent) 50%);
}

.live-scrims-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top left, transparent 49.5%, var(--valorant-dark) 50%);
}


.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    color: var(--valorant-offwhite);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--valorant-red); /* UPDATED */
    box-shadow: 0 0 15px var(--valorant-red); /* NEW */
    border-radius: 2px;
}


/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 20px;
}

.hero-video-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
}

#hero-video {
    width: 100%; height: 100%; object-fit: cover;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 1) 5%, rgba(15, 23, 42, 0.5) 50%, rgba(15, 23, 42, 1) 95%);
    z-index: -1;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--valorant-offwhite);
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(255, 70, 85, 0.7); /* UPDATED */
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
    line-height: 1.7;
    color: rgba(236, 232, 225, 0.85);
}

.hero-buttons {
    display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2.5rem; font-weight: 700; font-size: 1rem; text-decoration: none;
    text-transform: uppercase; border-radius: 4px; /* UPDATED */
    transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.7rem;
}
.cta-button.primary {
    background: var(--valorant-red); color: var(--valorant-offwhite); border: 2px solid var(--valorant-red);
}
.cta-button.primary:hover {
    background: transparent; color: var(--valorant-red); transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 70, 85, 0.5); /* UPDATED */
}
.cta-button.secondary {
    background: transparent; color: var(--valorant-offwhite); border: 2px solid rgba(236, 232, 225, 0.5);
}
.cta-button.secondary:hover {
    background: var(--valorant-offwhite); color: var(--valorant-dark); transform: translateY(-3px);
}
.cta-button i {
    transition: transform 0.3s ease;
}
.cta-button:hover i {
    transform: translateX(3px);
}

/* Features Section */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 80px;
}
.feature-card {
    background: var(--valorant-dark-accent); /* UPDATED */
    padding: 40px; text-align: center;
    border: 1px solid rgba(255, 70, 85, 0.2); /* UPDATED */
    border-radius: 8px; transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 70, 85, 0.7);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); /* UPDATED */
}
.feature-icon {
    font-size: 2.5rem; color: var(--valorant-red); margin-bottom: 25px; display: inline-block;
    background: rgba(255, 70, 85, 0.1); width: 80px; height: 80px;
    line-height: 80px; border-radius: 50%;
}
.feature-card h3 {
    font-family: 'Orbitron', sans-serif; font-size: 1.5rem; margin-bottom: 15px;
    text-transform: uppercase; color: var(--valorant-offwhite);
}
.feature-card p {
    font-size: 1rem; line-height: 1.6; color: rgba(236, 232, 225, 0.7);
}

/* Live Scrims Section */
.scrim-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; margin-top: 80px;
}
.scrim-card {
    background: var(--valorant-dark-accent); /* UPDATED */
    border: 1px solid rgba(255, 70, 85, 0.2); /* UPDATED */
    border-radius: 8px; padding: 25px; transition: all 0.3s ease;
}
.scrim-card:hover {
    transform: scale(1.03); /* UPDATED */
    border-color: var(--valorant-red);
    box-shadow: 0 0 25px rgba(255, 70, 85, 0.3); /* NEW */
}
.scrim-card-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
    padding-bottom: 15px; border-bottom: 1px solid rgba(255, 70, 85, 0.2);
}
.scrim-region {
    font-weight: 700; color: var(--valorant-offwhite);
}
.scrim-status {
    font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase;
}
.scrim-status.live {
    background-color: var(--valorant-red); color: #fff; box-shadow: 0 0 10px var(--valorant-red);
}
.scrim-status.upcoming {
    background-color: #ffdd00; color: #111;
}
.scrim-card-body {
    display: flex; justify-content: space-between; align-items: center;
}
.team {
    display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px;
}
.team img {
    height: 60px; width: 60px; object-fit: contain;
}
.team span {
    font-weight: 600; text-align: center;
}
.vs-text {
    font-family: 'Orbitron', sans-serif; font-size: 1.5rem; color: var(--valorant-red);
}
.scrim-card-footer {
    display: flex; justify-content: space-between; align-items: center; margin-top: 25px;
    padding-top: 15px; border-top: 1px solid rgba(255, 70, 85, 0.2);
}
.map-info {
    color: rgba(236, 232, 225, 0.7);
}
.spectate-btn {
    background: var(--valorant-red); color: #fff; padding: 8px 20px;
    border-radius: 4px; text-decoration: none; font-weight: 600;
    transition: background 0.3s ease;
}
.spectate-btn:hover {
    background: #ff6370;
}
.spectate-btn.disabled {
    background: #444; color: #888; cursor: not-allowed;
}

/* Final CTA Section */
.final-cta-section {
    padding: 100px 5%; text-align: center;
    background: url('../assets/images/cta-bg.jpg') no-repeat center center/cover;
    position: relative;
}
.final-cta-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.8));
}
.cta-content {
    position: relative; z-index: 1; max-width: 800px; margin: 0 auto;
}
.cta-title {
    font-family: 'Orbitron', sans-serif; font-size: clamp(2.2rem, 6vw, 3.5rem); color: #fff;
}
.cta-subtitle {
    font-size: 1.2rem; color: rgba(236, 232, 225, 0.8); margin: 1rem 0 2.5rem;
}
.cta-button.large {
    padding: 1.2rem 3rem; font-size: 1.1rem;
}

/* Animation Classes */
.animate-on-load, .animate-on-scroll {
    opacity: 0; transform: translateY(30px);
    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);
}
.animate-on-load.is-visible, .animate-on-scroll.is-visible {
    opacity: 1; transform: translateY(0);
}
/* Stagger feature card animations */
.features-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.features-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.scrim-list .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }


/* Responsive Adjustments */
@media (max-width: 968px) {
    .features-section, .live-scrims-section { padding: 80px 5%; }
    .features-section::before, .live-scrims-section::before { display: none; } /* Hide angled dividers on mobile */
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .cta-button { width: 100%; max-width: 300px; justify-content: center; }
    .scrim-list { grid-template-columns: 1fr; }
}