/* Default: Sunset theme */
:root {
  --bg-1: #1b0b10;
  --bg-2: #2b1620;
  --bg-3: #3b1f2b;
  --fg: #e7ebf6;
  --muted: #aab3c5;
  --accent: #ff9eb3;
  --card: rgba(255, 255, 255, 0.06);
  --card-stroke: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --container: 1100px;
  --space-xs: 8px;
  --space-s: 14px;
  --space-m: 22px;
  --space-l: 36px;
  --space-xl: 64px;
}

/* Alternate: Deep Dark theme */
[data-theme="dark"] {
  --bg-1: #070a12;
  --bg-2: #0b1422;
  --bg-3: #0e1b2d;
  --fg: #e6ecf5;
  --muted: #9aa6ba;
  --accent: #8ad8ff;
}

/* Global */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--fg);
  background: radial-gradient(1200px 800px at 10% -10%, var(--bg-2), transparent 60%),
              radial-gradient(1000px 700px at 110% 10%, var(--bg-3), transparent 60%),
              linear-gradient(180deg, var(--bg-1), var(--bg-2));
  line-height: 1.55;
}

.gradient-bg::before {
  content: "";
  position: fixed;
  inset: -40% -20% -20% -40%;
  z-index: -1;
  background: conic-gradient(from 0deg, rgba(255,255,255,0.06), rgba(255,255,255,0.0) 30%, rgba(255,255,255,0.08) 60%, rgba(255,255,255,0.0) 85%);
  filter: blur(60px) saturate(120%);
  animation: spin 40s linear infinite;
  transform-origin: 50% 45%;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

.stack { display: flex; flex-direction: column; }
.gap-s { gap: var(--space-s); }
.gap-m { gap: var(--space-m); }
.gap-l { gap: var(--space-l); }

.eyebrow { color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }
.headline { font-size: clamp(32px, 6vw, 64px); line-height: 1.1; font-weight: 700; }
.subhead { font-size: clamp(16px, 2.3vw, 20px); color: var(--muted); max-width: 60ch; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-m) var(--space-l);
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 28, 0.35);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

.site-nav { display: flex; gap: var(--space-s); align-items: center; }
.nav-link {
  color: var(--fg);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  opacity: 0.85;
}
.nav-link.active, .nav-link:hover { background: rgba(255,255,255,0.08); opacity: 1; }

.theme-toggle {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  border-radius: 999px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  cursor: pointer;
}

/* Sections */
.section {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: var(--space-m) 0;
  opacity: var(--section-opacity, 1);
  transition: opacity 260ms ease;
}
.section-head { margin-bottom: var(--space-l); }
.section h2 { font-size: clamp(24px, 4.5vw, 40px); margin: 0 0 var(--space-s) 0; }

.hero { text-align: left; }
.hero-layout { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-l); }

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: var(--space-l);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  opacity: 0.7;
  animation: floaty 2.8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  padding: var(--space-l);
  box-shadow: var(--shadow);
}
.contact-card { text-align: center; }

.grid { display: grid; gap: var(--space-l); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); }

/* Skills grid with icons */
/* Make monochrome SVG icons look good on the dark theme */
.icon-mono {
  width: 40px;
  height: 40px;
  display: inline-block;
  filter: invert(96%) sepia(2%) saturate(320%) hue-rotate(180deg) brightness(105%) contrast(95%);
}
.skills-grid {
  --item-size: 120px;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--item-size), 1fr));
  gap: var(--space-m);
}
.skill {
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-m);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--card-stroke);
  border-radius: calc(var(--radius) - 4px);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.skill:hover { transform: translateY(-2px) rotateX(4deg) rotateY(-4deg); box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.skill-icon {
  font-size: 44px;
  transform: translateZ(24px);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.45));
}
.skill span:last-child { margin-top: 8px; font-size: 14px; color: var(--muted); transform: translateZ(20px); }

/* Express icon is monochrome by default; lighten for dark bg */
.devicon-express-original { color: #e7ebf6; opacity: 0.9; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}
.btn.primary { background: linear-gradient(135deg, var(--accent), rgba(255,255,255,0.0)); color: #03121c; border-color: rgba(255,255,255,0.0); font-weight: 600; }
.btn.subtle { background: transparent; border-color: rgba(255,255,255,0.12); }
.text-link { color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Social Links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--fg);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 500;
  transition: all 200ms ease;
}
.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.social-link svg {
  opacity: 0.8;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px) scale(0.99); transition: opacity 500ms ease, transform 600ms cubic-bezier(.21,.68,.15,.95); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Hover tilt */
.hover-tilt { transform-style: preserve-3d; perspective: 800px; will-change: transform; transition: transform 200ms ease; }
.hover-tilt:hover { transform: rotateX(3deg) rotateY(-3deg) scale(1.01); }

/* Footer */
.site-footer { padding: var(--space-xl) 0 var(--space-l); text-align: center; color: var(--muted); }
.site-footer a { color: var(--accent); text-decoration: none; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
/*this is for the picture in the website*/
/* Ensure hero is two-column on desktop for pro layout */
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: var(--space-xl); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } }



/* Professional two-column hero (stacks on mobile) */
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: var(--space-xl); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } }

/* Social links */
.social-links { display: flex; align-items: center; gap: 12px; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); color: var(--fg);
  text-decoration: none;
}
.social svg { transform: translateZ(18px); }

/* Portrait frame */
.portrait { display: grid; place-items: center; }
.portrait-frame {
  position: relative;
  width: clamp(200px, 34vw, 320px);
  aspect-ratio: 4/5;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  overflow: hidden;
  transform-style: preserve-3d;
}
.portrait-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translateZ(18px) scale(1.02);
  filter: saturate(1.02) contrast(1.02);
}
.portrait-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(600px 400px at 80% 10%, var(--accent), transparent 55%);
  opacity: 0.35;
  filter: blur(30px);
  transform: translateZ(10px);
  pointer-events: none;
}
.portrait-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0));
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Optional: tighten section spacing site-wide */
.section { min-height: auto; padding: var(--space-l) 0; }
.hero { min-height: 88vh; }

