:root {
  --bg: #0f1720;
  --surface: #111419;
  --muted: #9aa3ad;
  --accent: #2b8cff;
  --z-header: 60;
  --z-mobile: 9999;
  --glass: rgba(255, 255, 255, 0.04);
  --card: #0d1216;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow-heavy: 0 15px 40px rgba(2, 8, 23, 0.45);
  --shadow-light: 0 8px 20px rgba(2, 8, 23, 0.24);
  --text-light: rgba(230, 238, 246, 0.88);
  --primary: #2b8cff;
  --accent-alt: #22e0ff;
  --accent-2: #00bcd4;
  --max-w: 1200px;
  --gap: 24px;
  --transition: 240ms cubic-bezier(.2, .8, .2, 1);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Light mode theme */
body.light {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --muted: #666666;
  --accent: #2b8cff;
  --glass: rgba(0, 0, 0, 0.04);
  --card: #f9f9fa;
  --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.1);
  --shadow-light: 0 8px 20px rgba(0, 0, 0, 0.08);
  --text-light: rgba(50, 50, 50, 0.92);
}

body.light {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  color: #333333;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

html {
  scroll-behavior: smooth;
}

/* Prevent accidental horizontal scroll from off-canvas transforms or scaled images */
html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #071018 100%, #0b1116 100%);
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.light p {
  color: #333333;
}

/* container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(11, 14, 17, 0.6), rgba(11, 14, 17, 0.35));
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.light .site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.5));
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* logo */
.logo {
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
}

body.light .logo {
  color: #000;
}

.logo .accent {
  color: var(--accent);
  margin-left: 6px
}

/* screen-reader only */
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* nav (desktop) */
.main-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

body.light .main-nav a {
  color: #333333;
}

.main-nav a:hover {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 6px;
  transform: translateY(-1px)
}




/* header ctas */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 12px
}

/* Theme toggle button */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--accent-2);
  border-color: rgba(34, 224, 255, 0.3);
  background: rgba(34, 224, 255, 0.08);
  transform: translateY(-2px);
}

body.light .theme-toggle {
  border-color: rgba(0, 0, 0, 0.1);
  color: #666666;
}

body.light .theme-toggle:hover {
  color: var(--accent);
  border-color: rgba(43, 140, 255, 0.3);
  background: rgba(43, 140, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  color: #081021;
  box-shadow: 0 6px 20px rgba(43, 140, 255, 0.12);
  transform: translateZ(0);
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-alt));
  filter: brightness(1.05);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

body.light .btn-ghost {
  color: #333333;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-ghost:hover {
  color: var(--accent-2);
  border-color: rgba(34, 224, 255, 0.5);
  background: rgba(34, 224, 255, 0.08);
  transform: translateY(-3px);
}


.btn-outline {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
}

body.light .btn-outline {
  color: #333333;
  border: 1px solid rgba(0, 0, 0, 0.1);
}


/* hamburger */
.hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 80;
  pointer-events: auto;
  touch-action: manipulation;
  display: inline-flex;
  flex-direction: column;   /* ← FORCE up-down stacking */
  justify-content: center;
  align-items: center;
}
/* .hamburger {
  display: inline-flex;
  flex-direction: column;   
  justify-content: center;
  align-items: center;
} */

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #cbd6df;
  margin: 4px 0;
  border-radius: 2px;
  transition: all .18s
}

/* Hamburger open state (cross) */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* HERO */
.hero {
  min-height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  color: #eaf2ff;
  overflow: hidden;
  overflow-x: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* background-image: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=1920&auto=format&fit=crop&s=placeholder'); */
  background-image: url('images/Uback.png');
  background-size: cover;
  background-position: center;
  filter: brightness(.5) saturate(.9);
  transform: scale(1.02);
  z-index: 0;
  pointer-events: none;
}

