:root {
    --bg-color: #050508;
    --card-bg: rgba(20, 20, 30, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.4);
    --secondary: #7000ff;
    --secondary-glow: rgba(112, 0, 255, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --heading-color: #ffffff;
    --nav-bg: rgba(5, 5, 8, 0.9);
    --nav-mobile-bg: rgba(5, 5, 8, 0.98);
}

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.1);
    --text-main: #1e293b;
    --text-muted: #475569;
    --primary: #0076cc;
    --primary-glow: rgba(0, 118, 204, 0.2);
    --secondary: #6000d0;
    --secondary-glow: rgba(96, 0, 208, 0.2);
    --heading-color: #0f172a;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-mobile-bg: rgba(250, 250, 252, 0.98);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

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

.bg-glow {
    position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.5;
    animation: drift 20s infinite alternate; width: 600px; height: 600px;
}
.bg-glow-1 { top: -10%; left: -10%; background: radial-gradient(circle, var(--secondary-glow) 0%, rgba(0,0,0,0) 70%); }
.bg-glow-2 { bottom: -10%; right: -10%; background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%); animation-delay: -10s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 50px) scale(1.1); } }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--heading-color); }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--text-main); text-shadow: 0 0 8px var(--primary-glow); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

.btn { display: inline-block; padding: 0.8rem 1.8rem; border-radius: 4px; font-family: var(--font-mono); font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; }
.btn-primary { background: transparent; color: var(--primary); border: 1px solid var(--primary); box-shadow: 0 0 10px rgba(0, 240, 255, 0.1); }
.btn-primary:hover { background: rgba(0, 240, 255, 0.1); box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); color: var(--primary); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--text-muted); }
.btn-secondary:hover { border-color: var(--text-main); color: var(--bg-color); background: var(--text-main); transform: translateY(-2px); }

.glass-card { background: var(--card-bg); backdrop-filter: blur(10px); border: 1px solid var(--card-border); border-radius: 12px; padding: 2rem; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }

.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1.5rem 0; transition: all 0.3s ease; }
.navbar.scrolled { padding: 1rem 0; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--card-border); }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-mono); font-weight: 700; font-size: 1.5rem; color: var(--primary); }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); }
.nav-links a:hover { color: var(--primary); }
.nav-controls { display: flex; align-items: center; gap: 1.5rem; }
.theme-toggle { background: transparent; border: none; color: var(--text-main); font-size: 1.3rem; cursor: pointer; transition: color 0.3s ease; }
.theme-toggle:hover { color: var(--primary); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

.section-padding { padding: 100px 0; }
.section-title { font-size: 2rem; margin-bottom: 3rem; display: flex; align-items: center; font-family: var(--font-mono); color: var(--primary); }
.section-title .title-text { font-family: var(--font-heading); color: var(--heading-color); margin-left: 10px; }
.section-title::after { content: ''; flex-grow: 1; height: 1px; background: var(--card-border); margin-left: 20px; }

.hero { min-height: 100vh; display: flex; align-items: center; }
.hero-content { display: flex; justify-content: space-between; align-items: center; gap: 4rem; width: 100%; }
.hero-text { flex: 1; }
.hero-image { flex: 1; display: flex; justify-content: center; position: relative; }
.image-wrapper { position: relative; width: 320px; height: 420px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); border: 2px solid var(--primary); transition: transform 0.5s ease; }
.image-wrapper::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 20px var(--primary-glow); z-index: 1; pointer-events: none; }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.image-wrapper:hover { transform: translateY(-10px); box-shadow: 0 30px 50px rgba(0, 240, 255, 0.3); }
.image-wrapper:hover img { transform: scale(1.05); }
.hero-text .greeting { font-family: var(--font-mono); color: var(--primary); margin-bottom: 1rem; }
.hero-text h1 { font-size: 5rem; line-height: 1.1; margin-bottom: 1rem; color: var(--heading-color); }
.hero-text h2 { font-size: 1.4rem; color: var(--text-muted); margin-bottom: 1.5rem; position: relative; line-height: 1.6; }
.hero-text .location { font-family: var(--font-mono); color: var(--text-muted); margin-bottom: 2rem; display: flex; align-items: center; gap: 0.5rem; }
.cta-group { display: flex; gap: 1rem; margin-bottom: 2.5rem; }
.social-links { display: flex; gap: 1.5rem; }
.social-links a { color: var(--text-muted); font-size: 1.5rem; }
.social-links a:hover { color: var(--primary); transform: translateY(-3px); }

