/* ============================================
   CYBERPUNK PORTFOLIO - COMPLETE STYLES
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #111111;
    --bg-card: #0a0a0a;
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00aa;
    --neon-green: #39ff14;
    --neon-yellow: #f0ff00;
    --neon-orange: #ff6600;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --text-dim: #444444;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
    --glow-cyan: 0 0 10px #00f0ff, 0 0 20px #00f0ff, 0 0 40px #00f0ff;
    --glow-magenta: 0 0 10px #ff00aa, 0 0 20px #ff00aa, 0 0 40px #ff00aa;
    --glow-green: 0 0 10px #39ff14, 0 0 20px #39ff14, 0 0 40px #39ff14;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) var(--bg-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 3px; }

body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- CRT Scanline Overlay --- */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
    animation: crt-flicker 0.1s infinite;
}

@keyframes crt-flicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.95; }
    10% { opacity: 0.98; }
    15% { opacity: 0.96; }
    20% { opacity: 0.99; }
    100% { opacity: 0.97; }
}

/* --- Matrix Canvas --- */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.08;
}

/* --- Mouse Trail --- */
#mouse-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.trail-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    animation: trail-fade 0.8s ease-out forwards;
}

@keyframes trail-fade {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    letter-spacing: 2px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-hamburger span {
    width: 25px;
    height: 2px;
    background: var(--neon-cyan);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-cyan);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.profile-frame {
    width: 220px;
    height: 220px;
    position: relative;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), inset 0 0 15px rgba(0, 240, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(30%) contrast(1.1);
}

.profile-frame .scanline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 2;
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
}

/* Profile Hover Effect */
.profile-container:hover .profile-frame {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 25px rgba(255, 0, 170, 0.4), inset 0 0 25px rgba(255, 0, 170, 0.15);
}

.profile-container:hover .profile-img {
    transform: translateY(-70px);
    filter: grayscale(0%) contrast(1.2);
}

.profile-container:hover .glitch-overlay {
    opacity: 1;
    animation: image-glitch 0.3s infinite;
}

@keyframes image-glitch {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-2px, 2px);
        background: rgba(0, 240, 255, 0.1);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(2px, -1px);
        background: rgba(255, 0, 170, 0.1);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-1px, 3px);
        background: rgba(57, 255, 20, 0.1);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(3px, -2px);
        background: rgba(0, 240, 255, 0.1);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-3px, 1px);
        background: rgba(255, 0, 170, 0.1);
    }
    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(1px, -3px);
        background: rgba(57, 255, 20, 0.1);
    }
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0s;
    margin-top: 25px;
}

.profile-container:hover .profile-info {
    opacity: 1;
    transform: translateY(0);
}

/* --- Neon Name --- */
.neon-name {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
    letter-spacing: 8px;
    animation: neon-flicker 3s infinite;
    position: relative;
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: var(--glow-cyan);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.8;
    }
}

/* --- Terminal Title --- */
.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--neon-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-prompt {
    color: var(--neon-magenta);
    text-shadow: 0 0 5px var(--neon-magenta);
}

.cursor {
    animation: blink 0.7s infinite;
    color: var(--neon-green);
}

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

