/* ═════════════════════════════════════════════════
   S VISHNU — AI ENGINEER PORTFOLIO
   Premium Dark Futuristic Theme
   ═════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --bg:             #06060e;
  --bg-card:        rgba(12, 12, 28, .55);
  --bg-glass:       rgba(255, 255, 255, .04);
  --glass-border:   rgba(255, 255, 255, .08);
  --glass-shadow:   0 8px 32px rgba(0, 0, 0, .4);
  --text:           #e8e8f0;
  --text-dim:       #8888a8;
  --text-bright:    #ffffff;
  --accent:         #7c3aed;
  --accent-light:   #a78bfa;
  --accent2:        #3b82f6;
  --neon:           #06b6d4;
  --gradient:       linear-gradient(135deg, #7c3aed, #3b82f6, #06b6d4);
  --gradient2:      linear-gradient(135deg, #a78bfa, #818cf8, #6366f1);
  --radius:         16px;
  --radius-sm:      10px;
  --radius-xs:      6px;
  --font:           'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;
  --nav-height:     90px;
  --transition:     .35s cubic-bezier(.4, 0, .2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
strong { color: var(--accent-light); font-weight: 600; }

/* ─── UTILITY ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 70px 0;
  position: relative;
}





/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 10000;
  width: 0%;
  transition: width .1s linear;
}

/* ─── MOUSE GLOW ─── */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(124, 58, 237, .08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity .3s;
  will-change: left, top;
}

/* ─── PARTICLE CANVAS ─── */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── FLOATING SHAPES ─── */
.floating-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
  animation: floatShape 20s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; background: var(--accent); top: 10%; left: -5%; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; background: var(--accent2); top: 50%; right: -5%; animation-delay: -4s; }
.shape-3 { width: 250px; height: 250px; background: var(--neon); bottom: 10%; left: 30%; animation-delay: -8s; }
.shape-4 { width: 200px; height: 200px; background: #a78bfa; top: 30%; left: 50%; animation-delay: -12s; }
.shape-5 { width: 350px; height: 350px; background: #6366f1; bottom: 20%; right: 20%; animation-delay: -6s; }
.shape-6 { width: 180px; height: 180px; background: #06b6d4; top: 60%; left: 10%; animation-delay: -15s; }

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(40px, -30px) scale(1.05); }
  50%      { transform: translate(-20px, 50px) scale(.95); }
  75%      { transform: translate(30px, 20px) scale(1.02); }
}

/* ─── LOADING SCREEN ─── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .8s, visibility .8s;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  text-align: center;
  position: relative;
}
.loader-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  position: relative;
  animation: loaderSpin 2s linear infinite;
}
.ring-segment {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}
.ring-segment:nth-child(1) {
  border-top-color: var(--accent);
  animation: loaderSpin 1.5s linear infinite;
}
.ring-segment:nth-child(2) {
  border-right-color: var(--accent2);
  animation: loaderSpin 2s linear infinite reverse;
  inset: 10px;
}
.ring-segment:nth-child(3) {
  border-bottom-color: var(--neon);
  animation: loaderSpin 2.5s linear infinite;
  inset: 20px;
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}
.loader-name {
  font-family: var(--font);
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: .7; }
  50%      { opacity: 1; }
}
.loader-tagline {
  color: var(--text-dim);
  font-size: .95rem;
  margin-top: 4px;
  letter-spacing: 6px;
  text-transform: uppercase;
}
.loader-bar-track {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  margin: 28px auto 0;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 3px;
  transition: width .1s;
}
.loader-percent {
  display: block;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .8rem;
  margin-top: 10px;
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;  
  justify-content: space-between;
  padding: 0 60px;
  z-index: 9000;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
#navbar.scrolled {
  background: rgba(6, 6, 14, .82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--glass-border);
}
.nav-logo {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-bright);
  position: relative;
  z-index: 9001;
}
.nav-logo .accent { color: var(--accent-light); }
.nav-links {
  display: flex;
  gap: 70px;
  margin-right: 20px;
}
.nav-links a {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 2.5px;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-bright);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9001;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,58,237,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(59,130,246,.08) 0%, transparent 50%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  padding: 40px 48px;
  gap: 40px;
}
.hero-text-side {
  flex: 1;
  text-align: left;
}
.hero-photo-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Hero Photo – Portrait Style ─── */
.hero-photo-wrapper {
  position: relative;
  width: 340px;
  height: 420px;
}
.hero-photo-glow {
  position: absolute;
  inset: -30px;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 40%, rgba(124,58,237,.28) 0%, rgba(59,130,246,.12) 40%, transparent 70%);
  filter: blur(30px);
  animation: photoGlowPulse 4s ease-in-out infinite;
  z-index: 0;
}
@keyframes photoGlowPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.06); }
}
.hero-photo-border {
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: var(--gradient);
  z-index: 1;
  animation: borderRotate 8s linear infinite;
  background-size: 200% 200%;
}
@keyframes borderRotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  object-position: center top;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 80px rgba(124, 58, 237, .15);
  animation: photoFloat 5s ease-in-out infinite;
}
@keyframes photoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 5px;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 30%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-dim);
  margin-bottom: 36px;
  font-weight: 400;
}
.typed-text {
  color: var(--accent-light);
  font-weight: 600;
}
.cursor-blink {
  color: var(--accent);
  animation: blink .8s step-end infinite;
  font-weight: 300;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: .92rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, .35);
}
.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(124, 58, 237, .5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(124, 58, 237, .12);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, .2);
}
.btn-ghost {
  background: var(--bg-glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

/* ─── (glass icons removed) ─── */

/* ─── HERO SCROLL INDICATOR ─── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll-indicator span {
  font-size: .72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-arrow {
  width: 20px;
  height: 28px;
  border: 2px solid var(--text-dim);
  border-radius: 10px;
  position: relative;
}
.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 3px;
  transform: translateX(-50%);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: .3; }
}

/* ─── SECTION TITLES ─── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
}
.title-accent {
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: .85em;
  margin-right: 8px;
}

/* ─── GLASS CARD ─── */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition);
}
.glass-card:hover {
  border-color: rgba(124, 58, 237, .25);
  box-shadow: 0 8px 40px rgba(124, 58, 237, .1);
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-text {
  padding: 40px;
}
.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform .6s ease;
}
.stat-card:hover::before {
  transform: scaleX(1);
}
.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-label {
  font-size: .82rem;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

/* ─── SKILLS ─── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-card {
  padding: 32px 28px;
  text-align: center;
  perspective: 600px;
}
.skill-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.skill-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-bright);
}
.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.skill-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 6px;
  transition: width 1.4s cubic-bezier(.25, .8, .25, 1);
  position: relative;
  box-shadow: 0 0 12px rgba(124,58,237,.35);
}
.skill-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  opacity: 0;
  transition: opacity .3s;
}
.skill-fill.animated::after {
  opacity: 1;
}

/* ─── PROJECTS ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-card {
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover::before {
  opacity: 1;
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.project-icon {
  color: var(--accent-light);
}
.project-links {
  display: flex;
  gap: 12px;
}
.project-link {
  color: var(--text-dim);
  transition: all var(--transition);
  padding: 4px;
}
.project-link:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}
.project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
  transition: color var(--transition);
}
.project-card:hover h3 {
  color: var(--accent-light);
}
.project-card p {
  font-size: .92rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-tags span {
  padding: 4px 14px;
  font-size: .75rem;
  font-family: var(--font-mono);
  color: var(--accent-light);
  background: rgba(124, 58, 237, .1);
  border: 1px solid rgba(124, 58, 237, .2);
  border-radius: 50px;
}

/* ─── EXPERIENCE ─── */
.experience-card {
  padding: 48px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.exp-badge {
  display: inline-block;
  padding: 5px 18px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--neon);
  background: rgba(6, 182, 212, .1);
  border: 1px solid rgba(6, 182, 212, .2);
  border-radius: 50px;
  margin-bottom: 20px;
}
.experience-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 6px;
}
.exp-company {
  color: var(--accent-light);
  font-size: .95rem;
  margin-bottom: 24px;
}
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.exp-list li {
  font-size: .95rem;
  color: var(--text);
  padding-left: 24px;
  position: relative;
  line-height: 1.7;
}
.exp-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-size: 1.1rem;
}
.exp-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.exp-tags span {
  padding: 4px 14px;
  font-size: .75rem;
  font-family: var(--font-mono);
  color: var(--neon);
  background: rgba(6, 182, 212, .08);
  border: 1px solid rgba(6, 182, 212, .18);
  border-radius: 50px;
}

