:root {
    --bg: #0a0a0a;
    --bg-dark: #050505;
    --text: #e0e0e0;
    --text-muted: #888;
    --primary: #00ff88;
    --primary-dim: #00cc6a;
    --secondary: #00d4ff;
    --accent: #ff0055;
    --accent-2: #8b5cf6;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --mono: 'Space Mono', monospace;
    --sans: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
    cursor: none;
}

::selection {
    background: var(--primary);
    color: var(--bg);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dim);
    border-radius: 4px;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-glitch {
    font-family: var(--mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    animation: loaderGlitch 1s infinite;
}

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

.loader-glitch::before {
    color: var(--accent);
    animation: glitchBefore 0.3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.loader-glitch::after {
    color: var(--secondary);
    animation: glitchAfter 0.3s infinite;
    clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
}

.loader-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 2rem;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.loader-percent {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

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

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    opacity: 0.03;
    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");
    background-repeat: repeat;
    animation: noiseMove 0.5s steps(10) infinite;
}

/* Scanlines */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 9996;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
    background: rgba(255, 0, 85, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    position: relative;
}

.logo-dot {
    color: var(--primary);
    animation: pulse 2s infinite;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--accent);
    overflow: hidden;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.3s ease;
}

.nav-link:hover::before {
    opacity: 0.7;
    animation: navGlitch 0.3s infinite;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

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

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

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

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

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

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-family: var(--mono);
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 8%;
    gap: 4rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.08;
    filter: blur(100px);
    animation: floatBlob 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
    opacity: 0.06;
    filter: blur(100px);
    animation: floatBlob 12s ease-in-out infinite reverse;
}

.hero-subtitle {
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.8s ease forwards 0.5s;
}

.bracket {
    color: var(--accent);
    font-weight: 700;
}

.glitch-title {
    position: relative;
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.7s;
}

.glitch-layer {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch-2 {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    animation: glitchMove1 3s infinite;
    clip-path: inset(0 0 60% 0);
    opacity: 0.8;
}

.glitch-3 {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--secondary);
    -webkit-text-fill-color: var(--secondary);
    animation: glitchMove2 2.5s infinite;
    clip-path: inset(60% 0 0 0);
    opacity: 0.8;
}

.typing-wrapper {
    font-family: var(--mono);
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    min-height: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.9s;
}

.typing-prefix {
    color: var(--primary);
}

.cursor-blink {
    color: var(--primary);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero-description .highlight {
    color: var(--primary);
    font-weight: 600;
}

.reveal-text {
    animation: slideUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 1.1s; }
.delay-2 { animation-delay: 1.3s; }

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.15);
}

.btn-glitch {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover .btn-glitch {
    animation: btnGlitch 0.3s ease;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 1s ease forwards 1s;
}

.image-frame {
    position: relative;
    width: 350px;
    height: 450px;
}

.frame-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    z-index: 2;
    animation: cornerPulse 2s infinite;
}

.frame-corner.tl { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.frame-corner.tr { top: -10px; right: -10px; border-left: none; border-bottom: none; }
.frame-corner.bl { bottom: -10px; left: -10px; border-right: none; border-top: none; }
.frame-corner.br { bottom: -10px; right: -10px; border-left: none; border-top: none; }

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(30%) contrast(1.1);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

.profile-img:hover {
    filter: grayscale(0%) contrast(1.2);
    transform: scale(1.02);
}

.img-glitch-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        45deg,
        rgba(0, 255, 136, 0.1) 0%,
        transparent 50%,
        rgba(255, 0, 85, 0.1) 100%
    );
    mix-blend-mode: overlay;
    animation: imgGlitch 4s infinite;
    pointer-events: none;
    border-radius: 8px;
}

.floating-elements {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    animation: float 6s ease-in-out infinite;
}

.icon-1 { top: 10%; left: -20%; animation-delay: 0s; }
.icon-2 { bottom: 20%; right: -15%; animation-delay: 2s; }
.icon-3 { top: 50%; left: -25%; animation-delay: 4s; }

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s infinite;
}