/* --- Location --- */
.location-info {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bracket {
    color: var(--neon-magenta);
    text-shadow: 0 0 5px var(--neon-magenta);
}

/* --- Social Links --- */
.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-prefix {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

.social-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.download-cv-link {
    color: var(--neon-green) !important;
    text-shadow: 0 0 8px var(--neon-green);
}
.download-cv-link:hover {
    color: #5fff4f !important;
    text-shadow: 0 0 15px var(--neon-green), 0 0 30px var(--neon-green);
}

.cv-counter {
    display: block;
    font-size: 0.7rem;
    color: rgba(0,240,255,0.3);
    margin-top: 8px;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: float 2s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: lowercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1px solid var(--neon-cyan);
    border-bottom: 1px solid var(--neon-cyan);
    transform: rotate(45deg);
    box-shadow: 2px 2px 5px rgba(0, 240, 255, 0.3);
    animation: scroll-pulse 1.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 50px;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta);
}

/* --- Glitch Text Effect --- */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text:hover::before {
    opacity: 0.8;
    color: var(--neon-cyan);
    animation: glitch-anim-1 0.3s infinite;
    clip-path: inset(20% 0 60% 0);
}

.glitch-text:hover::after {
    opacity: 0.8;
    color: var(--neon-magenta);
    animation: glitch-anim-2 0.3s infinite;
    clip-path: inset(60% 0 10% 0);
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, -1px); }
    20% { clip-path: inset(92% 0 1% 0); transform: translate(2px, 1px); }
    40% { clip-path: inset(43% 0 1% 0); transform: translate(-1px, 2px); }
    60% { clip-path: inset(25% 0 58% 0); transform: translate(1px, -2px); }
    80% { clip-path: inset(54% 0 7% 0); transform: translate(-2px, 1px); }
    100% { clip-path: inset(58% 0 43% 0); transform: translate(2px, -1px); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(65% 0 13% 0); transform: translate(2px, 1px); }
    20% { clip-path: inset(15% 0 62% 0); transform: translate(-1px, -2px); }
    40% { clip-path: inset(79% 0 2% 0); transform: translate(1px, 2px); }
    60% { clip-path: inset(33% 0 45% 0); transform: translate(-2px, -1px); }
    80% { clip-path: inset(5% 0 82% 0); transform: translate(2px, 1px); }
    100% { clip-path: inset(47% 0 31% 0); transform: translate(-1px, -2px); }
}

/* --- Terminal Card --- */
.terminal-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.terminal-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-filename {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 25px;
}

.terminal-line {
    font-size: 0.85rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.terminal-line.visible {
    opacity: 1;
    transform: translateX(0);
}

.line-number {
    color: var(--text-dim);
    margin-right: 15px;
    user-select: none;
}

.code-keyword { color: var(--neon-magenta); }
.code-class { color: var(--neon-cyan); }
.code-function { color: var(--neon-green); }
.code-string { color: var(--neon-yellow); }

.terminal-cursor-line {
    padding: 5px 25px 20px;
}

.blinking-cursor {
    color: var(--neon-green);
    animation: blink 0.7s infinite;
    font-size: 1rem;
}

/* --- About Section --- */
.about-section .terminal-card {
    max-width: 750px;
}

/* --- Experience Section --- */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 25px;
}

.experience-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.experience-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
    transform: translateY(-3px);
}

.card-neon-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: all 0.4s ease;
}

.experience-card:hover .card-neon-border {
    width: 4px;
    box-shadow: 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-magenta);
}

