/* ==========================================
   VARIABLES & GLOBAL RESETS
   ========================================== */
:root {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --primary: #6366f1;
    
    /* Section Accent Colors */
    --accent-math: #ff9f43;
    --accent-games: #9b59b6;
    --accent-utility: #3498db;
    --accent-about: #2ecc71;
    --accent-object: #e67e22;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
}

/* ==========================================
   HERO SHOWCASE SECTION
   ========================================== */
.hero {
    padding: 160px 10% 80px 10%;
    text-align: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #eef2ff 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   MAIN GRID & SECTION FRAME LAYOUT
   ========================================== */
main {
    padding: 40px 10% 100px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    padding: 80px 0 40px 0;
    border-bottom: 1px solid #e2e8f0;
}
section:last-of-type {
    border-bottom: none;
}

.section-header {
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.section-badge {
    width: 12px;
    height: 24px;
    border-radius: 4px;
}
#math .section-badge { background-color: var(--accent-math); }
#games .section-badge { background-color: var(--accent-games); }
#utility .section-badge { background-color: var(--accent-utility); }
#about .section-badge { background-color: var(--accent-about); }
#object .section-badge { background-color: var(--accent-object); }

/* ==========================================
   PROJECT CARDS & RESPONSIVE GRID
   ========================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-surface);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 10px 15px -3px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
}

.card-meta {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: opacity 0.2s;
}

.btn-link:hover {
    opacity: 0.9;
}

#math .btn-link { background-color: var(--accent-math); }
#games .btn-link { background-color: var(--accent-games); }
#utility .btn-link { background-color: var(--accent-utility); }
#object .btn-link { background-color: var(--accent-object); }

/* ==========================================
   ABOUT ME PANEL LAYOUT
   ========================================== */
.about-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    text-align: left;
    background-color: var(--bg-surface);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    border: 1px solid #f1f2f6;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent-utility));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.skills-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.skill-tag {
    background-color: #f1f5f9;
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================
   FOOTER CONFIGURATION
   ========================================== */
footer {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 40px 10%;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Main Viewport Adjustments */
@media (max-width: 992px) {
    .hero { padding: 120px 5% 60px 5%; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .hero { padding: 100px 5% 40px 5%; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.1rem; }
    
    .about-wrapper { 
        flex-direction: column; 
        text-align: center; 
        padding: 30px 20px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    main { padding: 20px 5% 60px 5%; }

    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    section {
        padding: 40px 0 20px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.5rem;
    }
}