/* ========== Theme Variables ========== */
:root {
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-glow: rgba(99, 102, 241, 0.45);

  --radius: 14px;
  --radius-lg: 22px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --nav-bg: rgba(10, 10, 15, 0.75);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --grid-color: rgba(99, 102, 241, 0.06);
  --input-bg: rgba(255, 255, 255, 0.05);
  --ghost-bg: rgba(255, 255, 255, 0.08);
  --ghost-border: rgba(255, 255, 255, 0.22);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-card: rgba(99, 102, 241, 0.06);
  --bg-card-hover: rgba(99, 102, 241, 0.12);
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --text-muted: #64748b;
  --nav-bg: rgba(248, 250, 252, 0.85);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --grid-color: rgba(99, 102, 241, 0.08);
  --input-bg: #ffffff;
  --ghost-bg: rgba(99, 102, 241, 0.06);
  --ghost-border: rgba(15, 23, 42, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

html[data-theme] body {
  font-family: var(--font-sans);
  background: var(--bg) !important;
  color: var(--text) !important;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ========== Custom Cursor ========== */
@media (hover: hover) and (pointer: fine) {
  html.custom-cursor-enabled,
  html.custom-cursor-enabled * {
    cursor: none !important;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .custom-cursor--visible {
    opacity: 1;
  }

  .custom-cursor__dot,
  .custom-cursor__ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
  }

  .custom-cursor__dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translate(-50%, -50%);
    z-index: 10002;
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
  }

  .custom-cursor__ring {
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent);
    transform: translate(-50%, -50%);
    z-index: 10001;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.3s ease,
      background 0.3s ease,
      opacity 0.3s ease;
  }

  .custom-cursor__ring::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px dashed var(--accent-2);
    opacity: 0.5;
    animation: cursorSpin 6s linear infinite;
  }

  .custom-cursor--hover .custom-cursor__dot {
    width: 4px;
    height: 4px;
    background: var(--accent-2);
  }

  .custom-cursor--hover .custom-cursor__ring {
    width: 52px;
    height: 52px;
    border-color: var(--accent-2);
    background: rgba(99, 102, 241, 0.12);
  }

  .custom-cursor--hover .custom-cursor__ring::before {
    opacity: 1;
    animation-duration: 3s;
  }

  .custom-cursor--click .custom-cursor__dot {
    width: 12px;
    height: 12px;
  }

  .custom-cursor--click .custom-cursor__ring {
    width: 24px;
    height: 24px;
    border-width: 3px;
  }

  [data-theme="dark"] .custom-cursor__dot {
    background: #a5b4fc;
    box-shadow: 0 0 14px rgba(165, 180, 252, 0.6);
  }

  [data-theme="dark"] .custom-cursor__ring {
    border-color: #a5b4fc;
  }

  [data-theme="dark"] .custom-cursor--hover .custom-cursor__ring {
    background: rgba(165, 180, 252, 0.15);
    border-color: #67e8f9;
  }
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ========== Animated Background ========== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
  animation: gridDrift 20s linear infinite;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

.bg-glow--1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background: var(--accent-glow);
}

.bg-glow--2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -10%;
  background: rgba(34, 211, 238, 0.2);
  animation-delay: -4s;
}

