/* ===== VARIABLES & RESET ===== */
:root {
    --bg: #070607;
    --surface: #0f0f12;
    --accent: #60a5fa;
    --accent2: #2563eb;
    --text: #f6f5fb;
    --muted: #bdb7c9;
    --border: rgba(255,255,255,0.03);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(7, 6, 7, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Ãâ€ºÃÅ¾Ãâ€œÃÅ¾ÃÂ¢ÃËœÃÅ¸ ÃÂ¡ ÃËœÃâ€”ÃÅ¾Ãâ€˜ÃÂ ÃÂÃâ€“Ãâ€¢ÃÂÃËœÃâ€¢ÃÅ“ */
.logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 12px 36px rgba(37,99,235,0.12);
    display: grid;
    place-items: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text h1 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
}

.brand-text p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

/* Burger Menu - ÃÂ¡ÃÂ¿Ã‘â‚¬ÃÂ°ÃÂ²ÃÂ° */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    margin-right: 10px;
}

.burger span {
    width: 30px;
    height: 3px;
    background: var(--text);
    transition: 0.3s;
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.02);
}

/* Mobile Menu - Ãâ€™Ã‘â€¹ÃÂµÃÂ·ÃÂ¶ÃÂ°ÃÂµÃ‘â€š Ã‘ÂÃÂ¿Ã‘â‚¬ÃÂ°ÃÂ²ÃÂ° */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    z-index: 999;
    transition: right 0.3s ease;
    padding: 80px 30px 30px 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-nav-links a:hover {
    color: var(--accent);
    background: rgba(255,255,255,0.05);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

/* ===== CANVAS BACKGROUND ===== */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
}

.hero-content {
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-left {
    padding-right: 40px;
}

.kicker {
    font-family: 'Cousine', monospace;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 3.5em;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 10px;
    font-family: 'Archivo Black', sans-serif;
    line-height: 0.9;
}

.hero h1 .white {
    color: var(--text);
}

.subtitle {
    font-size: 1.1em;
    color: var(--muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.pill {
    background: linear-gradient(90deg, rgba(37,99,235,0.06), rgba(96,165,250,0.03));
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.02);
    font-family: 'Cousine', monospace;
    font-weight: 700;
    color: var(--text);
    font-size: 13px;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.stat {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    min-width: 100px;
    text-align: center;
}

.stat .num {
    font-family: "Archivo Black", sans-serif;
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 5px;
}

.stat .lbl {
    color: var(--muted);
    font-size: 12px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.04);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 -10px 40px rgba(37,99,235,0.05);
    background: linear-gradient(180deg,#0b0b0b,#0a0a0a);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-mini-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.contact-mini {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.01);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--accent);
    background: rgba(96, 165, 250, 0.05);
}

.availability {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: rgba(255,255,255,0.01);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 50px;
    margin: 40px 0;
}

.about-content {
    width: 100%;
}

.about h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--accent);
    font-family: 'Archivo Black', sans-serif;
}

.about-text {
    color: var(--muted);
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 25px;
}

.languages-section {
    margin-top: 20px;
}

.languages-label {
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-chip {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.03);
    font-weight: 700;
    background: linear-gradient(90deg, rgba(37,99,235,0.03), transparent);
    font-size: 14px;
}

/* ===== SKILLS MASTERY SECTION ===== */
.skills-mastery {
    margin: 60px 0;
}

.skills-mastery h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Archivo Black', sans-serif;
}

