/* ===================== RESET & BASE ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --primary: #7c3aed;
  --primary2: #a855f7;
  --accent: #06b6d4;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --gradient: linear-gradient(135deg, #7c3aed, #a855f7, #06b6d4);
  --gradient2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 25px 50px rgba(124,58,237,0.15);
  --radius: 20px;
  --nav-bg: rgba(10,10,15,0.85);
}

/* ===================== LIGHT MODE ===================== */
body.light {
  --bg: #f0f4ff;
  --bg2: #e8eeff;
  --glass: rgba(255,255,255,0.7);
  --glass-border: rgba(100,80,200,0.15);
  --text: #1a1a2e;
  --text-muted: #5a6080;
  --shadow: 0 25px 50px rgba(124,58,237,0.12);
  --nav-bg: rgba(240,244,255,0.9);
}
body.light .orb { opacity: 0.07; }
body.light .navbar { background: var(--nav-bg); border-bottom: 1px solid rgba(124,58,237,0.15); }
body.light .skill-pill { background: rgba(124,58,237,0.08); color: var(--text); }
body.light .info-card,
body.light .skill-category,
body.light .contact-item,
body.light .project-card { background: rgba(255,255,255,0.8); box-shadow: 0 4px 20px rgba(100,80,200,0.08); }
body.light .form-group input,
body.light .form-group textarea { background: rgba(255,255,255,0.9); color: var(--text); border-color: rgba(124,58,237,0.2); }
body.light .footer { background: rgba(230,235,255,0.8); }
body.light .floating-card { background: rgba(255,255,255,0.85); color: var(--text); }
body.light .avatar { background: var(--bg2); }


html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===================== ANIMATED BG ===================== */
.bg-orbs {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15; animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width: 500px; height: 500px; background: #7c3aed; top: -100px; left: -100px; animation-delay: 0s; }
.orb2 { width: 400px; height: 400px; background: #06b6d4; bottom: -100px; right: -100px; animation-delay: 3s; }
.orb3 { width: 300px; height: 300px; background: #a855f7; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 6s; }

@keyframes orbFloat {
  0%,100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.1) translateY(-30px); }
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s;
}
.navbar.scrolled { padding: 0.8rem 5%; }

/* Nav Right Group */
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Hamburger Button — hidden on desktop */
.nav-hamburger {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border);
  cursor: pointer; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text); transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.nav-hamburger:hover {
  background: rgba(124,58,237,0.15);
  border-color: var(--primary2);
  color: var(--primary2);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 8, 18, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
body.light .mobile-menu {
  background: rgba(240, 244, 255, 0.97);
}

/* Close Button */
.mobile-menu-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--text); transition: all 0.3s;
}
.mobile-menu-close:hover {
  background: rgba(124,58,237,0.2);
  border-color: var(--primary2);
  color: var(--primary2);
  transform: rotate(90deg);
}

/* Mobile Nav Links */
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.mobile-nav-links li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.open .mobile-nav-links li:nth-child(1) { opacity:1; transform:translateY(0); transition-delay: 0.1s; }
.mobile-menu.open .mobile-nav-links li:nth-child(2) { opacity:1; transform:translateY(0); transition-delay: 0.18s; }
.mobile-menu.open .mobile-nav-links li:nth-child(3) { opacity:1; transform:translateY(0); transition-delay: 0.26s; }
.mobile-menu.open .mobile-nav-links li:nth-child(4) { opacity:1; transform:translateY(0); transition-delay: 0.34s; }

.mobile-nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}
.mobile-nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s;
}
.mobile-nav-links a:hover { color: var(--primary2); }
.mobile-nav-links a:hover::after { width: 100%; }

/* CTA inside mobile menu */
.mobile-menu-cta {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease 0.42s, transform 0.4s ease 0.42s;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
}
.mobile-menu.open .mobile-menu-cta {
  opacity: 1;
  transform: translateY(0);
}


