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

:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #5a4bd1;
    --accent: #00cec9;
    --accent-light: #81ecec;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a2e;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #5a5a70;
    --border: rgba(108, 92, 231, 0.15);
    --glow: rgba(108, 92, 231, 0.4);
    --gradient-1: linear-gradient(135deg, #6c5ce7, #00cec9);
    --gradient-2: linear-gradient(135deg, #a29bfe, #6c5ce7);
    --font-main: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--primary) var(--bg-dark); }
body { font-family: var(--font-body); background: var(--bg-dark); color: var(--text-primary); overflow-x: hidden; cursor: none; }

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

.intro-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.intro-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-matrix {
    position: absolute;
    inset: 0;
    opacity: 0.25;
}

.intro-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hacker-figure {
    width: 130px;
    animation: hackerFloat 2s ease-in-out infinite, hackerFadeIn 0.8s ease forwards;
    filter: drop-shadow(0 0 20px rgba(108, 92, 231, 0.8));
}

@keyframes hackerFadeIn {
    from { opacity: 0; transform: scale(0.5) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes hackerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.welcome-text {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: 0.3em;
    color: #fff;
}

.glitch-text {
    position: relative;
    display: inline-block;
    animation: glitchMain 2s infinite;
}

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

.glitch-text::before {
    color: #00cec9;
    animation: glitchTop 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch-text::after {
    color: #6c5ce7;
    animation: glitchBottom 2.5s infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchMain {
    0%, 90%, 100% { text-shadow: 0 0 20px rgba(108,92,231,0.8), 0 0 40px rgba(108,92,231,0.4); }
    92% { text-shadow: -3px 0 #00cec9, 3px 0 #6c5ce7; }
    94% { text-shadow: 3px 0 #00cec9, -3px 0 #6c5ce7; }
    96% { text-shadow: none; }
}

@keyframes glitchTop {
    0%, 90%, 100% { transform: translate(0, 0); }
    92% { transform: translate(-3px, -2px); }
    94% { transform: translate(3px, 1px); }
}

@keyframes glitchBottom {
    0%, 85%, 100% { transform: translate(0, 0); }
    87% { transform: translate(3px, 2px); }
    89% { transform: translate(-3px, -1px); }
}

.intro-sub {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.95rem;
    letter-spacing: 2px;
    animation: blink 1s step-end infinite;
}

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

.intro-bar {
    width: 240px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.intro-bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 2px;
    width: 0;
    transition: width 2.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#bgCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: particleFly var(--dur, 8s) var(--delay, 0s) infinite linear;
}

@keyframes particleFly {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: var(--op, 0.6); }
    90% { opacity: var(--op, 0.6); }
    100% { transform: translateY(-100px) translateX(var(--dx, 50px)); opacity: 0; }
}

.cursor-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
}

.cursor-ring {
    width: 40px; height: 40px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
}

.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--accent); }

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 0.8rem 3rem;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo .logo-text {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; gap: 2.5rem; }

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
}

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

.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.nav-toggle span { width: 28px; height: 2px; background: var(--text-primary); transition: all 0.3s; border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 3rem 3rem;
    position: relative;
    z-index: 1;
    gap: 4rem;
}

.hero-content { flex: 1; max-width: 600px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.badge-dot { width: 8px; height: 8px; background: #00ff88; border-radius: 50%; animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }

.hero-title {
    font-family: var(--font-main);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line { display: block; overflow: hidden; }

.word-reveal {
    display: inline-block;
    transform: translateY(100%);
    animation: wordReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.title-line:nth-child(2) .word-reveal { animation-delay: 0.2s; }

@keyframes wordReveal { to { transform: translateY(0); } }

.name-glitch {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 100%;
    animation: wordReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               nameShift 4s ease infinite 1s;
    position: relative;
}

@keyframes nameShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.snake-char {
    display: inline-block;
    animation: snakeWave 2s ease-in-out infinite;
}

@keyframes snakeWave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(5px) rotate(2deg); }
}

.hero-subtitle-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.type-prefix { color: var(--primary-light); }
.typing-cursor { animation: cursorBlink 0.8s infinite; color: var(--accent); }
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: none;
    border: none;
    font-family: var(--font-body);
}

.btn-primary { background: var(--gradient-1); color: white; box-shadow: 0 4px 20px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow); }
.btn-primary i { transition: transform 0.3s; }
.btn-primary:hover i { transform: translateX(4px); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); background: rgba(108, 92, 231, 0.1); transform: translateY(-2px); }

