/* ======================================================
   PREMIUM PORTFOLIO — style.css (COMPLETE)
   ====================================================== */

/* ---------- Google Font import (fallback if offline) ---------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Fira+Code:wght@400;500&display=swap");

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand palette — Fluorescent/Neon */
  --indigo: #00d4ff;
  --indigo-light: #00f2ff;
  --indigo-dark: #0099ff;
  --violet: #bc00ff;
  --cyan: #39ff14;
  --neon-pink: #ff00ff;
  --neon-yellow: #fff01f;
  --teal: #00ffd5;

  /* Neutrals */
  --bg: #080c14;
  --bg-card: rgba(255, 255, 255, 0.035);
  --bg-card-hover: rgba(255, 255, 255, 0.065);
  --surface: #0f172a;
  --white: #f8fafc;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --border: rgba(255, 255, 255, 0.07);

  /* Typography */
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Fira Code", "Courier New", monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Radii */
  --r-sm: 0.5rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(255, 49, 49, 0.15);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 19px;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
}

/* ======================================================
   CONTAINER
   ====================================================== */
.container,
.container-wide {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container {
  max-width: 1160px;
}

.container-wide {
  max-width: 1400px;
}

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--r-full);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  outline: none;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: -1;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: var(--white);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(99, 102, 241, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ======================================================
   NAVBAR
   ====================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: var(--r-full);
  border: 2px solid var(--indigo);
  object-fit: cover;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.nav-title {
  font-size: 0.7rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-400);
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  transition: all 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(0, 212, 255, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: var(--space-sm);
}

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--gray-400);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.3s var(--ease);
}

.nav-social:hover {
  border-color: var(--indigo);
  color: var(--white);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0.4rem;
  z-index: 1100;
}

.bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.35s var(--ease);
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ======================================================
   HERO SECTION
   ====================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: clip;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: var(--r-full);
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.hero-glow--left {
  top: -100px;
  left: -200px;
  background: var(--indigo);
}

.hero-glow--right {
  bottom: -100px;
  right: -200px;
  background: var(--violet);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-xl);
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 10;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--indigo-light);
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.hero-heading {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.hero-subtext {
  font-size: 1.05rem;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 550px;
  margin-bottom: var(--space-xl);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  background: linear-gradient(135deg, var(--indigo-light), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 3rem;
  background: var(--border);
}

/* ======================================================
   HERO VISUAL (Profile)
   ====================================================== */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  animation: spin 18s linear infinite;
}

.ring-svg {
  width: 100%;
  height: 100%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-frame {
  position: relative;
  width: 230px;
  height: 230px;
  border-radius: var(--r-full);
  overflow: hidden;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--indigo), var(--violet)) border-box;
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.25);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--r-full);
  transform: translateY(10px) scale(1.1);
}

/* Float Badges */
.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  animation: float 4s ease-in-out infinite;
}

.float-badge--react {
  top: 5%;
  left: -10%;
  background: rgba(8, 12, 20, 0.85);
  color: #61dafb;
  animation-delay: 0s;
}

.float-badge--js {
  bottom: 12%;
  left: -8%;
  background: rgba(8, 12, 20, 0.85);
  color: #f7df1e;
  animation-delay: 1.2s;
}

.float-badge--ts {
  top: 20%;
  right: -8%;
  background: rgba(8, 12, 20, 0.85);
  color: #3178c6;
  animation-delay: 0.6s;
}

.float-badge--next {
  bottom: 15%;
  right: -10%;
  background: rgba(8, 12, 20, 0.85);
  color: #ffffff;
  animation-delay: 1.8s;
}

.ts-icon {
  font-size: 0.75rem;
  font-weight: 900;
  font-family: var(--font-mono);
  background: #3178c6;
  color: #fff;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 0rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.5;
  animation: fadeInUp 1s ease 1.5s both;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--gray-400);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--gray-400);
  border-radius: 2px;
  animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

.scroll-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5rem;
}

/* ======================================================
   GRADIENT TEXT
   ====================================================== */