/* Theme Toggle Button */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all 0.3s;
  backdrop-filter: blur(10px);
}
/* Dark mode — sun icon: warm amber/gold */
.theme-toggle #theme-icon {
  color: #f59e0b;
  filter: drop-shadow(0 0 4px rgba(245,158,11,0.6));
  transition: color 0.3s, filter 0.3s;
}
/* Light mode — moon icon: soft indigo */
body.light .theme-toggle #theme-icon {
  color: #6366f1;
  filter: drop-shadow(0 0 4px rgba(99,102,241,0.5));
}
.theme-toggle:hover {
  background: rgba(124,58,237,0.15);
  border-color: var(--primary2);
  transform: rotate(20deg) scale(1.1);
  box-shadow: 0 0 15px rgba(124,58,237,0.3);
}


.nav-logo {
  font-size: 1.6rem; font-weight: 900; letter-spacing: -1px;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.dot { color: #a855f7; }

.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gradient); border-radius: 2px; transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 0.6rem 1.4rem; background: var(--gradient); border-radius: 50px;
  color: white; text-decoration: none; font-size: 0.85rem; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.5); }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: space-between;
  padding: 8rem 5% 4rem; position: relative; z-index: 1; gap: 3rem;
}
.hero-content { flex: 1; max-width: 600px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1rem; border-radius: 50px;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.3);
  color: var(--accent); font-size: 0.85rem; font-weight: 500;
  margin-bottom: 1.5rem; animation: fadeInUp 0.6s ease;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.1;
  margin-bottom: 0.8rem; animation: fadeInUp 0.7s ease;
}
.gradient-text {
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.2rem; color: var(--text-muted); font-weight: 500;
  margin-bottom: 1.2rem; animation: fadeInUp 0.8s ease;
}
.amp { color: var(--primary2); }
.hero-desc {
  color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; font-size: 1rem;
  animation: fadeInUp 0.9s ease;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; animation: fadeInUp 1s ease; }

.btn {
  padding: 0.85rem 2rem; border-radius: 50px; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: all 0.3s; cursor: pointer; border: none; display: inline-block;
}
.btn-primary {
  background: var(--gradient); color: white;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(124,58,237,0.5); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--glass-border);
}
.btn-outline:hover { border-color: var(--primary2); color: var(--primary2); background: rgba(124,58,237,0.1); }
.btn-full { width: 100%; text-align: center; font-size: 1rem; }

.hero-stats { display: flex; align-items: center; gap: 2rem; animation: fadeInUp 1.1s ease; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: var(--glass-border); }