.hero-stats {
    display: flex;
    gap: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.1s forwards;
}

.stat-item { text-align: center; }
.stat-number { display: block; font-family: var(--font-main); font-size: 2rem; font-weight: 700; }
.stat-number::after { content: '+'; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.hero-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInRight 1s ease 0.5s forwards;
}

@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

.profile-container { position: relative; width: 350px; height: 350px; }

.profile-ring {
    position: absolute;
    inset: -15px;
    border: 2px solid var(--border);
    border-radius: 50%;
    animation: spinRing 20s linear infinite;
}

.profile-ring::before {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow);
}

.ring-2 { inset: -35px; animation-direction: reverse; animation-duration: 30s; border-style: dashed; }
@keyframes spinRing { to { transform: rotate(360deg); } }

.profile-image {
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img { width: 80%; height: 80%; object-fit: contain; }

.floating-badge {
    position: absolute;
    width: 50px; height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    animation: floatBadge 3s ease-in-out infinite;
}

.badge-1 { top: 20px; right: -10px; color: #e44d26; animation-delay: 0s; }
.badge-2 { bottom: 40px; left: -20px; color: #68a063; animation-delay: 1s; }
.badge-3 { bottom: -10px; right: 30px; color: #f7df1e; animation-delay: 2s; }

@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.scroll-indicator {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.5s forwards;
}

.mouse { width: 24px; height: 38px; border: 2px solid var(--text-muted); border-radius: 12px; position: relative; }
.mouse-wheel {
    width: 3px; height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel { 0% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(12px); } }
.scroll-indicator span { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.section-container { max-width: 1100px; margin: 0 auto; padding: 6rem 2rem; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag { font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary-light); display: block; margin-bottom: 0.5rem; }
.section-title { font-family: var(--font-main); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.title-underline { width: 60px; height: 4px; background: var(--gradient-1); border-radius: 2px; margin: 1rem auto 0; }

.reveal-text { opacity: 0; transform: translateY(20px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-text.visible { opacity: 1; transform: translateY(0); }
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.about-grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: 4rem; align-items: center; margin-bottom: 4rem; }

.about-img-wrapper {
    position: relative; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--border); background: var(--bg-card);
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}

.about-img-wrapper img { width: 80%; height: 80%; object-fit: contain; }
.img-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(108,92,231,0.1), transparent); }
.about-text { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.about-text strong { color: var(--primary-light); }
.about-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.info-item { padding: 1rem; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); }
.info-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.info-value { font-weight: 600; font-size: 0.95rem; }
.info-value.available { color: #00ff88; }

.work-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.work-showcase::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-1);
}

.work-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.work-img-wrapper img { width: 100%; height: auto; display: block; }
.work-img-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(108,92,231,0.15), transparent 70%);
}

.work-title {
    font-family: var(--font-main);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-text p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }

.work-tags { display: flex; flex-direction: column; gap: 0.6rem; }
.work-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.work-tags span i { color: var(--primary-light); }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(108,92,231,0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover::after { opacity: 1; }
.skill-card:hover { background: var(--bg-card-hover); border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(108, 92, 231, 0.15); }

.skill-icon {
    width: 70px; height: 70px;
    margin: 0 auto 1.2rem;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--primary-light);
    transition: all 0.3s;
}

.skill-card:hover .skill-icon { background: var(--gradient-1); color: white; transform: scale(1.1) rotate(5deg); }
.skill-card h3 { font-family: var(--font-main); font-size: 1.2rem; margin-bottom: 1rem; }

.skill-bar-wrapper { margin-bottom: 1rem; }
.skill-bar { width: 100%; height: 8px; background: rgba(108, 92, 231, 0.15); border-radius: 4px; overflow: hidden; }

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-progress.animated { width: var(--target-width); }
.skill-percent { position: absolute; right: 0; top: -22px; font-size: 0.75rem; font-weight: 600; color: var(--primary-light); }
.skill-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

.tech-marquee { overflow: hidden; padding: 1.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-track { display: flex; width: max-content; }
.marquee-content { display: flex; gap: 2rem; animation: marqueeAnim 20s linear infinite; }

.marquee-content span {
    padding: 0.6rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.3s;
}

.marquee-content span:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(108, 92, 231, 0.1); }
@keyframes marqueeAnim { from { transform: translateX(0); } to { transform: translateX(-50%); } }

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(108, 92, 231, 0.15); }