/* ─── RESUME ─── */
.resume-card {
  max-width: 500px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
}
.resume-icon-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent-light);
  animation: resumeFloat 3s ease-in-out infinite;
}
@keyframes resumeFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.resume-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}
.resume-card p {
  color: var(--text-dim);
  font-size: .95rem;
  margin-bottom: 28px;
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-card {
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124,58,237,.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.contact-card:hover::before {
  opacity: 1;
}
.contact-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent-light);
  transition: all var(--transition);
}
.contact-card:hover .contact-icon-wrapper {
  background: rgba(124,58,237,.2);
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(124,58,237,.2);
}
.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
}
.contact-card p {
  font-size: .82rem;
  color: var(--text-dim);
  word-break: break-all;
}

/* ─── FOOTER ─── */
#footer {
  padding: 40px 0;
  position: relative;
}
.footer-gradient-line {
  height: 2px;
  background: var(--gradient);
  opacity: .3;
  margin-bottom: 40px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-content p {
  color: var(--text-dim);
  font-size: .85rem;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--accent-light);
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── TILT EFFECT GLOW ─── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-inner {
    padding: 40px 32px;
  }
  .hero-photo-wrapper {
    width: 280px;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(6,6,14,.96);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 28px;
    transition: right var(--transition);
    border-left: 1px solid var(--glass-border);
    margin-right: 0;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 20px 24px;
  }
  .hero-text-side {
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-photo-wrapper {
    width: 240px;
    height: 300px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .section { padding: 60px 0; }
  .experience-card { padding: 32px 24px; }
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-name {
    font-size: 2.2rem;
  }
  .hero-photo-wrapper {
    width: 200px;
    height: 260px;
  }
  #navbar {
    padding: 0 20px;
  }
}
