:root {
    --primary: #6c63ff;
    --primary-dark: #5a52d5;
    --dark: #0f0f1a;
    --dark-2: #1a1a2e;
    --dark-3: #16213e;
    --text: #e0e0e0;
    --text-muted: #9090a0;
    --border: rgba(255,255,255,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--dark);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.7;
}

/* NAVBAR */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28224%2C224%2C224%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar {
    background: rgba(15,15,26,0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary) !important;
    letter-spacing: 1px;
}

.navbar-brand span { color: var(--text); }

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.4rem 1rem !important;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* LANGUAGE SWITCHER */
.lang-switcher form {
    display: flex;
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-tag {
    display: inline-block;
    background: rgba(108,99,255,0.15);
    color: var(--primary);
    border: 1px solid rgba(108,99,255,0.3);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.hero h1 .highlight { color: var(--primary); }

.hero p.lead {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 520px;
    margin-bottom: 2rem;
}

.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108,99,255,0.4);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-code {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
}

.hero-code .dots {
    display: flex;
    gap: 6px;
    margin-bottom: 1.2rem;
}

.hero-code .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.code-line { margin: 0.15rem 0; }
.code-keyword { color: #c792ea; }
.code-class { color: #82aaff; }
.code-string { color: #c3e88d; }
.code-comment { color: #7a9aaa; font-style: italic; }
.code-property { color: #f78c6c; }

/* SECTIONS */
section { padding: 5rem 0; }

.section-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-title span { color: var(--primary); }

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    margin-bottom: 3rem;
}

/* SKILLS */
.skills-section { background: var(--dark-2); }

.skill-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(108,99,255,0.2);
}

.skill-icon { font-size: 2.2rem; margin-bottom: 0.8rem; display: block; }
.skill-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin: 0; }

/* STATS */
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); display: block; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ABOUT PAGE */
.experience-item {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    transition: all 0.2s;
}

.experience-item:hover { box-shadow: 0 4px 20px rgba(108,99,255,0.15); }
.experience-item h3 { font-weight: 700; margin-bottom: 0.2rem; font-size: 1rem; }
.experience-item .company { color: var(--primary); font-size: 0.9rem; font-weight: 600; }
.experience-item .period { color: var(--text-muted); font-size: 0.82rem; }
.experience-item p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; margin-bottom: 0; }

.tech-badge {
    display: inline-block;
    background: rgba(108,99,255,0.12);
    color: var(--primary);
    border: 1px solid rgba(108,99,255,0.25);
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0.25rem;
}

.about-info-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

/* CONTACT PAGE */
.contact-info-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.2s;
}

.contact-info-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(108,99,255,0.15);
}

.contact-icon-box {
    width: 52px;
    height: 52px;
    background: rgba(108,99,255,0.12);
    border: 1px solid rgba(108,99,255,0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.form-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-control-custom {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.form-control-custom::placeholder { color: var(--text-muted); }

.form-label-custom {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    display: block;
}

/* FOOTER */
footer {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    margin: 0 0.4rem;
    transition: color 0.2s;
}

.social-link:hover { color: var(--primary); }

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0 3rem;
}

.page-header h1 { font-size: 2.5rem; font-weight: 800; }
.page-header p { color: var(--text-muted); margin: 0; }

/* PROJECT CARDS */
.project-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.8rem;
    height: 100%;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(108,99,255,0.18);
}

.project-card h3 { font-weight: 700; margin-bottom: 0.5rem; font-size: 1.05rem; }
.project-card p  { color: var(--text-muted); font-size: 0.9rem; flex: 1; margin-bottom: 1.2rem; }

.project-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* TYPING CURSOR */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--primary);
    margin-left: 3px;
    vertical-align: middle;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* SCROLL ANIMATIONS */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="left"]  { transform: translateX(-28px); }
[data-animate="left"].visible  { transform: translateX(0); }
[data-animate="right"] { transform: translateX(28px); }
[data-animate="right"].visible { transform: translateX(0); }

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero { padding: 5rem 0 3rem; min-height: auto; }
    .hero-code { margin-top: 3rem; }
    section { padding: 3.5rem 0; }
}

/* ===== BLOG ===== */
.category-filter-btn {
    display: inline-block;
    padding: .4rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
}
.category-filter-btn:hover, .category-filter-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108,99,255,.08);
}

.blog-card-link { text-decoration: none; display: block; height: 100%; }
.blog-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color .25s, transform .25s;
}
.blog-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.blog-card-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.blog-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; line-height: 1.4; }
.blog-card-summary { color: var(--text-muted); font-size: .88rem; line-height: 1.65; flex: 1; margin-bottom: 1rem; }
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

.blog-category-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}
.blog-category-badge.csharp    { background: rgba(104,33,122,.25); color: #c678dd; }
.blog-category-badge.dotnet    { background: rgba(108,99,255,.2);  color: var(--primary); }
.blog-category-badge.aspnetcore{ background: rgba(0,150,255,.18);  color: #61afef; }

/* Blog detail content */
.blog-content { color: var(--text); line-height: 1.9; font-size: 1.02rem; }
.blog-content h1, .blog-content h2, .blog-content h3 { color: var(--text); margin: 2rem 0 1rem; font-weight: 700; }
.blog-content h2 { font-size: 1.4rem; border-bottom: 1px solid var(--border); padding-bottom: .5rem; }
.blog-content h3 { font-size: 1.15rem; }
.blog-content p  { margin-bottom: 1.2rem; color: var(--text-muted); }
.blog-content a  { color: var(--primary); text-decoration: underline; }
.blog-content ul, .blog-content ol { color: var(--text-muted); padding-left: 1.5rem; margin-bottom: 1.2rem; }
.blog-content li { margin-bottom: .4rem; }
.blog-content pre {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.blog-content code {
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: .9rem;
    color: #abb2bf;
}
.blog-content p code {
    background: var(--dark-3);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: .88rem;
    color: #c678dd;
}
.blog-content blockquote {
    border-left: 3px solid var(--primary);
    margin: 1.5rem 0;
    padding: .75rem 1.25rem;
    background: rgba(108,99,255,.07);
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
}
