:root {
    --primary-color: #2e7d32;
    --primary-hover: #1b5e20;
    --primary-light: #e8f5e9;
    --text-dark: #1a1a1a;
    --text-muted: #555;
    --bg-light: #ffffff;
    --container-max-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
header {
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    background: #EEEEEE;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.65rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

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

.logo img[src="assets/logo.png"] {
    display: none;
    /* Hide broken img if it doesn't exist */
}

/* Show text if img is broken or missing */
.logo:not(:has(img[src="assets/logo.png"]:visible)) span {
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 1rem;
}

/* Offset all anchored sections for sticky header */
#about, #tournament, #register {
    scroll-margin-top: 75px;
}

#home {
    scroll-margin-top: 0;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.cta-container {
    margin-bottom: 3.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Stats */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    animation: fadeIn 1s ease-out 0.4s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: var(--transition);
}

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

.stat-icon {
    color: var(--primary-color);
    background: var(--primary-light);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.stat-text strong {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
}

.stat-text span {
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* Hero Image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

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

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

.hero-title {
    animation: fadeIn 1s ease-out both;
}

.hero-description {
    animation: fadeIn 1s ease-out 0.2s both;
}

.cta-container {
    animation: fadeIn 1s ease-out 0.3s both;
}

.hero-image img {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        order: 2;
        max-width: 100%;
    }

    .hero-image {
        order: 1;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .nav-links {
        display: none;
        /* Simplification for mobile */
    }

    .stats-row {
        justify-content: center;
    }
}

/* About Section */
.about-section {
    background-color: #EEEEEE;
    padding: 3.5rem 0;
}

.about-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    background: var(--primary-light);
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
}

.feature-icon svg,
.feature-icon i svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Tournament Section */
.tournament-section {
    background-color: #f9f9f9;
    padding: 3.5rem 0;
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tournament-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.tournament-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tournament-card .card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tournament-card .card-icon {
    background: var(--primary-light);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-card .card-icon svg,
.tournament-card .card-icon i svg {
    width: 20px;
    height: 20px;
}

.tournament-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.format-list {
    list-style: none;
    padding: 0;
}

.format-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.95rem;
}

.format-list li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.25rem;
}

.entry-fee-card {
    display: flex;
    flex-direction: column;
}

.fee-display {
    display: flex;
    align-items: baseline;
    margin-top: 1rem;
    color: var(--text-dark);
}

.fee-display .currency {
    font-size: 3.5rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.fee-display .amount {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.fee-subtext {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

/* Benefits Section */
.benefits-section {
    background-color: #EEEEEE;
    padding: 3.5rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    margin-top: 3.5rem;
}

.benefit-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-8px);
}

.benefit-icon {
    background: #ffffff;
    color: var(--primary-color);
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.benefit-item:hover .benefit-icon {
    background: transparent;
}

.benefit-icon svg,
.benefit-icon i svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
}

.benefit-item p {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 576px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer Section */
footer {
    padding: 3rem 0 1.5rem;
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.footer-desc {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #2c3e50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* Consolidated Icon Styling for SVGs and Lucide */
.stat-icon svg,
.feature-icon svg,
.feature-icon i svg,
.card-icon svg,
.card-icon i svg,
.benefit-icon svg,
.benefit-icon i svg,
.social-icon svg,
.social-icon i svg,
.footer-contact li i svg {
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
}

.feature-icon i svg, .feature-icon svg {
    width: 24px;
    height: 24px;
}

.tournament-card .card-icon i svg, .tournament-card .card-icon svg {
    width: 20px;
    height: 20px;
}

.benefit-icon i svg, .benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
}

.social-icon svg, .social-icon i svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.footer-contact li i svg {
    width: 16px;
    height: 16px;
    stroke: #888;
}

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

.footer-links h3,
.footer-contact h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 1.25rem;
    color: #888;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact li i svg {
    width: 16px;
    height: 16px;
    stroke: #888;
    flex-shrink: 0;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
    text-align: center;
    margin-top: 1rem;
}

.footer-bottom p {
    color: #999;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    footer {
        padding: 4rem 1rem 2rem;
    }
}