/* Base Styles */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #1a1a1a;
    --accent-color: #c0392b;
    --light-color: #34495e;
    --dark-color: #1a1a1a;
    --text-color: #ecf0f1;
    --text-light: #95a5a6;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
header {
    background-color: var(--primary-color);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--light-color) 100%);
}

.profile-container {
    max-width: 800px;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid var(--primary-color);
}

/* Table Styles */
.classes-table {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #2c3e50;
    color: var(--text-color);
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* Games and Moods */
.games-grid, .moods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.game-item, .mood-item {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.game-item:hover, .mood-item:hover {
    transform: translateY(-5px);
}

.emoji {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-margin-top: 80px; /* offset for fixed header */
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-color);
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

.skill-item {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-5px);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #2c3e50;
    border-radius: 5px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
}

/* Shop */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

/* SPT2 section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.responsive-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; border: 1px solid #2c3e50; }
.responsive-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: #111827; }
.responsive-embed video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: #000; }
.note { color: var(--text-light); font-size: .9rem; margin-top: .5rem; }

.product-card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-thumb {
    height: 160px;
    border-radius: 8px;
    background: #22303b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-weight: 700;
    color: var(--text-color);
}

.buy-btn {
    padding: 0.6rem 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 0;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}