/* Hero Visual */
.hero-visual {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; max-width: 450px; min-height: 450px;
  animation: fadeInRight 1s ease;
}
.avatar-ring {
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--gradient); padding: 4px;
  animation: ringRotate 8s linear infinite;
  box-shadow: 0 0 60px rgba(124,58,237,0.4);
}
@keyframes ringRotate {
  0% { box-shadow: 0 0 60px rgba(124,58,237,0.4); }
  50% { box-shadow: 0 0 80px rgba(168,85,247,0.6); }
  100% { box-shadow: 0 0 60px rgba(6,182,212,0.4); }
}
.avatar {
  width: 100%; height: 100%; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.avatar-inner {
  font-size: 2.8rem; font-weight: 900; letter-spacing: -1px;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Inline link in about text */
.inline-link {
  color: var(--primary2); text-decoration: none; font-weight: 600;
  border-bottom: 1px dashed rgba(168,85,247,0.4); transition: border-color 0.3s;
}
.inline-link:hover { border-color: var(--primary2); }

.floating-card {
  position: absolute; display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.06); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 50px;
  padding: 0.7rem 1.2rem; font-size: 0.8rem; font-weight: 500;
  white-space: nowrap; animation: cardFloat 4s ease-in-out infinite;
}
.card-icon { font-size: 1rem; color: var(--primary2); }
.card1 { top: 5%; left: -20px; animation-delay: 0s; }
.card2 { top: 50%; right: -20px; animation-delay: 1.5s; }
.card3 { bottom: 5%; left: 0; animation-delay: 3s; }

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

/* ===================== SECTIONS ===================== */
.section { padding: 6rem 5%; position: relative; z-index: 1; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block; padding: 0.3rem 1rem; border-radius: 50px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  color: var(--primary2); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 3rem; line-height: 1.2;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { color: var(--text-muted); line-height: 1.9; margin-bottom: 1.2rem; }
.about-links { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.social-link {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; border-radius: 50px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-muted); text-decoration: none; font-size: 0.85rem;
  transition: all 0.3s;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { color: var(--primary2); border-color: var(--primary2); background: rgba(124,58,237,0.1); }

/* About Extras — Languages & Interests */
.about-extras {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.extras-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.extras-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.extras-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.extras-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.25s ease;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  backdrop-filter: blur(8px);
}
.extras-pill:hover {
  border-color: var(--primary2);
  background: rgba(124,58,237,0.12);
  color: var(--primary2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124,58,237,0.15);
}

.about-cards { display: flex; flex-direction: column; gap: 1rem; }
.info-card {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(10px); transition: all 0.3s;
}
.info-card:hover { border-color: rgba(124,58,237,0.4); transform: translateX(5px); }
.info-icon { font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
.info-icon i { font-size: 1.4rem; color: var(--primary2); }
.info-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.info-sub { color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; }

/* Skills */
.skills-section { background: linear-gradient(180deg, transparent, rgba(124,58,237,0.05), transparent); }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.skill-category {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 1.8rem; backdrop-filter: blur(10px); transition: all 0.3s;
}
.skill-category:hover { border-color: rgba(124,58,237,0.3); }
.skill-cat-title { font-size: 0.9rem; font-weight: 700; color: var(--primary2); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1.2rem; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-pill {
  padding: 0.4rem 1rem; border-radius: 50px;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
  color: var(--text); font-size: 0.82rem; font-weight: 500;
  transition: all 0.2s; cursor: default; font-family: 'Fira Code', monospace;
}
.skill-pill:hover { background: rgba(124,58,237,0.25); border-color: var(--primary2); transform: translateY(-2px); }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s; cursor: pointer;
}
.project-card:hover { transform: translateY(-8px); border-color: rgba(124,58,237,0.4); box-shadow: var(--shadow); }
.project-img { height: 210px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #0a0a1a; }
.project-mockup-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.5s ease;
}
.project-card:hover .project-mockup-img { transform: scale(1.05); }
.project-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.65);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-links { display: flex; gap: 1rem; }
.proj-link {
  padding: 0.5rem 1.2rem; border-radius: 50px;
  background: white; color: #0a0a0f; font-size: 0.8rem; font-weight: 600;
  text-decoration: none; transition: transform 0.2s;
}
.proj-link:hover { transform: scale(1.05); }


.project-mockup { text-align: left; padding: 1rem; }
.mock-bar { width: 60px; height: 8px; background: rgba(255,255,255,0.3); border-radius: 4px; margin-bottom: 0.8rem; }
.mock-line { width: 100%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 4px; margin-bottom: 0.5rem; }
.mock-line.short { width: 60%; }
.mock-box { width: 100%; height: 60px; background: rgba(255,255,255,0.1); border-radius: 8px; margin-top: 0.5rem; }

.project-info { padding: 1.5rem; }
.project-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.project-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; margin-bottom: 1rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  padding: 0.25rem 0.7rem; border-radius: 50px; font-size: 0.72rem; font-weight: 600;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2); color: var(--accent);
  font-family: 'Fira Code', monospace;
}

/* Contact */
.contact-section { background: linear-gradient(180deg, transparent, rgba(6,182,212,0.03), transparent); }
.contact-sub { color: var(--text-muted); margin-top: -1.5rem; margin-bottom: 3rem; font-size: 1rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  transition: all 0.3s;
}
.contact-item:hover { border-color: rgba(6,182,212,0.3); transform: translateX(5px); }
.contact-icon { font-size: 1.4rem; display: flex; align-items: center; justify-content: center; width: 2rem; }
.contact-icon i { font-size: 1.3rem; color: var(--accent); }
.contact-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-value { font-weight: 600; font-size: 0.9rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.form-group input, .form-group textarea {
  padding: 0.85rem 1.2rem; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-family: 'Inter', sans-serif; font-size: 0.9rem;
  transition: all 0.3s; outline: none; resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(148,163,184,0.5); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary2); box-shadow: 0 0 0 3px rgba(168,85,247,0.1); }

/* Scroll To Top Button */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(124,58,237,0.45);
  opacity: 0; transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 40px rgba(124,58,237,0.6);
}
.scroll-top svg { width: 22px; height: 22px; color: white; stroke: white; }

.form-success {
  display: none; text-align: center; padding: 1rem; border-radius: 12px;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.3);
  color: var(--accent); font-weight: 500;
}
.form-success.show { display: block; animation: fadeInUp 0.5s ease; }