.card-content {
    padding: 25px 25px 25px 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.card-date {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.card-company {
    font-size: 0.85rem;
    color: var(--neon-magenta);
    margin-bottom: 15px;
}

.card-location {
    color: var(--text-secondary);
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-list li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
}

.card-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

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

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 6px;
    padding: 30px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.project-card:hover {
    border-color: rgba(255, 0, 170, 0.3);
    box-shadow: 0 0 25px rgba(255, 0, 170, 0.15);
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .project-stats {
    opacity: 0;
    transform: translateY(10px);
}

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

.project-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.project-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    border: 1px solid var(--neon-magenta);
    color: var(--neon-magenta);
    border-radius: 3px;
    letter-spacing: 1px;
}

.project-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.project-stats {
    transition: all 0.4s ease;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 10px;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 6px;
    padding: 25px;
    transition: all 0.4s ease;
}

.skill-category:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.category-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.category-bracket {
    color: var(--neon-magenta);
    text-shadow: 0 0 5px var(--neon-magenta);
}

.skill-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-token {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 3px;
    border: 1px solid;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-token.lang {
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.skill-token.lang:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.skill-token.fw {
    border-color: rgba(255, 0, 170, 0.3);
    color: var(--neon-magenta);
    background: rgba(255, 0, 170, 0.05);
}

.skill-token.fw:hover {
    background: rgba(255, 0, 170, 0.15);
    box-shadow: 0 0 10px rgba(255, 0, 170, 0.2);
}

.skill-token.ai {
    border-color: rgba(57, 255, 20, 0.3);
    color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
}

.skill-token.ai:hover {
    background: rgba(57, 255, 20, 0.15);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.skill-token.infra {
    border-color: rgba(240, 255, 0, 0.3);
    color: var(--neon-yellow);
    background: rgba(240, 255, 0, 0.05);
}

.skill-token.infra:hover {
    background: rgba(240, 255, 0, 0.15);
    box-shadow: 0 0 10px rgba(240, 255, 0, 0.2);
}

/* --- Education Section --- */
.education-card {
    max-width: 600px;
}

.education-terminal .terminal-line {
    opacity: 1;
    transform: none;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-card .terminal-body .terminal-line {
    opacity: 1;
    transform: none;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 6px;
    padding: 30px;
    transition: all 0.4s ease;
}

.contact-form-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.1);
}

.form-terminal-header {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-green);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.form-prompt {
    color: var(--neon-magenta);
    text-shadow: 0 0 5px var(--neon-magenta);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 4px;
    padding: 12px 15px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.neon-button {
    position: relative;
    width: 100%;
    padding: 14px 30px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

.neon-button:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.1);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.neon-button .button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    pointer-events: none;
}

.neon-button:hover .button-glow {
    width: 300px;
    height: 300px;
}

/* --- Footer --- */
.footer {
    padding: 30px 40px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-text {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.footer-year {
    font-size: 0.75rem;
    color: var(--neon-cyan);
}

/* --- Entrance Animations --- */
.entrance-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.entrance-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.entrance-element[data-delay="100"] { transition-delay: 0.1s; }
.entrance-element[data-delay="200"] { transition-delay: 0.2s; }
.entrance-element[data-delay="300"] { transition-delay: 0.3s; }
.entrance-element[data-delay="400"] { transition-delay: 0.4s; }
.entrance-element[data-delay="500"] { transition-delay: 0.5s; }

/* --- Horizontal Glitch Entrance --- */
.experience-card.entrance-element {
    transform: translateX(-30px) skewX(-2deg);
}

.experience-card.entrance-element.visible {
    transform: translateX(0) skewX(0);
    animation: horizontal-glitch-in 0.6s ease forwards;
}

@keyframes horizontal-glitch-in {
    0% { transform: translateX(-30px) skewX(-2deg); filter: hue-rotate(0deg); }
    20% { transform: translateX(5px) skewX(1deg); filter: hue-rotate(90deg); }
    40% { transform: translateX(-3px) skewX(-0.5deg); filter: hue-rotate(180deg); }
    60% { transform: translateX(2px) skewX(0.3deg); filter: hue-rotate(270deg); }
    80% { transform: translateX(-1px) skewX(-0.1deg); filter: hue-rotate(360deg); }
    100% { transform: translateX(0) skewX(0); filter: hue-rotate(0deg); }
}

/* --- Mobile Menu --- */
.nav-links.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 999;
}

.nav-links.open .nav-link {
    font-size: 1.2rem;
}

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

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

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

/* --- Responsive --- */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .navbar {
        padding: 15px 20px;
    }

    .section-container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .neon-name {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .neon-name {
        font-size: 1.4rem;
        letter-spacing: 3px;
    }

    .profile-frame {
        width: 180px;
        height: 180px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        gap: 10px;
    }

    .card-header {
        flex-direction: column;
    }

    .hero-content {
        gap: 40px;
    }
}

/* --- Selection Style --- */
::selection {
    background: rgba(0, 240, 255, 0.3);
    color: #fff;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
    outline: 1px solid var(--neon-cyan);
    outline-offset: 3px;
}

/* --- Neon Pulse for Education Card --- */
.education-card {
    animation: neon-border-pulse 4s ease-in-out infinite;
}

@keyframes neon-border-pulse {
    0%, 100% { border-color: rgba(0, 240, 255, 0.15); }
    50% { border-color: rgba(0, 240, 255, 0.35); box-shadow: 0 0 15px rgba(0, 240, 255, 0.08); }
}

.lang-toggle {
    cursor: pointer;
    font-weight: 700;
    min-width: 36px;
    text-align: center;
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    color: var(--neon-cyan);
}
.lang-toggle:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--neon-cyan);
}
.nav-lang-mobile {
    cursor: pointer;
    font-weight: 700;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.7rem;
    margin-left: 12px;
    display: inline-block;
}
@media (min-width: 901px) {
    .nav-lang-mobile {
        display: none;
    }
}