.skills-progress-grid {
    display: grid;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.skill-item {
    background: linear-gradient(145deg, var(--surface), #0a0a0c);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.08), transparent);
    transition: left 0.6s ease;
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.skill-name {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--accent);
    font-family: 'Archivo Black', sans-serif;
}

.skill-percentage {
    color: var(--accent);
    font-weight: bold;
    font-family: 'Cousine', monospace;
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4);
    transition: width 1.5s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: var(--muted);
    margin-top: 8px;
}

.skill-level {
    color: var(--accent);
    font-weight: bold;
    font-family: 'Cousine', monospace;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: linear-gradient(145deg, var(--surface), #0a0a0c);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.05), transparent);
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.project-title {
    color: var(--accent);
    font-size: 1.4em;
    margin-bottom: 15px;
    font-family: 'Archivo Black', sans-serif;
}

.project-description {
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: rgba(96, 165, 250, 0.1);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Archivo Black', sans-serif;
}

/* ===== CONTACT SECTION ===== */
.contact {
    text-align: center;
    background: rgba(255,255,255,0.01);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 60px;
    margin: 40px 0;
}

.contact h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Archivo Black', sans-serif;
}

.contact-subtitle {
    color: var(--muted);
    font-size: 1.1em;
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    padding: 15px 30px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.02);
    font-weight: 600;
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--muted);
    font-size: 0.9em;
    border-top: 1px solid var(--border);
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Burger Menu */
    .burger {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-left {
        padding-right: 0;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .stats-row {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* About & Contact */
    .about, .contact {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .about h2, .contact h2 {
        font-size: 1.8em;
    }
    
    /* Skills & Projects */
    .skills-progress-grid {
        gap: 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        padding: 25px;
    }
    
    /* Contact Links */
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .stats-row {
        gap: 10px;
    }
    
    .stat {
        padding: 12px 15px;
        min-width: 80px;
    }
    
    .about, .contact {
        padding: 25px 15px;
    }
    
    .skill-item, .project-card {
        padding: 20px;
    }
}

/* ===== ENTRY GATE & VIEW COUNTER ===== */
body.pre-entry {
    overflow: hidden;
}

.entry-gate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.08), rgba(0, 0, 0, 0.92) 45%, rgba(0, 0, 0, 0.98) 100%);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.entry-gate.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entry-gate-content {
    padding: 18px 24px;
}

.entry-gate-text {
    font-size: clamp(28px, 5vw, 50px);
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: 0.03em;
    color: var(--text);
    text-shadow: 0 0 28px rgba(96, 165, 250, 0.35);
}

.entry-gate-hint {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
    font-family: 'Cousine', monospace;
}

.view-badge {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1400;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-family: 'Archivo Black', sans-serif;
    font-size: 24px;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.view-badge-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.92);
}

.view-badge-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@media (max-width: 768px) {
    .view-badge {
        top: 14px;
        left: 14px;
        padding: 8px 11px;
        font-size: 20px;
    }

    .view-badge-icon {
        width: 18px;
        height: 18px;
    }
}

/* ===== DISCORD LIVE CARD ===== */
.discord-live-card {
    width: min(560px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
    padding: 12px 16px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.discord-live-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 30px 52px rgba(8, 14, 26, 0.48);
}

.discord-live-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.discord-live-avatar-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
}

.discord-live-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.22);
}

.discord-live-status-dot {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(17, 17, 17, 0.92);
    background: #747f8d;
}

.discord-live-status-dot[data-status="online"] {
    background: #23a55a;
}

.discord-live-status-dot[data-status="idle"] {
    background: #f0b232;
}

.discord-live-status-dot[data-status="dnd"] {
    background: #f23f43;
}

.discord-live-status-dot[data-status="offline"] {
    background: #747f8d;
}

.discord-live-meta {
    min-width: 0;
}

.discord-live-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.discord-live-name {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.1;
    color: #ffffff;
}

.discord-live-source {
    font-size: 12px;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 5px 10px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Cousine', monospace;
    background: rgba(12, 18, 34, 0.5);
}

.discord-live-title {
    margin-top: 8px;
    font-size: 31px;
    line-height: 1;
    font-family: 'Archivo Black', sans-serif;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-live-subtitle {
    margin-top: 6px;
    font-size: 29px;
    line-height: 1;
    color: rgba(246, 245, 251, 0.84);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-live-cover {
    width: 94px;
    height: 94px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
}

.discord-live-cover.is-hidden {
    display: none;
}

.discord-live-card.is-offline {
    opacity: 0.92;
}

@media (max-width: 1024px) {
    .discord-live-card {
        border-radius: 22px;
    }

    .discord-live-title {
        font-size: 24px;
    }

    .discord-live-subtitle {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .discord-live-card {
        width: min(520px, 100%);
        padding: 10px 12px;
        gap: 10px;
        border-radius: 18px;
    }

    .discord-live-avatar-wrap {
        width: 58px;
        height: 58px;
    }

    .discord-live-title {
        font-size: 18px;
        margin-top: 6px;
    }

    .discord-live-subtitle {
        font-size: 15px;
        margin-top: 4px;
    }

    .discord-live-name {
        font-size: 15px;
    }

    .discord-live-cover {
        width: 66px;
        height: 66px;
        border-radius: 12px;
    }

    .discord-live-source {
        font-size: 10px;
        padding: 4px 7px;
    }
}

/* ===== HERO TUNING (USER REQUEST) ===== */
.hero .hero-name {
    display: flex;
    align-items: baseline;
    gap: 12px;
    white-space: nowrap;
    font-size: clamp(3rem, 5.8vw, 4.8rem);
    line-height: 1;
}

.hero .hero-name .white {
    color: var(--text);
}

.hero .avatar {
    width: 320px;
    height: 320px;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 38px 78px rgba(0, 0, 0, 0.64), inset 0 -10px 40px rgba(37, 99, 235, 0.06);
}

.hero .avatar img {
    object-position: center 32%;
    transform: scale(1.25);
}

.hero .contact-mini-container,
.hero .availability,
.hero .discord-live-card {
    display: none !important;
}

@media (max-width: 768px) {
    .hero .hero-name {
        justify-content: center;
        font-size: clamp(2rem, 8vw, 2.8rem);
        gap: 8px;
    }

    .hero .avatar {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 480px) {
    .hero .hero-name {
        font-size: clamp(1.6rem, 8.5vw, 2.2rem);
    }

    .hero .avatar {
        width: 200px;
        height: 200px;
    }
}