.gradient-text {
  background: linear-gradient(135deg, var(--indigo-light), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.3));
}

/* ======================================================
   SECTIONS & TYPOGRAPHY
   ====================================================== */
.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--r-full);
  color: var(--indigo-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ======================================================
   ABOUT
   ====================================================== */
.about-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.about-body {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.8;
}

/* ======================================================
   SKILLS
   ====================================================== */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 1160px;
  margin: 0 auto;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--indigo-light);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 var(--space-md);
}

.category-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--indigo-light), transparent);
  opacity: 0.3;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  transition: all 0.3s var(--ease);
  cursor: default;
}

.skill-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.skill-icon {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px currentColor);
}

/* Skill Icon Colors — Fluorescent */
.skill-html {
  color: #ff3c00;
}
.skill-css {
  color: #0084ff;
}
.skill-js {
  color: #fff01f;
}
.skill-react {
  color: #00f2ff;
}
.skill-ts {
  color: #3178c6;
}
.skill-next {
  color: #ffffff;
}
.skill-redux {
  color: #bc00ff;
}
.skill-boot {
  color: #9d00ff;
}
.skill-tw {
  color: #00e1ff;
}
.skill-api {
  color: #39ff14;
}
.skill-resp {
  color: #ff9d00;
}
.skill-git {
  color: #ff3c00;
}
.skill-npm {
  color: #ff0055;
}
.skill-auth {
  color: #bc00ff;
}
.skill-tanstack {
  color: #ff0055;
}
.skill-hooks {
  color: #00d4ff;
}
.skill-state {
  color: #ff00ff;
}
.skill-arch {
  color: #39ff14;
}
.skill-vercel {
  color: #ffffff;
}
.skill-rest {
  color: #00ffcc;
}
.skill-proxy {
  color: #fff01f;
}
.skill-axios {
  color: #5a29e4;
}
.skill-rhf {
  color: #ec5990;
}
.skill-zod {
  color: #3e67b1;
}
.skill-toast {
  color: #f1c40f;
}
.skill-fa {
  color: #339af0;
}
.skill-fontopt {
  color: #2ecc71;
}
.skill-formik {
  color: #00ffcc;
}
.skill-hero {
  color: #ff6b35;
}
.skill-shadcn {
  color: #8b5cf6;
}
.skill-ux {
  color: #06b6d4;
}
.skill-restful {
  color: #10b981;
}
.skill-teamwork {
  color: #3b82f6;
}
.skill-problem {
  color: #f59e0b;
}
.skill-time {
  color: #ef4444;
}
.skill-adapt {
  color: #8b5cf6;
}
.skill-comm {
  color: #10b981;
}

/* ======================================================
   SKILLS MARQUEE
   ====================================================== */
.skills-marquee-shell {
  width: 100%;
  max-width: 1200px;
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

/* Fade edges */
.skills-marquee-shell::before,
.skills-marquee-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 88px;
  pointer-events: none;
  z-index: 2;
}

.skills-marquee-shell::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.skills-marquee-shell::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.skills-marquee-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skills-marquee {
  width: 100%;
  overflow: hidden;
  padding: 0.55rem 0;
}

.skills-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 2.25rem;
  width: max-content;
  animation: skills-marquee-scroll 300s linear infinite;
}

/* Reverse direction for middle row */
.skills-marquee--reverse .skills-marquee-track {
  animation-direction: reverse;
}

/* Pause on hover */
.skills-marquee:hover .skills-marquee-track {
  animation-play-state: paused;
}

