:root {
    --bg-body: #000000;
    --bg-card: #0d1117;
    --bg-card-hover: #161b22;
    --text-main: #c9d1d9;
    --text-heading: #ffffff;
    --text-muted: #8b949e;
    --primary-color: #58a6ff;
    --border-color: #30363d;
    --red-accent: #ff7b72;
    --red-border: #f85149;
    --red-glow: rgba(248, 81, 73, 0.15);
    --btn-coffee: #F1C40F;
    --btn-coffee-text: #000;
    --btn-deploy: #238636;
    --btn-deploy-hover: #2ea043;
}
* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { color: var(--text-heading); margin-top: 0; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #79c0ff; text-decoration: underline; }
ul { list-style: none; padding: 0; margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; width: 100%; background-color: var(--bg-body) !important; }
.section h2 {
    font-size: 2.5rem; text-align: center; margin-bottom: 60px; position: relative;
    text-transform: uppercase; letter-spacing: 2px;
}
.section h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background-color: var(--primary-color); margin: 15px auto 0; border-radius: 2px;
}
.red-section h2::after { background-color: var(--red-border); box-shadow: 0 0 10px var(--red-border); }
.navbar {
    background-color: rgba(13, 17, 23, 0.95); backdrop-filter: blur(10px);
    padding: 15px 0; border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.site-title { font-size: 1.5rem; font-weight: bold; color: var(--text-heading); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-main); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--primary-color); text-decoration: none; }