.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.skill-category h3 { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem; font-size: 1.2rem; }
.skill-category h3 i { color: var(--primary); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tag { background: rgba(0, 240, 255, 0.05); border: 1px solid rgba(0, 240, 255, 0.2); padding: 0.4rem 0.8rem; border-radius: 50px; font-size: 0.85rem; font-family: var(--font-mono); transition: all 0.3s ease; }
.tag:hover { background: rgba(0, 240, 255, 0.15); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,240,255,0.1); }

.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 20px;}
.timeline::before { content: ''; position: absolute; top: 0; left: 26px; height: 100%; width: 2px; background: var(--card-border); }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 3rem; }
.timeline-dot { position: absolute; left: 20px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary-glow); z-index: 2; }
.hover-glow:hover { border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 20px rgba(0, 240, 255, 0.05) inset; transform: translateY(-5px); }
.timeline-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 0.5rem; gap: 1rem; }
.date { font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary); background: rgba(0, 240, 255, 0.1); padding: 0.3rem 0.8rem; border-radius: 50px; }
.company { color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.achievement { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; color: #ffd700; background: rgba(255, 215, 0, 0.1); padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.9rem; border: 1px solid rgba(255, 215, 0, 0.2); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.project-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.project-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.project-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.project-icon { font-size: 2.5rem; color: var(--primary); }
.project-links a { font-size: 1.2rem; color: var(--text-muted); }
.project-links a:hover { color: var(--primary); }
.project-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }
.project-overview { color: var(--text-main); margin-bottom: 1rem; }
.project-features ul { list-style-position: inside; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 1rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--card-border); }

.contact-content { text-align: center; max-width: 800px; margin: 0 auto; }
.contact-info-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin: 2.5rem 0; }
.contact-item { display: flex; align-items: center; gap: 1rem; font-size: 1.05rem; }
.contact-item i { color: var(--primary); font-size: 1.3rem; }

footer { padding: 3rem 0; text-align: center; border-top: 1px solid var(--card-border); margin-top: 5rem; }
.footer-socials { justify-content: center; margin-bottom: 1.5rem; }
footer p { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }

.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 1s ease forwards; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
.fade-in-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-scroll.visible { opacity: 1; transform: translateY(0); }

/* Simplistic glitch */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.8; }
.glitch::before { left: 2px; text-shadow: -1px 0 red; clip: rect(44px, 450px, 56px, 0); animation: glitch-anim 5s infinite linear alternate-reverse; }
.glitch::after { left: -2px; text-shadow: -1px 0 blue; clip: rect(44px, 450px, 56px, 0); animation: glitch-anim2 5s infinite linear alternate-reverse; }
@keyframes glitch-anim { 0% { clip: rect(12px, 9999px, 59px, 0); } 100% { clip: rect(11px, 9999px, 87px, 0); } }
@keyframes glitch-anim2 { 0% { clip: rect(65px, 9999px, 12px, 0); } 100% { clip: rect(11px, 9999px, 87px, 0); } }

@media (max-width: 900px) { 
    .hero-text h1 { font-size: 3.5rem; } 
    .hero-content { flex-direction: column; text-align: center; margin-top: 6rem; gap: 3rem; }
    .hero-text .location { justify-content: center; }
    .cta-group { justify-content: center; }
}
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .section-padding { padding: 60px 0; }
    .hamburger { display: block; z-index: 1001; position: relative; }
    .nav-links { position: fixed; right: -100%; top: 0; flex-direction: column; background: var(--nav-mobile-bg); width: 100%; height: 100vh; justify-content: center; align-items: center; transition: right 0.4s ease; z-index: 1000; border-left: 1px solid var(--card-border); gap: 3rem; }
    .nav-links.active { right: 0; }
    .timeline::before { left: 10px; }
    .timeline-item { padding-left: 30px; }
    .timeline-dot { left: 4px; top: 18px; width: 10px; height: 10px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text h2 { font-size: 1.1rem; }
    .cta-group { flex-direction: column; width: 100%; }
    .btn { text-align: center; }
    .contact-info-list { flex-direction: column; align-items: center; gap: 1.5rem; }
    .contact-item { font-size: 0.95rem; word-break: break-word; }
}