body.light .hero-bg {
  filter: brightness(2) saturate(.5);
  background-color: rgba(255, 255, 255, 0.3);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 64px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Decorative hero illustration (desktop only) */
.hero-illustration {
  display: none; /* hidden by default for mobile */
}
.hero-illustration .hero-svg {
  display: block;
  width: 320px;
  height: auto;
}

/* layout adjustments for desktop */
@media (min-width: 1024px) {
  /* put illustration on the right using flex order */
  .hero-illustration {
    display: block;
    flex: 0 0 360px;
    margin-left: 28px;
    margin-right: 0;
    order: 3; /* keep illustration at the far right */
    align-self: center;
  }

  .hero-arrow {
    display: block;
    order: 2; /* place arrow between content and illustration */
    align-self: center;
    margin-left: 12px;
    margin-right: 0;
  }

  .hero-illustration .hero-svg {
    width: 360px;
    transform-origin: center;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
  }

  .hero-content {
    flex: 1 1 auto;
    min-width: 320px;
    order: 1;
  }

  .hero-illustration .eye {
    transform-origin: center;
    transform-box: fill-box;
    animation: blink 6s infinite;
  }

  /* Avatar-specific animations */
  .hero-illustration .head {
    transform-origin: center 60%;
    animation: headTilt 6s ease-in-out infinite;
  }

  .hero-illustration .hair {
    transform-origin: 50% 10%;
    animation: hairSway 4.8s ease-in-out infinite;
  }

  .hero-illustration .shirt {
    animation: shirtBob 6s ease-in-out infinite;
  }

  .hero-illustration .shadow {
    animation: shadowPulse 6s ease-in-out infinite;
  }

  @keyframes hairSway {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
  }

  @keyframes headTilt {
    0% { transform: rotate(0deg); }
    45% { transform: rotate(-2deg); }
    55% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
  }

  @keyframes shirtBob {
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
  }

  @keyframes shadowPulse {
    0% { transform: scaleX(1); opacity: 0.12; }
    50% { transform: scaleX(0.96); opacity: 0.08; }
    100% { transform: scaleX(1); opacity: 0.12; }
  }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes blink {
  0%, 94% { transform: scaleY(1); }
  95% { transform: scaleY(0.08); }
  100% { transform: scaleY(1); }
}

/* Make hero content use more horizontal space (remove extra side gap)
   Keeps other sections using the normal `.container` max-width. */
.hero .container {
  max-width: none;
  padding-left: 40px;
  padding-right: 40px;
}

/* Restore normal container padding on smaller screens to avoid cramped layout */
@media (max-width: 1023px) {
  .hero .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.hero-content {
  max-width: 720px
}

.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.02;
  margin: 0 0 10px;
  font-weight: 800;
}

.name-highlight {
  background: linear-gradient(90deg, var(--accent), #6bc1ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 6px;
  border-radius: 6px;
}

.hero-sub {
  color: var(--muted);
  margin: 6px 0 14px;
  font-weight: 600
}

body.light .hero-sub {
  color: #1a1a1a;
}

.hero-lead {
  color: var(--text-light);
  margin-bottom: 18px;
  max-width: 60ch;
}

body.light .hero-lead {
  color: #000000;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

body.light .hero-actions .btn-ghost {
  color: #000000;
  border-color: rgba(0, 0, 0, 0.2);
}

/* Profile img */
.headshot {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-heavy);
  transition: 0.3s ease;
}

.headshot:hover {
  transform: translateY(-8px);
}



/* scroll indicator */
.scroll-indicator {
  display: inline-block;
  width: 36px;
  height: 56px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  position: relative;
  text-decoration: none;
}

.scroll-indicator .chev {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: translateX(-50%) rotate(45deg);
  animation: bounce 1.6s infinite;
}

@keyframes bounce {
  0% {
    transform: translateX(-50%) translateY(0) rotate(45deg)
  }

  50% {
    transform: translateX(-50%) translateY(8px) rotate(45deg)
  }

  100% {
    transform: translateX(-50%) translateY(0) rotate(45deg)
  }
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  text-align: center;
  
  
}

body.light .section-title {
  color: #000;
}

.muted {
  color: var(--muted);
  margin-bottom: 20px
}

body.light .muted {
  color: #555555;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.lead {
  color: rgba(230, 238, 246, 0.92);
  font-size: 1rem;
  margin-bottom: 12px
}

body.light .lead {
  color: #333333;
}

.subtle-title {
  margin-top: 18px;
  font-weight: 700;
}

body.light .subtle-title {
  color: #000;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px
}

.highlights li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted)
}

body.light .highlights li {
  color: #555555;
}

.icon {
  color: var(--accent);
  margin-right: 6px
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015));
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: transform var(--transition), box-shadow var(--transition);
}

body.light .card {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.008));
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-heavy);
}

.card-title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700
}

/* Skill list */
.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted)
}

body.light .skill-list {
  color: #555555;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--card)
}

.project-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.project-body {
  padding: 18px;
}

.project-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.project-desc {
  color: var(--muted);
  margin-bottom: 12px
}

body.light .project-desc {
  color: #555555;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px
}

.tech-badges span {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

body.light .tech-badges span {
  background: rgba(0, 0, 0, 0.05);
  color: #555555;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* project actions */
.project-actions {
  display: flex;
  gap: 10px;
}

/* CERTIFICATIONS */
.certifications {
  color: var(--text, #f5f5f5);
  padding: 5rem 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015));
  padding: 20px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
}

body.light .cert-card {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.008));
  border: 2px solid rgba(0, 0, 0, 0.06);
}

/* 🔥 Hover effect (same as project & skill cards) */
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-heavy);
  border-color: rgba(255, 255, 255, 0.08);
}

.cert-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  background: #468ce9;
  color: #081021;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
}

body.light .cert-btn {
  background: #2b8cff;
  color: #ffffff;
}

.cert-btn:hover {
  
  filter: brightness(1.05);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.35);
}


/* Icon styles */
.cert-icon {
  font-size: 32px;
  color: var(--accent);
}

/* Text styles */
.cert-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

body.light .cert-title {
  color: #000;
}

.cert-org {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

body.light .cert-org {
  color: #555555;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent)
}

.contact-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700
}

.contact-info p {
  margin: 4px 0 0;
  color: var(--muted);
}