/* Footer */
.footer { padding: 2rem 5%; border-top: 1px solid var(--glass-border); position: relative; z-index: 1; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-size: 1.3rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-text { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary2); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */

/* --- Tablet (≤ 900px) --- */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 7rem; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { min-height: 300px; }
  .card1 { top: 0; left: 0; }
  .card2 { right: 0; }
  .card3 { bottom: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  /* Show hamburger on tablet/mobile */
  .nav-hamburger { display: flex; }
}

/* --- Mobile (≤ 600px) --- */
@media (max-width: 600px) {
  /* Prevent horizontal overflow globally */
  html, body { overflow-x: hidden; width: 100%; }

  /* Navbar */
  .navbar { padding: 0.9rem 4%; }
  .nav-logo { font-size: 1.3rem; }
  .nav-cta { padding: 0.5rem 1rem; font-size: 0.8rem; }

  /* Hero */
  .hero {
    padding: 6.5rem 4% 3rem;
    gap: 2rem;
    min-height: auto;
  }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .hero-sub { font-size: 1rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-btns { flex-direction: column; align-items: center; gap: 0.8rem; }
  .hero-btns .btn { width: 100%; max-width: 280px; text-align: center; }
  .hero-stats { gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .stat-num { font-size: 1.4rem; }

  /* Hero Visual — shrink avatar & cards */
  .hero-visual { min-height: 260px; max-width: 300px; }
  .avatar-ring { width: 190px; height: 190px; }
  .avatar-inner { font-size: 2rem; }
  .floating-card { font-size: 0.72rem; padding: 0.5rem 0.9rem; }
  .card1 { top: 0; left: -5px; }
  .card2 { top: 45%; right: -5px; }
  .card3 { bottom: 0; left: 5px; }

  /* Sections */
  .section { padding: 4rem 4%; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 2rem; }

  /* About */
  .about-grid { gap: 2rem; }
  .about-text p { font-size: 0.9rem; }
  .about-links { gap: 0.6rem; }
  .social-link { font-size: 0.8rem; padding: 0.5rem 0.9rem; }
  .about-extras { margin-top: 1.5rem; padding-top: 1.2rem; }
  .extras-pills { gap: 0.4rem; }
  .extras-pill { font-size: 0.78rem; padding: 0.3rem 0.75rem; }

  /* Info cards */
  .info-card { padding: 1rem 1.2rem; gap: 0.9rem; }
  .info-title { font-size: 0.85rem; }
  .info-sub { font-size: 0.75rem; }

  /* Skills */
  .skill-category { padding: 1.2rem; }
  .skill-pill { font-size: 0.78rem; padding: 0.35rem 0.85rem; }

  /* Projects */
  .projects-grid { gap: 1.2rem; }
  .project-img { height: 160px; }
  .project-info { padding: 1.2rem; }
  .project-title { font-size: 0.95rem; }
  .project-desc { font-size: 0.82rem; }

  /* Contact */
  .contact-sub { font-size: 0.9rem; }
  .contact-item { padding: 1rem; }
  .contact-value { font-size: 0.85rem; word-break: break-all; }
  .form-group input, .form-group textarea { font-size: 0.9rem; padding: 0.75rem 1rem; }

  /* Footer */
  .footer { padding: 1.5rem 4%; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }
  .footer-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }

  /* Scroll to top */
  .scroll-top { bottom: 1.2rem; right: 1.2rem; width: 44px; height: 44px; }
}

/* --- Small Mobile (≤ 400px) --- */
@media (max-width: 400px) {
  .navbar { padding: 0.8rem 3%; }
  .nav-logo { font-size: 1.1rem; }
  .hero { padding: 6rem 3% 2.5rem; }
  .section { padding: 3.5rem 3%; }
  .hero-title { font-size: 1.75rem; }
  .hero-visual { max-width: 260px; min-height: 220px; }
  .avatar-ring { width: 160px; height: 160px; }
  .avatar-inner { font-size: 1.6rem; }
  .floating-card { font-size: 0.65rem; padding: 0.4rem 0.7rem; }
  .hero-stats { gap: 0.6rem; }
  .stat-num { font-size: 1.2rem; }
  .contact-value { font-size: 0.8rem; }
}