.scroll-hint span {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 3px;
}

/* Sections */
section {
    padding: 120px 8%;
    position: relative;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    white-space: nowrap;
}

.title-number {
    font-family: var(--mono);
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 0.5rem;
}

.accent {
    color: var(--primary);
}

/* Glass Card */
.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.glass:hover {
    border-color: rgba(0, 255, 136, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    padding: 2.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 1.8rem;
    color: var(--primary);
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-card strong {
    color: var(--text);
}

.edu-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.edu-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.edu-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.edu-status {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.edu-year {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.interest-item:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.interest-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.interest-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-category {
    padding: 2rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.category-title i {
    color: var(--primary);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.skill-percent {
    color: var(--primary);
    font-family: var(--mono);
}

.bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    width: 0%;
    transition: width 1.5s ease;
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

/* Orbit Animation */
.orbit-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-size: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    animation: orbit 10s linear infinite;
}

.orbit-1 { animation-duration: 8s; }
.orbit-2 { animation-duration: 12s; animation-delay: -3s; }
.orbit-3 { animation-duration: 10s; animation-delay: -6s; }
.orbit-4 { animation-duration: 14s; animation-delay: -9s; }

/* Contact Section */
.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-card {
    max-width: 700px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.05) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.social-link {
    width: 55px;
    height: 55px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: var(--bg);
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    padding: 3rem 8%;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-year {
    font-family: var(--mono);
    font-size: 0.85rem;
}

/* Scroll Reveal */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

[data-scroll-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes loaderGlitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitchBefore {
    0% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
    40% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 0); }
    100% { clip-path: inset(50% 0 30% 0); transform: translate(1px, 0); }
}

@keyframes glitchAfter {
    0% { clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
    20% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 0); }
    40% { clip-path: inset(30% 0 40% 0); transform: translate(2px, 0); }
    60% { clip-path: inset(5% 0 80% 0); transform: translate(-2px, 0); }
    80% { clip-path: inset(70% 0 10% 0); transform: translate(1px, 0); }
    100% { clip-path: inset(30% 0 50% 0); transform: translate(-1px, 0); }
}

@keyframes noiseMove {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
    100% { transform: translate(5%, 0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

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

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes scaleIn {
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes glitchMove1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-3px, -2px); }
    20% { transform: translate(3px, 1px); }
    30% { transform: translate(-2px, 3px); }
    40% { transform: translate(2px, -1px); }
    50% { transform: translate(-1px, 2px); }
}

@keyframes glitchMove2 {
    0%, 100% { transform: translate(0); }
    15% { transform: translate(2px, 3px); }
    30% { transform: translate(-3px, -1px); }
    45% { transform: translate(1px, -2px); }
    60% { transform: translate(-2px, 2px); }
    75% { transform: translate(3px, -3px); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes scrollLine {
    0% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    50% { opacity: 0.5; transform: scaleY(0.5); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
}

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

@keyframes imgGlitch {
    0%, 95%, 100% { opacity: 0; }
    96% { opacity: 0.5; transform: translateX(-5px); }
    97% { opacity: 0.3; transform: translateX(5px); }
    98% { opacity: 0.6; transform: translateY(-3px); }
    99% { opacity: 0.2; transform: translateX(3px); }
}

@keyframes orbit {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content { order: 2; }
    .hero-visual { order: 1; }

    .hero-description { margin: 0 auto 2.5rem; }
    .hero-buttons { justify-content: center; }

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

    .glitch-title { font-size: 5rem; }
    .image-frame { width: 280px; height: 360px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .glitch-title { font-size: 3.5rem; }
    .section-title h2 { font-size: 1.8rem; }

    .contact-card { padding: 2.5rem; }

    .cursor-dot, .cursor-ring { display: none !important; }
    * { cursor: auto !important; }
}

@media (max-width: 480px) {
    .glitch-title { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .interest-grid { grid-template-columns: 1fr; }
}