@keyframes skills-marquee-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Skill Pill */
.skill-pill {
  flex: 0 0 auto;
  width: 160px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem;
  opacity: 0.8;
  transform: translateY(var(--skill-offset, 0));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.skill-pill:hover {
  opacity: 1;
  transform: translateY(var(--skill-offset, 0)) scale(1.15);
}

.skill-pill i {
  font-size: 3rem;
  color: var(--skill-color);
}

.skill-pill span {
  color: var(--skill-color);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .skills-marquee-stack { gap: 1.15rem; }
  .skills-marquee-track { gap: 1.35rem; }
  .skill-pill {
    width: 130px;
    min-height: 100px;
  }
  .skill-pill i { font-size: 2.5rem; }
  .skill-pill span { font-size: 0.75rem; }
}

/* ======================================================
   PROJECTS
   ====================================================== */
/* ======================================================
   PROJECTS GRID (Archive)
   ====================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  align-items: stretch;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 213, 0.3);
  padding: var(--space-lg);
  border-radius: var(--r-lg);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05),
    rgba(188, 0, 255, 0.05)
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--teal);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 255, 213, 0.2);
}

.project-card:hover::before {
  opacity: 1;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  line-clamp: 5;
  overflow: hidden;
}

.project-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--indigo-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s var(--ease);
  margin-top: auto;
}

.project-link:hover {
  color: var(--indigo-light);
  gap: 0.85rem;
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   PROJECTS CAROUSEL
   ====================================================== */
/* ======================================================
   PROJECTS SECTION STYLES
   ====================================================== */
.projects-container {
  display: flex;
  flex-direction: column;
}

.projects-subheader {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-lg);
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.projects-subheader:first-of-type {
  margin-top: 0;
}

.projects-subheader::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--indigo-light), transparent);
  opacity: 0.2;
}

.projects-carousel {
  position: relative;
  width: 100%;
  margin: 0 auto 7rem;
}

.projects-carousel__frame {
  position: relative;
  width: 100%;
  padding: 0 4rem;
}

.projects-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid rgba(0, 255, 213, 0.3);
  background: var(--surface);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: all 0.4s var(--ease);
}

.projects-carousel__viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.05),
    rgba(188, 0, 255, 0.05)
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 5;
}

.projects-carousel__viewport:hover {
  background: var(--bg-card-hover);
  border-color: var(--teal);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 255, 213, 0.2);
}

.projects-carousel__viewport:hover::before {
  opacity: 1;
}

.projects-carousel__track {
  display: flex;
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.project-card--carousel {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  background: var(--bg-card);
  transition: transform 0.8s var(--ease);
}

/* Specific background for specific project images */
img[src*="Grocery-img.png"],
img[src*="fresh-cart-img.png"] {
  background-color: #ffffff !important;
}

.project-card--carousel:hover .project-card__image {
  transform: scale(1.02);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(8, 12, 20, 0.2) 40%,
    rgba(8, 12, 20, 0.95) 100%
  );
  display: flex;
  flex-direction: row; /* Side-by-side on desktop */
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap; /* Allows "going down to another line" if too long */
  gap: 1.5rem; /* Gap between panel and button when wrapping */
  padding: 2.5rem 2rem;
  transition: background 0.4s var(--ease);
}

.project-card__panel {
  flex: 1;
  min-width: 0; /* Prevents text from pushing flex container */
  max-width: 800px;
  opacity: 1;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
}

.project-actions {
  display: flex;
  gap: 1rem;
  transition: all 0.4s var(--ease);
  margin-top: 0; /* Reset margin-top for desktop row layout */
}

.project-card__panel .project-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--white);
  line-height: 1.1;
  text-shadow:
    0 0 12px var(--indigo-light),
    0 0 20px rgba(0, 212, 255, 0.4);
}

.project-card__panel .project-tech {
  font-size: 0.85rem;
  color: var(--indigo-light);
  line-height: 1.5;
  margin-bottom: 0;
  display: block;
  white-space: normal; /* Ensures it takes another line */
  overflow-wrap: break-word; /* Extra robustness for long strings */
  word-break: break-word; /* Force break if necessary */
}