body.light .contact-info p {
  color: #555555;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 24px 0;
  margin-top: 12px;
  color: var(--muted)
}

body.light .site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #555555;
}

.footer-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: #ddd;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

body.light .footer-links a {
  color: #333333;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #00bcd4;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #00bcd4;
}

.footer-links a:hover::after {
  width: 100%;
}


/* utilities */
.text-center {
  text-align: center
}

.full {
  width: 100%
}

/* responsive */
@media (min-width:768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    padding: 22px;
  }
}

@media (min-width:1024px) {
  .about-grid {
    grid-template-columns: 420px 1fr;
  }

  /* hamburger intentionally hidden on desktop */

  .main-nav {
    display: block
  }

  /* duplicate rule removed */
}

/* mobile */
@media (max-width:1023px) {
  .main-nav {
    display: none
  }

  .hamburger {
    display: inline-flex
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px
  }

  .hero-arrow {
    display: none
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: left
  }
}

@media (max-width: 540px) {

  /* reduce shadows and motion on small devices */
  .card:hover {
    transform: none;
    box-shadow: var(--shadow-light);
  }

  .cert-card:hover {
    box-shadow: var(--shadow-light);
  }

  .section {
    padding: 60px 0;
  }

  .btn {
    padding: 8px 10px;
    font-size: .95rem
  }
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: var(--z-mobile);
  /* use opacity/visibility so we can show/hide instantly */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* no opening animation */
  transform: none;
  transition: none;
  padding: 80px 20px;
}

/* mobile menu open state via class toggle */
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: none;
}

/* prevent background scroll when mobile menu open (avoid layout shift) */
body.menu-open {
  overflow: hidden;
}

/* show panel when open */
.mobile-menu.open .mobile-nav-right {
  transform: translateX(0);
}

.mobile-menu nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  flex-direction: column
}

.mobile-menu nav a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  padding: 8px 0
}

body.light .mobile-menu nav a {
  color: #333333;
}

.mobile-menu nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
}

.mobile-menu nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mobile-close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 10px;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 8px;
}

body.light .mobile-close {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #666666;
}

/* Right-side slide-in panel (now appears instantly) */
.mobile-nav-right {
  position: absolute;
  top: 0;
  right: 0;
  /* width: 260px; */
  height: 100%;
  background: var(--card);
  padding: 20px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  transform: none;
  transition: none;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

body.light .mobile-nav-right {
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-dock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}

.mobile-brand .logo {
  font-size: 16px;
}

.mobile-list {
  padding: 12px 0;
  margin: 0;
}

.mobile-list li {
  list-style: none;
  margin: 6px 0;
}

.mobile-list li a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: background 180ms;
}

body.light .mobile-list li a {
  color: #333333;
}

.mobile-list li a i {
  margin-right: 10px;
  width: 20px;
  display: inline-block;
  text-align: center;
}

.mobile-list li a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-2);
}

.mobile-list li a.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-2);
}

/* Show skip link when focused */
.sr-only:focus {
  position: static !important;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  margin: 0 0 12px 0;
}

/* small transitions accessible focus */
a:focus,
button:focus {
  outline: 3px solid rgba(43, 140, 255, 0.16);
  outline-offset: 3px;
  border-radius: 8px
}

/* subtle reveal animations */
.card,
.project-card,
.skill-card {
  transform: translateY(8px);
  opacity: 0;
}

.card[data-delay="0"] {
  animation-delay: 0.08s;
}

.card[data-delay="1"] {
  animation-delay: 0.14s;
}

.card[data-delay="2"] {
  animation-delay: 0.18s;
}

.card[data-delay="3"] {
  animation-delay: 0.22s;
}

.project-card[data-delay="0"] {
  animation-delay: 0.18s;
}

.project-card[data-delay="1"] {
  animation-delay: 0.26s;
}

.project-card[data-delay="2"] {
  animation-delay: 0.34s;
}

@keyframes fadeUp {
  to {
    transform: none;
    opacity: 1
  }
}

/* Play animation when elements become visible */
.card.in-view,
.project-card.in-view,
.skill-card.in-view {
  animation: fadeUp .6s forwards;
}

.resume-cta {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* CONTACT FORM STYLES */
.contact-form-section {
  padding: 80px 0;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.contact-form .btn-primary {
  padding: 8px 12px;
  font-size: 14px;
  align-self: flex-start;
  align-self: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-light);
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(43, 140, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(43, 140, 255, 0.1);
}

body.light .form-group input,
body.light .form-group textarea {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
  color: #333333;
}

body.light .form-group input::placeholder,
body.light .form-group textarea::placeholder {
  color: #999999;
}

body.light .form-group input:focus,
body.light .form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(43, 140, 255, 0.05);
}

.form-status {
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
  min-height: 20px;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* Ensure mobile-only UI is completely hidden on larger screens to avoid accidental display */
@media (min-width:1024px) {
  .mobile-menu,
  .mobile-nav-right,
  .mobile-close,
  .mobile-cta,
  .mobile-list,
  .hamburger {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

}