@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(48px, 48px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

/* ========== Typography ========== */
.gradient-text {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .gradient-text {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: #a5b4fc;
  color: #a5b4fc;
}

[data-theme="dark"] .section-title {
  color: #f8fafc;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-title--center {
  text-align: center;
}

.section-line {
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-bottom: 2.5rem;
}

.section-line--center {
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-elevated);
  transition: background var(--transition);
}

/* ========== Scroll Reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--visible,
.reveal--visible.reveal--left,
.reveal--visible.reveal--right {
  opacity: 1;
  transform: translate(0);
}

[data-skill] {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease, background var(--transition), border-color var(--transition);
}

[data-skill].reveal--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: padding var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.navbar--scrolled {
  padding: 0.65rem 0;
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.nav-inner {
  width: min(1140px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-brand__logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-brand__sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s ease, background var(--transition), box-shadow 0.3s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.08);
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  position: relative;
  background: var(--bg);
  transition: background var(--transition);
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #0a0a0f 0%, #0f0f18 50%, #0a0a0f 100%);
}

[data-theme="dark"] #about.section {
  background: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
}

[data-theme="dark"] #skills.section {
  background: #0a0a0f;
}

.hero-main {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-left {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text);
  animation: fadeInUp 0.8s ease 0.35s both;
}

[data-theme="dark"] .hero-title {
  color: #f8fafc;
}

[data-theme="dark"] .hero-title .gradient-text {
  color: #a5b4fc;
  -webkit-text-fill-color: #a5b4fc;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  min-height: 1.6em;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.typed-cursor {
  color: var(--accent);
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.65s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn--primary i {
  transition: transform 0.3s ease;
}

.btn--primary:hover i {
  transform: translateX(4px);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
}

[data-theme="dark"] .btn--ghost {
  border-color: var(--ghost-border);
  color: #f1f5f9;
  background: var(--ghost-bg);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

[data-theme="dark"] .btn--ghost:hover {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border-color: #818cf8;
}

.hero-social {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.95s both;
}

.hero-social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

[data-theme="dark"] .hero-social a {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hero-social a i {
  color: inherit;
}

.hero-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

[data-theme="dark"] .hero-social a:hover {
  color: #fff;
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .hero-social a:hover i {
  color: #fff;
}

.hero-right {
  flex: 0 0 380px;
  display: flex;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.hero-ring--1 {
  inset: -16px;
  border-color: var(--accent);
  opacity: 0.4;
  animation: spin 12s linear infinite;
}

.hero-ring--2 {
  inset: -32px;
  border-color: var(--accent-2);
  opacity: 0.25;
  animation: spin 18s linear infinite reverse;
}

.hero-image {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

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

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

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 4px;
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ========== About ========== */
.about {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-left {
  flex: 0 0 42%;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.about-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.about-image-frame:hover::before {
  opacity: 1;
}

.about-image-frame img {
  width: 100%;
  transition: transform 0.6s ease;
}

.about-image-frame:hover img {
  transform: scale(1.04);
}

.about-right {
  flex: 1;
}

.about-right p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

[data-theme="dark"] .about-right p {
  color: #cbd5e1;
}

/* ========== Carousel ========== */
.carousel-wrap {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.carousel-wrap .carousel-item img {
  border-radius: var(--radius-lg);
}

.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border-radius: 50%;
  opacity: 0.9;
  margin: 0 1rem;
}

/* ========== Skills ========== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s ease, background var(--transition), border-color 0.35s ease, box-shadow 0.35s ease;
}

.skill-card i {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.35s ease;
}

.skill-card span {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

[data-theme="dark"] .skill-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .skill-card span {
  color: #f1f5f9;
}

[data-theme="dark"] .skill-card i {
  color: #a5b4fc;
}

.skill-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--accent);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.skill-card:hover i {
  transform: scale(1.2) rotate(-8deg);
}

/* ========== Projects ========== */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 24px 48px var(--accent-glow);
}

.project-card--reverse {
  direction: rtl;
}

.project-card--reverse > * {
  direction: ltr;
}

.project-card__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
}

.project-card__media .carousel,
.project-card__media .carousel-inner,
.project-card__media .project-carousel--single {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project-card__media .carousel-item {
  height: 100%;
  width: 100%;
}

.project-card__media .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.06);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.85), rgba(34, 211, 238, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card__overlay i {
  font-size: 2rem;
  color: #fff;
  transform: scale(0.5);
  transition: transform 0.4s ease;
}

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

.project-card:hover .project-card__overlay i {
  transform: scale(1);
}

.project-card__content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

[data-theme="dark"] .project-card__content h3 {
  color: #f8fafc;
}

.project-card__content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.project-link i {
  transition: transform 0.3s ease;
}

.project-card:hover .project-link i {
  transform: translateX(6px);
}

.project-card__media .project-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ========== Resume ========== */
.resume-section {
  padding: 3rem 0;
}

.resume {
  text-align: center;
}

.btn--resume {
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.35);
  animation: resumePulse 3s ease infinite;
}

.btn--resume:hover {
  transform: translateY(-4px) scale(1.02);
}

@keyframes resumePulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(220, 38, 38, 0.35); }
  50% { box-shadow: 0 8px 40px rgba(220, 38, 38, 0.55); }
}

/* ========== Contact Form ========== */
.form {
  max-width: 520px;
  margin: 0 auto;
}

.form form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.form input {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-sans);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  transition: background var(--transition);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-left h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.footer-left h3 {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.footer-left p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-left i {
  color: var(--accent);
  margin-right: 0.35rem;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-right a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-right a i {
  color: var(--accent);
  width: 18px;
}

[data-theme="dark"] .footer-left h2 {
  color: #f8fafc;
}

[data-theme="dark"] .footer-right a {
  color: #cbd5e1;
}

[data-theme="dark"] .footer-right a i {
  color: #a5b4fc;
}

.footer-right a:hover {
  color: var(--text);
  transform: translateX(6px);
}

[data-theme="dark"] .footer-right a:hover {
  color: #f8fafc;
}

[data-theme="dark"] .footer-right a:hover i {
  color: #67e8f9;
}

.footer-bottom {
  text-align: center;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero-main {
    flex-direction: column-reverse;
    text-align: center;
  }

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

  .hero-actions,
  .hero-social {
    justify-content: center;
  }

  .hero-right {
    flex: none;
  }

  .hero-image {
    width: 260px;
    height: 260px;
  }

  .about {
    flex-direction: column;
  }

  .about-left {
    flex: none;
    width: 100%;
    max-width: 400px;
  }

  .project-card,
  .project-card--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
  }

  .nav-links--open {
    right: 0;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  .scroll-indicator {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn--ghost {
    width: 100%;
    justify-content: center;
  }

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

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