* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b1020;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #fff;
}
.slide {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0b1020;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}
.g-font { font-family: "Space Grotesk", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* Hamburger Menu */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }
.nav-links-mobile { display: none; }

/* ── Animated background orbs ── */
@keyframes orbFloat1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -20px) scale(1.05); } 66% { transform: translate(-15px, 15px) scale(0.95); } }
@keyframes orbFloat2 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-25px, 20px) scale(1.08); } 66% { transform: translate(20px, -10px) scale(0.92); } }
@keyframes orbFloat3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(15px, -25px) scale(1.06); } }
.orb-1 { animation: orbFloat1 12s ease-in-out infinite; }
.orb-2 { animation: orbFloat2 15s ease-in-out infinite; }
.orb-3 { animation: orbFloat3 10s ease-in-out infinite; }

/* ── Hero & Page fade-in stagger ── */
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-animate, .page-animate { opacity: 0; animation: heroFadeUp 0.7s cubic-bezier(.21, 1.02, .73, 1) forwards; }
.hero-delay-1, .anim-delay-1 { animation-delay: 0.1s; } 
.hero-delay-2, .anim-delay-2 { animation-delay: 0.25s; } 
.hero-delay-3, .anim-delay-3 { animation-delay: 0.4s; }
.hero-delay-4, .anim-delay-4 { animation-delay: 0.55s; } 
.hero-delay-5, .anim-delay-5 { animation-delay: 0.7s; } 
.hero-delay-6, .anim-delay-6 { animation-delay: 0.85s; }

/* ── Utilities ── */
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.terminal-cursor::after { content: "▌"; color: #22c55e; animation: blink 1s steps(1) infinite; margin-left: 4px; font-size: 13px; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulseGlow 2s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.cta-shimmer { position: relative; overflow: hidden; }
.cta-shimmer::after { content: ""; position: absolute; top:0; left:0; right:0; bottom:0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%); background-size: 200% 100%; opacity: 0; transition: opacity .3s; }
.cta-shimmer:hover::after { opacity: 1; animation: shimmer 1.5s ease infinite; }

/* ── Hover Effects ── */
.hero-terminal-card, .panel-hover { transition: transform .4s cubic-bezier(.21,1.02,.73,1), box-shadow .4s ease; }
.hero-terminal-card:hover, .panel-hover:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(0,0,0,0.6) !important; filter: brightness(1.1); }
.focus-chip { transition: transform .2s ease, border-color .2s ease; cursor: default; }
.focus-chip:hover { transform: translateY(-2px); }
.contact-hover { transition: transform .2s ease; cursor: pointer; }
.contact-hover:hover { transform: translateX(4px); }

/* ── Experience Timeline ── */
.timeline-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.timeline-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); border-color: rgba(255, 255, 255, 0.18) !important; }
.timeline-dot { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.timeline-card:hover~.timeline-dot, .timeline-card:hover~* .timeline-dot { transform: scale(1.3); box-shadow: 0 0 12px rgba(14, 165, 233, 0.5); }
.timeline-line { opacity: 0.6; }

/* ── Contact Cards ── */
.contact-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; cursor: pointer; text-decoration: none; display: block; }
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); border-color: rgba(255, 255, 255, 0.22) !important; }
.contact-icon-wrap { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.contact-card:hover .contact-icon-wrap { transform: scale(1.1) rotate(-5deg); box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.contact-animate { opacity: 0; animation: heroFadeUp 0.6s cubic-bezier(.21, 1.02, .73, 1) forwards; }
.social-hover { transition: color 0.2s ease, transform 0.2s ease; }
.social-hover:hover { transform: translateY(-2px); color: #fff !important; }

/* ── Projects Cards ── */
.proj-card { transition: transform 0.28s cubic-bezier(.21,1.02,.73,1), box-shadow 0.28s ease; }
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.45) !important; }
@keyframes projFadeIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.proj-animate { animation: projFadeIn 0.5s ease forwards; opacity: 0; }
@keyframes barGrow { from { width: 0; } }
.impact-bar { animation: barGrow 1s ease forwards; }

/* ── 404 Custom Styles ── */
.code { font-size: 120px; font-weight: 700; letter-spacing: -0.04em; background: linear-gradient(135deg, #0ea5e9, #6d28d9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.message { font-size: 28px; font-weight: 600; margin-top: 16px; color: rgba(255,255,255,0.92); }
.sub { font-size: 16px; margin-top: 12px; color: rgba(255,255,255,0.60); max-width: 420px; line-height: 1.6; }
.terminal { margin-top: 32px; padding: 20px 28px; border-radius: 16px; background: rgba(17,26,51,0.72); border: 1px solid rgba(255,255,255,0.12); text-align: left; max-width: 400px; width: 100%; }
.terminal-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; }
.btn-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; padding: 12px 28px; border-radius: 12px; background: #fff; color: #0b1020; font-weight: 600; font-size: 14px; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.btn-home:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.links { margin-top: 20px; display: flex; gap: 20px; }
.links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.links a:hover { color: #22c55e; }

/* ── Section Content (index.html below-hero sections) ── */
.section-label { color: rgba(255,255,255,.55); }
.section-heading-lg { font-size: 32px; line-height: 1.2; letter-spacing: -.01em; }
.section-heading-md { font-size: 28px; line-height: 1.25; letter-spacing: -.01em; }
.section-desc { color: rgba(255,255,255,.65); line-height: 1.7; }
.section-desc-sm { color: rgba(255,255,255,.58); line-height: 1.6; }
.section-icon-blue { background: rgba(14,165,233,0.10); border: 1px solid rgba(14,165,233,0.22); }
.section-icon-blue i { font-size: 12px; color: #0ea5e9; opacity: .9; }
.section-icon-purple { background: rgba(109,40,217,0.12); border: 1px solid rgba(109,40,217,0.26); }
.section-icon-purple i { font-size: 12px; color: #6d28d9; opacity: .9; }
.section-icon-green { background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.24); }
.section-icon-green i { font-size: 12px; color: #22c55e; opacity: .9; }
.cta-primary {
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.cta-primary span { color: #0b1020; }
.cta-secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.cta-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.cta-secondary span { opacity: .92; }
.cta-outline {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.cta-outline:hover { transform: translateY(-2px); background: rgba(255,255,255,.10); }
.cta-outline i { font-size: 10px; opacity: .6; }
.cta-card {
  background: rgba(17,26,51,0.65);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.cta-card-desc { color: rgba(255,255,255,.62); line-height: 1.7; }
.footer-link { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-link:hover { color: #22c55e; }

/* ── Nav z-index fix (mobile dropdown must sit above page content) ── */
#main-nav { position: relative; z-index: 100 !important; }

/* ── Media Queries ── */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links-desktop, .nav-cta-desktop, .hero-terminal, .corner-lines, .hide-mobile, .timeline-line { display: none !important; }
  .nav-links-mobile.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(11, 16, 32, 0.95); backdrop-filter: blur(12px); padding: 16px 24px; gap: 12px; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .timeline-dot { left: 0 !important; top: -12px !important; margin-left: 0 !important; }
  .timeline-border-mobile { border-left: 2px solid rgba(255, 255, 255, 0.1); padding-left: 1.5rem !important; margin-left: 6px !important; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 32px !important; }
  .hero-subtitle-text { font-size: 24px !important; }
}
