/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    min-height: 100vh;
    color: #ecf0f1;
    font-weight: 400;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.main-header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(44, 62, 80, 0.95);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 2px solid #3498db;
}

.logo h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    color: #3498db;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.logo p {
    font-size: 1.3rem;
    color: #bdc3c7;
    font-weight: 400;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

/* Navigation Styles */
.main-nav {
    background: rgba(44, 62, 80, 0.95);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid #3498db;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: 2px solid #2980b9;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: #c0392b;
}

/* Main Content */
.main-content {
    background: rgba(44, 62, 80, 0.95);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid #3498db;
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #4ecdc4;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #45b7aa;
}

.welcome-section p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.game-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #ffd93d;
}

.game-card > * {
    position: relative;
    z-index: 2;
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.game-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.game-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.game-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border-color: #2980b9;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: #1f618d;
}

.btn-secondary {
    background: linear-gradient(45deg, #95a5a6, #7f8c8d);
    color: white;
    border-color: #7f8c8d;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #7f8c8d, #6c7b7d);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: #6c7b7d;
}

/* Features Section */
.features-section {
    text-align: center;
    margin-top: 50px;
}

.features-section h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature h4 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.feature p {
    color: #666;
    line-height: 1.5;
}

/* Footer */
.main-footer {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-footer p {
    color: #666;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-links {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Game-specific styles will be added in separate CSS files */