.project-image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-dark)); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--primary); }
.project-overlay { position: absolute; inset: 0; background: rgba(108, 92, 231, 0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.project-card:hover .project-overlay { opacity: 1; }
.project-link { width: 50px; height: 50px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; text-decoration: none; transition: transform 0.3s; }
.project-link:hover { transform: scale(1.1); }
.project-info { padding: 1.5rem; }
.project-info h3 { font-family: var(--font-main); font-size: 1.2rem; margin-bottom: 0.5rem; }
.project-info p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-tags span { padding: 0.3rem 0.8rem; background: rgba(108, 92, 231, 0.1); border: 1px solid var(--border); border-radius: 20px; font-size: 0.75rem; color: var(--primary-light); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-desc { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.contact-card {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.contact-card:hover { border-color: var(--primary); background: var(--bg-card-hover); transform: translateX(5px); }
.contact-card-icon { width: 48px; height: 48px; background: rgba(108, 92, 231, 0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary-light); flex-shrink: 0; }
.contact-card-icon.whatsapp { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.contact-card-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-card-value { font-weight: 500; font-size: 0.95rem; }

.social-links { display: flex; gap: 1rem; }
.social-link { width: 45px; height: 45px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); text-decoration: none; font-size: 1.1rem; transition: all 0.3s; }
.social-link:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(108, 92, 231, 0.1); transform: translateY(-3px); }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { position: relative; }

.form-group input, .form-group textarea {
    width: 100%; padding: 1rem 0;
    background: transparent; border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary); font-size: 1rem;
    font-family: var(--font-body); outline: none;
    transition: border-color 0.3s;
}

.form-group textarea { resize: none; }
.form-group label { position: absolute; top: 1rem; left: 0; color: var(--text-muted); font-size: 0.95rem; pointer-events: none; transition: all 0.3s; }
.form-group input:focus ~ label, .form-group input:valid ~ label, .form-group textarea:focus ~ label, .form-group textarea:valid ~ label { top: -0.8rem; font-size: 0.75rem; color: var(--primary-light); }
.form-line { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gradient-1); transition: width 0.4s; }
.form-group input:focus ~ .form-line, .form-group textarea:focus ~ .form-line { width: 100%; }
.btn-submit { align-self: flex-start; cursor: none; }

.footer { position: relative; z-index: 1; padding: 3rem 2rem; text-align: center; border-top: 1px solid var(--border); }
.footer-logo { font-family: var(--font-main); font-size: 1.5rem; font-weight: 700; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; margin-bottom: 0.5rem; }
.footer p { color: var(--text-muted); font-size: 0.85rem; }
.footer-year { margin-top: 0.3rem; }

.chat-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 2000; }

.chat-toggle {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B0000, #cc0000);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(139, 0, 0, 0.5);
    transition: all 0.3s;
    position: relative;
}

.chat-toggle:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(200, 0, 0, 0.6); }
.worm-logo svg, .worm-logo-sm svg { width: 36px; height: 36px; }
.worm-logo-sm svg { width: 28px; height: 28px; }

