/* 
* FX Gaming Esports Philippines - Main Stylesheet
* Mobile-responsive design with modern aesthetics
*/

:root {
    /* Color Palette */
    --primary-color: #ff4d00;
    --secondary-color: #1e266d;
    --accent-color: #00ccff;
    --dark-color: #121212;
    --light-color: #f8f8f8;
    --gray-color: #707070;
    --success-color: #28a745;
    --gradient-primary: linear-gradient(135deg, #ff4d00 0%, #ff9d00 100%);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

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

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Section Styling */
section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    color: var(--secondary-color);
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: var(--spacing-xs) auto 0;
    border-radius: var(--border-radius-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 77, 0, 0.4);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #141c4d;
    color: white;
    transform: translateY(-3px);
}

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

.btn-tertiary:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 40px;
    width: auto;
}

.main-menu {
    display: flex;
}

.main-menu li {
    margin-left: var(--spacing-md);
}

.main-menu a {
    color: white;
    font-weight: 500;
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: url('../images/hero-bg.svg') no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 38, 109, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1.3s ease;
}

.hero .btn {
    animation: fadeInUp 1.6s ease;
}

/* Featured Events Section */
.featured-section {
    background-color: var(--light-color);
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.event-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.event-details {
    padding: var(--spacing-md);
}

.event-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

/* Games Section */
.games-section {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-xl) 0;
}

.games-section .section-title {
    color: white;
}

.games-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.partner-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

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

.partner-card h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.partner-links li, .community-links li {
    margin-bottom: var(--spacing-xs);
}

.partner-links a {
    color: white;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.4rem 0;
}

.partner-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.community-links {
    margin-top: var(--spacing-md);
}

.community-links li {
    margin-bottom: var(--spacing-sm);
}

.community-links .btn {
    width: 100%;
    text-align: center;
}

/* News Section */
.news-section {
    background-color: var(--light-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.news-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.news-content {
    padding: var(--spacing-md);
}

.news-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.read-more {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-weight: 600;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    margin-bottom: var(--spacing-sm);
    max-width: 120px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.footer-links h4:after, .footer-contact h4:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: var(--spacing-xs);
}

.footer-links ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xs);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

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

.copyright {
    text-align: center;
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .event-cards, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--dark-color);
        padding: 5rem var(--spacing-md);
        flex-direction: column;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .main-menu.active {
        right: 0;
    }
    
    .main-menu li {
        margin: 1rem 0;
    }
    
    .main-menu a {
        display: block;
        font-size: 1.2rem;
    }
    
    .event-cards, .news-grid, .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-card {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4:after, .footer-contact h4:after {
        margin: var(--spacing-xs) auto 0;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: var(--spacing-md) 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}
