/* --- FONTS & ICONS --- */
@import url('https://fonts.cdnfonts.com/css/minecraft-4');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* --- SYSTEM VARIABLES --- */
:root {
    --primary: #38bdf8;          /* Neon Cyan */
    --primary-glow: rgba(56, 189, 248, 0.3);
    --bg: #020617;               /* Deep Slate/Black */
    --card-bg: #0f172a;          /* Lighter Slate */
    --border: #1e293b;           /* Subtle Border Color */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --mc-font: 'Minecraft', sans-serif;
    --nav-height: 80px;
}

/* --- RESET & BASE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: var(--bg); 
    color: var(--text-main); 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Style */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

h1, h2, h3 { 
    font-family: var(--mc-font); 
    letter-spacing: 1px; 
    text-transform: uppercase;
}

/* --- NAVIGATION --- */
nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 8%; 
    height: var(--nav-height);
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: #fff; 
    font-family: var(--mc-font);
}

.logo span { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-size: 0.8rem; 
    font-weight: 600; 
    transition: 0.3s; 
    letter-spacing: 1px;
}

.nav-links a:hover { 
    color: var(--primary); 
    text-shadow: 0 0 8px var(--primary-glow);
}

/* --- ABOUT ME (TOGGLEABLE SECTION) --- */
.about-section {
    max-height: 0;
    overflow: hidden;
    background: #0f172a;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    border-bottom: 1px solid var(--border);
    margin-top: var(--nav-height); /* Starts exactly under nav */
}

.about-section.active {
    max-height: 800px; /* Expands smoothly */
    opacity: 1;
    padding: 60px 10%;
}

.about-content h2 { color: var(--primary); margin-bottom: 20px; font-size: 2rem; }
.about-content p { color: var(--text-muted); max-width: 800px; line-height: 1.8; margin-bottom: 15px; }

.close-btn {
    background: none; 
    border: 1px solid var(--border); 
    color: var(--text-main);
    padding: 10px 20px; 
    border-radius: 8px; 
    cursor: pointer;
    font-family: var(--mc-font); 
    margin-top: 20px;
    transition: 0.3s;
}

.close-btn:hover { border-color: var(--primary); color: var(--primary); }

/* --- HERO SECTION --- */
.hero { 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center;
    padding: calc(var(--nav-height) + 40px) 10% 60px; /* Fix for hiding badge */
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
}

.badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1); 
    color: var(--primary);
    padding: 8px 20px; 
    border-radius: 100px; 
    font-size: 0.75rem;
    font-weight: 700; 
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 { 
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
    margin-bottom: 1.5rem; 
    line-height: 1.1; 
}

.hero h1 span { 
    color: var(--primary); 
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.hero p { 
    color: var(--text-muted); 
    max-width: 650px; 
    font-size: 1.1rem; 
    margin-bottom: 3.5rem; 
}

/* BENTO STATS */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 1.5rem; 
    width: 100%; 
    max-width: 900px; 
}

.stat-card {
    background: var(--card-bg); 
    border: 1px solid var(--border);
    padding: 2rem 1.5rem; 
    border-radius: 16px; 
    transition: 0.3s;
}

.stat-card:hover { border-color: var(--primary); background: #111b33; }
.stat-card h2 { font-size: 2.2rem; color: var(--primary); margin-bottom: 0.5rem; }
.stat-card p { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

/* --- PORTFOLIO SECTION --- */
.section-padding { padding: 100px 10%; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1.2rem; }
.section-header p { color: var(--text-muted); font-size: 1rem; }

.project-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); 
    gap: 2.5rem; 
}

.project-card {
    background: var(--card-bg); 
    border-radius: 20px; 
    border: 1px solid var(--border);
    overflow: hidden; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover { 
    border-color: var(--primary); 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
}

.project-card img { width: 100%; height: 230px; object-fit: cover; border-bottom: 1px solid var(--border); }

.project-content { padding: 1.8rem; }
.project-players { 
    color: var(--primary); 
    font-size: 0.75rem; 
    font-weight: 800; 
    margin-bottom: 0.8rem; 
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-tags { display: flex; gap: 0.6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.tag { 
    background: rgba(30, 41, 59, 0.5); 
    color: var(--text-muted); 
    padding: 5px 12px; 
    border-radius: 6px; 
    font-size: 0.7rem; 
    font-weight: 600; 
    border: 1px solid var(--border);
}

/* --- SKILLS SECTION --- */
.skills-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
}

@media (max-width: 850px) { .skills-container { grid-template-columns: 1fr; gap: 2rem; } }

.skill-item { margin-bottom: 2.2rem; }
.skill-label { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 0.8rem; 
    font-weight: 600; 
    font-size: 0.9rem; 
}
.skill-label span i { color: var(--primary); margin-right: 10px; width: 20px; text-align: center; }

.progress-track { 
    background: #1e293b; 
    height: 8px; 
    border-radius: 20px; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.05);
}

.progress-bar { 
    background: linear-gradient(90deg, var(--dark-blue), var(--primary)); 
    height: 100%; 
    width: 0; 
    border-radius: 20px;
    box-shadow: 0 0 15px var(--primary-glow); 
    transition: 1.8s cubic-bezier(0.1, 0, 0.2, 1); 
}

/* --- CONTACT CARD --- */
.contact-card {
    background: linear-gradient(145deg, #0f172a, #020617);
    border: 1px solid var(--border); 
    padding: 5rem 2rem; 
    border-radius: 32px;
    text-align: center; 
    position: relative;
}

.cta-button {
    background: var(--primary); 
    color: #000; 
    padding: 18px 50px;
    border-radius: 14px; 
    text-decoration: none; 
    font-weight: 800;
    display: inline-block; 
    transition: 0.3s; 
    font-family: var(--mc-font);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

.cta-button:hover { 
    background: #fff; 
    transform: translateY(-3px) scale(1.02); 
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

/* --- FOOTER --- */
footer { 
    padding: 4rem 10%; 
    border-top: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    color: var(--text-muted); 
    font-size: 0.8rem; 
}

@media (max-width: 600px) {
    footer { flex-direction: column; gap: 1rem; text-align: center; }
}