
:root {
    --bg-main: #050714;
    --bg-panel: rgba(5, 10, 30, 0.9);
    --text-main: #f5f5f5;
    --text-muted: #b0b0c3;
    --neon-cyan: #47ffff;
    --neon-pink: #ff4ecd;
    --neon-purple: #9b5cff;
    --border-radius: 16px;
    --shadow-neon: 0 0 12px rgba(71, 255, 255, 0.6), 0 0 24px rgba(155, 92, 255, 0.5);
    --transition-fast: 0.18s ease-out;
    --transition-slow: 0.35s ease-out;
}

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

body {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
    radial-gradient(circle at 10% 20%, rgba(155, 92, 255, 0.25) 0, transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(71, 255, 255, 0.18) 0, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(255, 78, 205, 0.12) 0, transparent 55%),
    var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrapper {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

/* NAVBAR */

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(
    90deg,
    rgba(5, 7, 20, 0.92),
    rgba(5, 7, 20, 0.88)
    );
    border-bottom: 1px solid rgba(155, 92, 255, 0.4);
    margin: -20px -20px 40px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.nav-logo-main {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(71, 255, 255, 0.7);
}

.nav-logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 0.9rem;
}

.nav-links a {
    position: relative;
    padding-bottom: 3px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    box-shadow: var(--shadow-neon);
    transition: width var(--transition-fast);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.lang-switch {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.7);
    overflow: hidden;
    font-size: 0.75rem;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.lang-btn.active {
    background: radial-gradient(circle at 0 0, rgba(155, 92, 255, 0.35), transparent 60%);
    color: var(--text-main);
}

@media (max-width: 720px) {
    .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    }
    .nav-right {
    width: 100%;
    justify-content: space-between;
    }
    .nav-links {
    flex-wrap: wrap;
    }
}

/* HERO */

.hero {
    padding: 40px 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 32px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.1rem, 2.8vw + 1.2rem, 3.1rem);
    line-height: 1.05;
    margin-bottom: 14px;
}

.hero-highlight {
    background: linear-gradient(120deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(71, 255, 255, 0.5);
}

.hero-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.tag {
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.78rem;
    border: 1px solid rgba(71, 255, 255, 0.6);
    background: radial-gradient(circle at 0 0, rgba(71, 255, 255, 0.25), transparent 55%);
    box-shadow: 0 0 12px rgba(71, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: radial-gradient(circle at 0 0, rgba(71, 255, 255, 0.4), transparent 60%);
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
    color: #021014;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(71, 255, 255, 0.9);
    background: linear-gradient(120deg, var(--neon-cyan), var(--neon-purple));
    color: #01050a;
}

.btn-ghost {
    background: rgba(5, 10, 30, 0.8);
    border-color: rgba(155, 92, 255, 0.7);
    color: var(--text-main);
}

.btn-ghost:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(155, 92, 255, 0.9);
    background: radial-gradient(circle at 0 0, rgba(155, 92, 255, 0.35), transparent 60%);
}

.hero-aside {
    border-radius: var(--border-radius);
    border: 1px solid rgba(71, 255, 255, 0.5);
    background: radial-gradient(circle at 0 0, rgba(71, 255, 255, 0.18), transparent 55%), var(--bg-panel);
    box-shadow: var(--shadow-neon);
    padding: 18px 18px 16px;
    position: relative;
    overflow: hidden;
}

.hero-aside-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.hero-aside-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(71, 255, 255, 0.9);
}

.hero-aside-title {
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: 6px;
}

.hero-aside-body {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-height: 220px;
    overflow-y: auto;
}

.hero-aside-body code {
    color: var(--neon-pink);
}

.hero-aside-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 80% 120%, rgba(255, 78, 205, 0.18) 0, transparent 60%);
    opacity: 0.85;
}

@media (max-width: 860px) {
    .hero {
    grid-template-columns: 1fr;
    }
}

/* SECTIONS */

section {
    margin-top: 30px;
    padding-top: 10px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.section-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.section-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 78, 205, 0.6);
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: radial-gradient(circle at 0 0, rgba(255, 78, 205, 0.2), transparent 60%);
}

/* ABOUT */

.about {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 24px;
}

.about-text {
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-highlight {
    color: var(--neon-cyan);
}

.about-badge {
    display: inline-flex;
    padding: 4px 10px;
    font-size: 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(71, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: var(--text-main);
    background: rgba(5, 10, 30, 0.8);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    font-size: 0.8rem;
}

.about-card {
    border-radius: var(--border-radius);
    border: 1px solid rgba(155, 92, 255, 0.6);
    background: rgba(5, 10, 30, 0.85);
    padding: 10px 12px;
    box-shadow: 0 0 16px rgba(10, 15, 40, 0.8);
}

.about-card-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neon-purple);
    margin-bottom: 4px;
}

.about-card-list {
    list-style: none;
    color: var(--text-muted);
}

.about-card-list li {
    margin-bottom: 2px;
}

/* PROJECTS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.project-card {
    border-radius: var(--border-radius);
    border: 1px solid rgba(71, 255, 255, 0.5);
    background: linear-gradient(
        140deg,
        rgba(71, 255, 255, 0.1),
        rgba(155, 92, 255, 0.1),
        rgba(5, 7, 20, 0.95)
    );
    padding: 14px 14px 16px;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-fast);
}

.project-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
    radial-gradient(circle at 0 0, rgba(71, 255, 255, 0.4) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 78, 205, 0.35) 0, transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-neon);
    border-color: var(--neon-pink);
}

.project-card:hover::before {
    opacity: 1;
}

.project-name {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.project-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.project-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.72rem;
}

.project-tag {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(5, 200, 255, 0.6);
    background: rgba(3, 20, 40, 0.85);
    color: var(--text-main);
}

.project-link {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Toggle button inside project card */

.project-toggle {
    margin-top: 8px;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neon-cyan);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-toggle span.icon {
    display: inline-block;
    transform: translateY(1px);
    transition: transform var(--transition-fast);
    font-size: 0.9rem;
}

.project-card.open .project-toggle span.icon {
    transform: rotate(90deg) translateY(1px);
}

.project-more {
    display: none;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    border-top: 1px solid rgba(71, 255, 255, 0.35);
    padding-top: 8px;
}

.project-more ul {
    margin-left: 16px;
    margin-top: 4px;
}

.project-more li {
    margin-bottom: 2px;
}

.project-card.open .project-more {
    display: block;
}

/* SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    font-size: 0.85rem;
}

.skills-card {
    border-radius: var(--border-radius);
    border: 1px solid rgba(71, 255, 255, 0.4);
    background: rgba(5, 10, 30, 0.85);
    padding: 10px 12px;
}

.skills-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neon-cyan);
    margin-bottom: 4px;
}

.skills-list {
    color: var(--text-muted);
    line-height: 1.5;
}

/* CONTACT */

.contact-box {
    border-radius: var(--border-radius);
    border: 1px solid rgba(155, 92, 255, 0.7);
    background: radial-gradient(circle at 0 0, rgba(155, 92, 255, 0.3), transparent 60%), rgba(5, 10, 30, 0.96);
    padding: 16px 16px 18px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 18px;
    align-items: center;
}

.contact-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--neon-purple);
    margin-bottom: 4px;
}

.contact-item {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 6px;
    word-break: break-all;
}

.contact-item a {
    color: var(--neon-cyan);
}

@media (max-width: 720px) {
    .about {
    grid-template-columns: 1fr;
    }
    .contact-box {
    grid-template-columns: 1fr;
    }
}

/* FOOTER */

.footer {
    margin-top: 40px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.7;
}