@media (max-width: 768px) {
  .projects-carousel__frame {
    padding: 0;
  }

  .projects-carousel__nav {
    display: flex;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }

  .projects-carousel:hover .projects-carousel__nav {
    opacity: 1;
    pointer-events: auto;
  }

  .project-card--carousel {
    height: 620px;
  }

  .project-card__image {
    object-position: center 18%; /* Slide down more on mobile */
  }

  img[src*="Grocery-img.png"],
  img[src*="fresh-cart-img.png"] {
    object-position: top; /* Keep these at the top */
  }

  .project-card__overlay {
    padding: 3rem 1.5rem 2rem; /* Comfortable side-to-side padding */
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(8, 12, 20, 0.4) 20%,
      rgba(8, 12, 20, 0.9) 50%,
      rgba(8, 12, 20, 1) 100%
    );
  }

  .project-card__panel {
    flex: none; /* Prevents stretching and pushes button closer */
    max-width: 100%;
    margin-bottom: 1.25rem; /* Reduced for a tighter, cleaner stack */
    display: flex;
    flex-direction: column;
  }

  .project-card__panel .project-title {
    font-size: 1.75rem;
    margin-bottom: 0.85rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
  }

  .project-card__panel .project-tech {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    width: 100%;
    white-space: normal;
  }

  .project-actions {
    width: 100%;
    margin-top: 0;
  }

  .project-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.projects-carousel__nav {
  position: absolute;
  top: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--white);
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s var(--ease);
}

.projects-carousel__nav:hover {
  background: var(--indigo);
  border-color: var(--indigo-light);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.projects-carousel__nav--prev {
  left: 0;
}

.projects-carousel__nav--next {
  right: 0;
}

.projects-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.projects-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: var(--r-full);
  background: var(--gray-600);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s var(--ease);
}

.projects-carousel__dot.is-active {
  width: 40px;
  background: var(--indigo);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

/* Consistently handled by the consolidated media query above */

/* ======================================================
   CONTACT
   ====================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-xl);
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  align-items: start;
}

.contact-intro {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.3s var(--ease);
}

.channel-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(4px);
}

.channel-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.channel-icon--github {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.channel-icon--linkedin {
  background: rgba(10, 102, 194, 0.15);
  color: #0a66c2;
}

.channel-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.channel-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  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.45rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-600);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--indigo);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--white);
}

.footer-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid var(--indigo);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--gray-600);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  color: var(--gray-400);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.3s var(--ease);
}

.footer-socials a:hover {
  border-color: var(--indigo);
  color: var(--white);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

/* ======================================================
   SCROLL ANIMATIONS
   ====================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-glow {
    width: 300px;
    height: 300px;
    filter: blur(40px);
  }
}

@media (max-width: 680px) {
  html {
    font-size: 17px;
  }

  .container {
    padding: 0 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 1050;
    display: none;
  }

  .nav-menu.active {
    display: flex;
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.6rem 1.5rem;
  }

  .nav-actions {
    margin-left: 0;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    transform: scale(0.75);
  }

  .scroll-indicator {
    display: none;
  }

  .profile-frame {
    width: 180px;
    height: 180px;
  }

  .profile-ring {
    width: 250px;
    height: 250px;
  }

  .float-badge--react {
    left: 0;
    top: 10%;
  }

  .float-badge--js {
    left: 0;
  }

  .float-badge--ts {
    right: 0;
  }

  .float-badge--next {
    right: 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-divider {
    height: 2rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 0 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card--carousel {
    height: 520px;
  }

  .project-card {
    padding: 1rem;
  }

  .hero-heading {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .hero-subtext {
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
  }

  .hero-cta {
    gap: 0.5rem;
    flex-direction: column;
    margin-bottom: var(--space-lg);
  }

  .btn {
    width: 100%;
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0.75rem;
  }

  .stat-divider {
    width: 2rem;
    height: 1px;
  }

  .section-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
  }

  .nav-container {
    padding: 0 0.75rem;
  }

  .skill-item {
    font-size: 0.85rem;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .contact-form {
    gap: 1rem;
    padding: 1.25rem;
  }

  .form-group {
    gap: 0.5rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .contact-intro {
    margin-bottom: 1.25rem;
  }

  .contact-channels {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .channel-card {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .channel-value {
    font-size: 0.85rem;
    word-break: break-all;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  .section {
    padding: 2.5rem 0;
    width: 100%;
    overflow: hidden;
  }

  .skills-container,
  .projects-grid,
  .about-grid,
  .contact-grid {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
