/* ============================================
   MP Portfolio — Gaming / Glitch Theme
   ============================================ */

:root {
    --primary: #00f0ff;
    --primary-dark: #00a8b3;
    --secondary: #ff0040;
    --accent: #b400ff;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a2e;
    --text: #e0e0e0;
    --text-dim: #6a6a8a;
    --text-bright: #ffffff;
    --border: #1e1e3a;
    --glow-primary: 0 0 20px rgba(0, 240, 255, 0.3);
    --glow-secondary: 0 0 20px rgba(255, 0, 64, 0.3);
    --font-display: 'Orbitron', 'Be Vietnam Pro', sans-serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
    --font-mono: 'Share Tech Mono', 'Be Vietnam Pro', monospace;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

html::-webkit-scrollbar {
    width: 6px;
}
html::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
html::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}

a {
    color: var(--primary);
    text-decoration: none;
    cursor: none;
}

/* Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: noise-move 0.5s steps(3) infinite;
}

@keyframes noise-move {
    0% { transform: translate(0, 0); }
    33% { transform: translate(-5px, 5px); }
    66% { transform: translate(5px, -5px); }
    100% { transform: translate(0, 0); }
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s, width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--secondary);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 3rem;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--primary), 0 0 40px rgba(0, 240, 255, 0.2);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: var(--glow-primary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: none;
    z-index: 200;
}

.nav-hamburger span {
    width: 30px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    z-index: 150;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 6px;
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--primary);
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 15px;
    text-shadow: 0 0 20px var(--primary), 0 0 60px rgba(0, 240, 255, 0.3);
    margin-bottom: 2rem;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: var(--glow-primary);
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 3px;
}

.loader-dots {
    animation: blink 1s steps(3) infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Sections */
.section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 8rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--secondary);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--text-bright);
}

.section-line {
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 1.5rem auto 0;
    box-shadow: var(--glow-primary);
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.tag-bracket {
    color: var(--primary);
}

.tag-text {
    color: var(--secondary);
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-line {
    display: block;
}

.hero-glitch {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 900;
    letter-spacing: 15px;
    color: var(--text-bright);
    line-height: 1.1;
}

.hero-subtitle-line {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--primary);
    letter-spacing: 3px;
    margin-top: 0.5rem;
}

.typing-cursor {
    animation: cursor-blink 0.8s steps(1) infinite;
    color: var(--primary);
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 3px;
    padding: 1rem 2.5rem;
    border: none;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: var(--glow-primary);
}

.cyber-btn {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.btn-secondary {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    color: var(--text-bright);
    border-color: var(--text-dim);
}

.btn-glitch {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover .btn-glitch {
    left: 100%;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

.stat {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    display: block;
    margin-top: 0.3rem;
    text-transform: uppercase;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 4px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scroll-anim 2s ease infinite;
}

@keyframes scroll-anim {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.avatar-frame {
    width: 250px;
    height: 250px;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-card);
    margin: 0 auto;
}

.avatar-inner {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(180, 0, 255, 0.05));
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.avatar-text {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.avatar-corners span {
    position: absolute;
    width: 15px;
    height: 15px;
    border-color: var(--primary);
    border-style: solid;
}

.avatar-corners span:nth-child(1) {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}
.avatar-corners span:nth-child(2) {
    top: -1px;
    right: -1px;
    border-width: 2px 2px 0 0;
}
.avatar-corners span:nth-child(3) {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 2px 2px;
}
.avatar-corners span:nth-child(4) {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.avatar-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #00ff88;
    letter-spacing: 3px;
    margin-top: 1.5rem;
    justify-content: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
    box-shadow: 0 0 10px #00ff88;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Terminal */
.terminal-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--primary);
    font-weight: bold;
}

.command {
    color: #00ff88;
}

.terminal-output {
    color: var(--text);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.terminal-output .highlight {
    color: var(--primary);
    font-weight: bold;
}

.frameworks-list {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding-left: 1.5rem;
}

.fw-tag {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 0.3rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.cursor-blink {
    color: var(--primary);
    animation: cursor-blink 0.8s steps(1) infinite;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.skill-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.skill-ring {
    fill: none;
    stroke: var(--border);
    stroke-width: 3;
}

.skill-ring-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
}

.skill-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.skill-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-bright);
    margin-bottom: 0.8rem;
}

.skill-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.skill-bar {
    width: 100%;
    height: 3px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Frameworks */
.frameworks-section {
    text-align: center;
}

.sub-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 5px;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.frameworks-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.framework-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.framework-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.fw-icon {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.framework-card span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: left 0.6s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(180, 0, 255, 0.05));
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-icon {
    font-size: 3rem;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-view {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.8rem 1.5rem;
}

.project-info {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 0.25rem 0.6rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-bright);
    margin-bottom: 0.8rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--text-dim);
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}

.contact-heading .highlight {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: rgba(0, 240, 255, 0.3);
}

.method-icon {
    color: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-dim);
}

.method-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-bright);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    display: block;
}

.form-input {
    width: 100%;
    padding: 0.8rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    cursor: none;
}

.form-input:focus {
    border-color: var(--primary);
}

.form-input::placeholder {
    color: var(--text-dim);
    opacity: 0.5;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: var(--glow-primary);
}

.form-input:focus ~ .input-line {
    width: 100%;
}

.form-btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Footer */
.footer {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.footer-line {
    width: 40px;
    height: 1px;
    background: var(--primary);
    margin: 1.5rem auto 0;
    opacity: 0.3;
}

/* Section Animations */
.section .section-header,
.section .about-grid,
.section .skills-grid,
.section .skill-card,
.section .frameworks-section,
.section .projects-grid,
.section .project-card,
.section .contact-grid {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible .section-header,
.section.visible .about-grid,
.section.visible .skills-grid,
.section.visible .skill-card,
.section.visible .frameworks-section,
.section.visible .projects-grid,
.section.visible .project-card,
.section.visible .contact-grid {
    opacity: 1;
    transform: translateY(0);
}

.section.visible .skill-card:nth-child(1) { transition-delay: 0.1s; }
.section.visible .skill-card:nth-child(2) { transition-delay: 0.2s; }
.section.visible .skill-card:nth-child(3) { transition-delay: 0.3s; }
.section.visible .skill-card:nth-child(4) { transition-delay: 0.4s; }
.section.visible .skill-card:nth-child(5) { transition-delay: 0.5s; }
.section.visible .skill-card:nth-child(6) { transition-delay: 0.6s; }

.section.visible .project-card:nth-child(1) { transition-delay: 0.1s; }
.section.visible .project-card:nth-child(2) { transition-delay: 0.2s; }
.section.visible .project-card:nth-child(3) { transition-delay: 0.3s; }
.section.visible .project-card:nth-child(4) { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .frameworks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    .cursor-dot, .cursor-ring {
        display: none;
    }
    .nav-links {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .mobile-menu {
        display: flex;
    }
    .nav {
        padding: 1rem 1.5rem;
    }
    .hero-glitch {
        font-size: 5rem;
    }
    .hero-subtitle-line {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 2rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .frameworks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }
    .section {
        padding: 5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-glitch {
        font-size: 3.5rem;
        letter-spacing: 8px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .frameworks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