.chat-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #ff2222;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,34,34,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(255,34,34,0); }
}

.chat-window {
    position: absolute;
    bottom: 75px; right: 0;
    width: 380px; max-height: 500px;
    background: var(--bg-card);
    border: 1px solid rgba(139,0,0,0.3);
    border-radius: 20px;
    display: none; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,0,0,0.15);
    animation: chatSlideUp 0.3s ease;
}

.chat-window.open { display: flex; }
@keyframes chatSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.chat-header {
    padding: 1rem 1.2rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(139,0,0,0.2);
    background: rgba(139, 0, 0, 0.08);
}

.chat-header-info { display: flex; align-items: center; gap: 0.8rem; }
.chat-header h4 { font-family: var(--font-main); font-size: 1rem; }
.chat-status { font-size: 0.7rem; color: #ff4444; }
.chat-close { background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; transition: color 0.3s; }
.chat-close:hover { color: var(--text-primary); }

.chat-messages { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; max-height: 350px; }

.chat-msg { display: flex; gap: 0.6rem; align-items: flex-start; animation: msgFadeIn 0.3s ease; }
@keyframes msgFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg.user { flex-direction: row-reverse; }
.msg-avatar svg { width: 30px; height: 30px; flex-shrink: 0; }

.msg-bubble { max-width: 80%; padding: 0.8rem 1rem; border-radius: 16px; font-size: 0.88rem; line-height: 1.5; }
.chat-msg.bot .msg-bubble { background: rgba(139, 0, 0, 0.1); border: 1px solid rgba(139,0,0,0.2); color: var(--text-primary); border-bottom-left-radius: 4px; }
.chat-msg.user .msg-bubble { background: linear-gradient(135deg, #8B0000, #cc0000); color: white; border-bottom-right-radius: 4px; }

.chat-input-wrapper { padding: 0.8rem 1rem; border-top: 1px solid rgba(139,0,0,0.2); display: flex; gap: 0.5rem; }
.chat-input { flex: 1; padding: 0.7rem 1rem; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary); font-size: 0.9rem; outline: none; font-family: var(--font-body); transition: border-color 0.3s; }
.chat-input:focus { border-color: #8B0000; }

.chat-send { width: 42px; height: 42px; background: linear-gradient(135deg, #8B0000, #cc0000); border: none; border-radius: 12px; color: white; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-send:hover { transform: scale(1.05); }

.typing-indicator { display: flex; gap: 4px; padding: 0.8rem 1rem; }
.typing-indicator span { width: 7px; height: 7px; background: #cc0000; border-radius: 50%; animation: typingBounce 1.4s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-8px); } }

@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding-top: 8rem; }
    .hero-content { max-width: 100%; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { flex: none; }
    .profile-container { width: 250px; height: 250px; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-img-wrapper { max-width: 300px; margin: 0 auto; }
    .work-showcase { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 1.5rem; }
    .navbar.scrolled { padding: 0.6rem 1.5rem; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background: rgba(10, 10, 15, 0.98); backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-left: 1px solid var(--border); }
    .nav-links.open { right: 0; }
    .nav-link { font-size: 1.2rem; }
    .nav-toggle { display: flex; }
    .hero { padding: 7rem 1.5rem 3rem; }
    .hero-subtitle-wrapper { justify-content: center; }
    .hero-stats { gap: 2rem; }
    .section-container { padding: 4rem 1.5rem; }
    .about-info { grid-template-columns: 1fr; }
    .chat-window { width: calc(100vw - 2rem); right: -0.5rem; }
    .cursor-dot, .cursor-ring { display: none; }
    body { cursor: auto; }
    .btn, .btn-submit { cursor: pointer; }
    .scroll-indicator { display: none; }
    .intro-sub { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .stat-number { font-size: 1.5rem; }
    .profile-container { width: 200px; height: 200px; }
    .welcome-text { font-size: 2rem; }
}