:root {
    --primary-green: #2d5e3e;
    --secondary-green: #4a8b64;
    --light-green: #7db894;
    --accent-green: #5cb85c;
    --dark-green: #1a3a25;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(45, 94, 62, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--secondary-green);
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--accent-green);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.nav-link:hover {
    color: var(--primary-green);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-image: url('/assets/img/ground-football-field-grass-macro-stadium-field-ground-grass-detail-close-up-soccer-field-lines-background-soccer-pitch-grass-football-stadium-2G6W5KA.jpg');
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-hero {
    background: var(--white);
    color: var(--primary-green);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    color: var(--primary-green);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-hero-outline:hover {
    background: var(--white);
    color: var(--primary-green);
}

/* Section Styling */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    opacity: 0.8;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* Cards */
.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(45, 94, 62, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(45, 94, 62, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(45, 94, 62, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-green), var(--secondary-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

/* Player Cards */
.player-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(45, 94, 62, 0.1);
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(45, 94, 62, 0.2);
}

.player-image {
    height: 300px;
    background: linear-gradient(135deg, var(--light-green), var(--secondary-green));
    position: relative;
    overflow: hidden;
}

.player-info {
    padding: 1.5rem;
}

.player-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.player-position {
    color: var(--secondary-green);
    font-weight: 500;
}

/* Gallery */
.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(45, 94, 62, 0.8));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: var(--white);
    font-weight: 600;
    font-size: 1.125rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-green);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-green);
    transform: translateY(-3px);
    color: var(--white);
}

/* Newsletter */
.newsletter-form {
    background: var(--primary-green);
    border-radius: 50px;
    padding: 0.5rem;
    display: flex;
}

.newsletter-input {
    border: none;
    background: transparent;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    flex: 1;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-btn {
    background: var(--accent-green);
    border: none;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--white);
    color: var(--primary-green);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-green);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}