.youtube-button { color: #ff7b72 !important; }
.hero-section {
    background-color: var(--bg-body); min-height: 90vh; display: flex;
    align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: transparent;
    box-shadow: 10px 20px #fff, 50px 80px #fff, 120px 30px #fff, 250px 50px #fff,
                400px 120px #fff, 600px 40px #fff, 800px 25px #fff, 950px 90px #fff, 1100px 150px #fff;
    animation: twinkle 5s infinite alternate; opacity: 0.3; pointer-events: none;
}
@keyframes twinkle { 0% { opacity: 0.1; transform: translateY(0); } 100% { opacity: 0.4; transform: translateY(-20px); } }
.hero-content {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; z-index: 1; text-align: center; width: 100%;
}
.hero-pre { font-size: 1.5rem; color: var(--text-heading); margin-bottom: 10px; font-weight: 600; }
.hero-text h1 {
    font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px;
    background: linear-gradient(90deg, #4a90e2 0%, #9b59b6 50%, #e74c3c 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent;
}
.typing-container { font-size: 2rem; color: var(--text-heading); margin-bottom: 30px; min-height: 50px; }
.typing-text { color: var(--primary-color); font-weight: bold; }
.cursor { display: inline-block; width: 3px; background-color: var(--text-heading); animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-text p { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 30px auto; }
.social-links { display: flex; gap: 20px; font-size: 2rem; justify-content: center; margin-top: 20px; }
.social-links a { color: var(--text-muted); transition: transform 0.2s, color 0.2s; }
.social-links a:hover { transform: translateY(-3px); color: var(--text-heading); }
.experience-item { margin-bottom: 20px; }
.accordion-header {
    background-color: var(--bg-card); border: 1px solid var(--border-color);
    padding: 20px; border-radius: 6px; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; transition: all 0.2s;
}
.accordion-header:hover { border-color: var(--text-muted); background-color: var(--bg-card-hover); }
.accordion-header h3 { font-size: 1.1rem; margin: 0; color: var(--primary-color); }
.project-title { color: var(--text-main); font-weight: normal; font-size: 0.95rem; display: block; margin-top: 5px; }
.date { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; margin-left: 15px; }
.accordion-content {
    background-color: var(--bg-card); border: 1px solid var(--border-color);
    border-top: none; border-radius: 0 0 6px 6px; max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease; padding: 0 20px;
}
.accordion-content.open { padding: 20px; max-height: 1000px; }
.accordion-content ul { list-style: disc; margin-left: 20px; color: var(--text-muted); }
.accordion-content li { margin-bottom: 8px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; padding: 20px 0; }
.project-card {
    background-color: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 25px; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--red-border); box-shadow: 0 0 20px rgba(248, 81, 73, 0.1); }
.project-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--red-border), #d2a8ff); opacity: 0; transition: opacity 0.3s ease;
}
.project-card:hover::before { opacity: 1; }
.project-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.folder-icon { font-size: 2.5rem; color: var(--red-accent); }
.external-link { font-size: 1.2rem; color: var(--text-muted); transition: color 0.2s; }
.external-link:hover { color: var(--primary-color); }
.project-card h3 { font-size: 1.4rem; margin-bottom: 10px; color: var(--text-heading); font-weight: 600; }
.project-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.project-tech-stack {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto;
    font-size: 0.85rem; font-family: monospace; color: var(--text-muted);
}
.skills-category { margin-bottom: 40px; }
.skills-category h3 {
    color: var(--red-accent); border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px; margin-bottom: 20px; font-size: 1.2rem;
}
.skill-icons { display: flex; flex-wrap: wrap; gap: 20px; }
.skill-icons img {
    width: 50px; height: 50px; padding: 5px; background-color: var(--bg-card);
    border-radius: 8px; border: 1px solid var(--border-color); transition: transform 0.2s;
}
.skill-icons img:hover { transform: scale(1.1); border-color: var(--text-muted); }
.stats-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 30px; width: 320px; text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--primary-color); }
.card-header { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.card-header img { width: 30px; }
.circle-chart { width: 120px; height: 120px; margin: 0 auto 20px; position: relative; }
.circular-chart { display: block; margin: 0 auto; max-width: 100%; max-height: 100%; }
.circle-bg-path { fill: none; stroke: #30363d; stroke-width: 3; }
.circle { fill: none; stroke-width: 3; stroke-linecap: round; stroke: #ffa116; transition: stroke-dasharray 1s ease; }
.circle-center-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.total-solved { font-size: 1.8rem; font-weight: bold; display: block; }
.label { font-size: 0.8rem; color: var(--text-muted); }
.stat-details { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.stat-row {
    display: flex; justify-content: space-between; font-size: 0.9rem;
    color: var(--text-muted); border-bottom: 1px solid #21262d; padding-bottom: 5px;
}
.stat-row span:last-child { color: var(--text-heading); font-weight: bold; }
.visit-btn {
    display: block; padding: 10px; background-color: #21262d; border: 1px solid var(--border-color);
    border-radius: 6px; color: var(--primary-color); font-weight: 500; transition: all 0.2s;
}
.visit-btn:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); text-decoration: none; }
.contact-info { text-align: center; font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.buy-me-coffee-button {
    background-color: var(--btn-coffee); color: var(--btn-coffee-text); padding: 12px 30px;
    border-radius: 50px; font-weight: bold; display: inline-flex; align-items: center;
    gap: 10px; box-shadow: 0 0 15px rgba(241, 196, 15, 0.2);
}
.buy-me-coffee-button img { width: 20px; }
footer {
    background-color: #000000; color: var(--text-muted); text-align: center;
    padding: 40px 0; border-top: 1px solid var(--border-color); font-size: 0.9rem;
}
.intro-quote-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000;
    display: flex; align-items: center; justify-content: center; z-index: 9999;
    animation: fadeOut 1s ease-in-out 2.5s forwards; flex-direction: column;
}
.swords-anim { font-size: 5rem; display: flex; gap: 2rem; }
.swords-anim span { display: inline-block; animation: swordPulse 0.8s infinite alternate ease-in-out; }
@keyframes swordPulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.2); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@media (max-width: 768px) {
    .hero-text h1 { font-size: 3rem; }
    .typing-container { font-size: 1.5rem; }
    .nav-links { display: none; }
    .navbar .container { justify-content: center; }
}
