:root {
    --bg-color: #060913;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-emerald: #10b981;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

code {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.88em;
}

.blob {
    position: fixed;
    filter: blur(95px);
    z-index: -1;
    opacity: 0.45;
    pointer-events: none;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(0, 0, 0, 0) 70%);
}

.blob-2 {
    bottom: 10%;
    right: -10%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.35);
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.25s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.15);
}

.nav-cv-link {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    border-radius: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    font-size: 0.92rem;
}

.primary-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.primary-btn:hover {
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

.cv-btn-tr {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #6ee7b7;
}

.cv-btn-tr:hover {
    background: rgba(16, 185, 129, 0.28);
    transform: translateY(-2px);
}

.cv-btn-en {
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #93c5fd;
}

.cv-btn-en:hover {
    background: rgba(59, 130, 246, 0.28);
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Hero Section */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 7rem 8% 3rem 8%;
}

.hero-content {
    flex: 1.3;
    max-width: 680px;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    margin-bottom: 1rem;
}

.title {
    font-size: 3.8rem;
    line-height: 1.08;
    margin-bottom: 0.6rem;
    font-weight: 800;
}

.role-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 1.1rem;
}

.description {
    color: var(--text-secondary);
    font-size: 1.04rem;
    margin-bottom: 1.8rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-image-container {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.tech-stack-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 1.8rem;
    border-radius: 18px;
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 430px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.tech-stack-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

/* Sections */
section {
    padding: 4rem 8%;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2.2rem;
    text-align: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.3rem;
}

/* Competency Matrix */
.competency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}

.comp-card h3 {
    font-size: 1.12rem;
    color: #93c5fd;
    margin-bottom: 0.7rem;
}

.comp-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Flagship Card */
.flagship-card {
    border: 1.5px solid rgba(59, 130, 246, 0.45);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 58, 138, 0.22));
    margin-bottom: 2rem;
}

.flagship-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}

.flagship-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    margin-bottom: 0.5rem;
}

.flagship-header h3 {
    font-size: 1.45rem;
    color: #ffffff;
}

.dual-engine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.4rem;
}

.engine-box {
    background: rgba(6, 9, 19, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.engine-box h4 {
    color: #60a5fa;
    font-size: 1.02rem;
    margin-bottom: 0.75rem;
}

.engine-box ul {
    padding-left: 1.1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.6rem;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    gap: 0.5rem;
}

.project-header h3 {
    font-size: 1.2rem;
}

.project-links a {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
}

.project-links a:hover {
    text-decoration: underline;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 1.3rem;
    flex-grow: 1;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.project-techs span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.24);
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
}

/* CV Showcase & Contact */
.cv-panel, .contact-panel {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.cv-panel h2, .contact-panel h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.cv-panel p, .contact-panel p {
    color: var(--text-secondary);
    margin-bottom: 1.6rem;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6.5rem;
    }
    .cta-buttons {
        justify-content: center;
    }
    .nav-links {
        display: none;
    }
    .title {
        font-size: 2.8rem;
    }
}
