:root {
  --bg: #0a0e27;
  --bg-soft: #0f1530;
  --card: #151d3b;
  --text: #f5f5f5;
  --muted: #a8b2d1;
  --accent: #00ff88;
  --accent-2: #00d4ff;
  --lime: #00ff88;
  --outline: rgba(245, 245, 245, 0.12);
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.theme-light {
  --bg: #f4f5f8;
  --bg-soft: #e7e9ee;
  --card: #ffffff;
  --text: #111317;
  --muted: #5b6472;
  --accent: #3bdc6e;
  --accent-2: #1aa3a8;
  --lime: #2bcf5b;
  --outline: rgba(17, 19, 23, 0.12);
  --shadow: 0 25px 80px rgba(15, 18, 22, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 255, 136, 0.1), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(0, 212, 255, 0.08), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(0, 255, 136, 0.08), transparent 55%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 55%);
  z-index: -2;
  pointer-events: none;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.ambient-bg::before,
.ambient-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 255, 136, 0.12), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.1), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 55%);
  opacity: 0.6;
  mix-blend-mode: screen;
  transform: translateZ(60px) rotateX(8deg) rotateY(-6deg);
  animation: ambientFloat 24s ease-in-out infinite;
}

.ambient-bg::after {
  opacity: 0.45;
  transform: translateZ(90px) rotateX(-10deg) rotateY(10deg);
  animation: ambientFloatAlt 30s ease-in-out infinite;
}

@keyframes ambientFloat {
  0% {
    transform: translateZ(60px) rotateX(8deg) rotateY(-6deg) translateY(0);
  }
  50% {
    transform: translateZ(80px) rotateX(12deg) rotateY(2deg) translateY(-20px);
  }
  100% {
    transform: translateZ(60px) rotateX(8deg) rotateY(-6deg) translateY(0);
  }
}

@keyframes ambientFloatAlt {
  0% {
    transform: translateZ(90px) rotateX(-10deg) rotateY(10deg) translateY(0);
  }
  50% {
    transform: translateZ(70px) rotateX(-4deg) rotateY(16deg) translateY(18px);
  }
  100% {
    transform: translateZ(90px) rotateX(-10deg) rotateY(10deg) translateY(0);
  }
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.95), rgba(15, 21, 48, 0.85));
  backdrop-filter: blur(18px);
  z-index: 10;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.theme-light .site-header {
  background: linear-gradient(135deg, rgba(244, 245, 248, 0.95), rgba(231, 233, 238, 0.85));
  border-bottom: 1px solid rgba(17, 19, 23, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-family: "Instrument Serif", serif;
  font-size: 1.4rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

.logo:hover {
  opacity: 0.85;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(124, 255, 77, 0.18);
  border: 1px solid rgba(124, 255, 77, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 0.9rem;
}

.brand-text {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.95rem;
}

.nav-link {
  position: relative;
  padding: 6px 2px;
  color: var(--text);
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.35);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar::before {
  transform: translateY(-6px);
}

.nav-toggle-bar::after {
  transform: translateY(4px);
}

.site-header.is-menu-open .nav-toggle-bar {
  opacity: 0;
}

.site-header.is-menu-open .nav-toggle-bar::before {
  transform: translateY(0) rotate(45deg);
}

.site-header.is-menu-open .nav-toggle-bar::after {
  transform: translateY(-2px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 18px 18px 22px;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.98), rgba(15, 21, 48, 0.95));
  border-bottom: 1px solid rgba(0, 255, 136, 0.12);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9;
}

.theme-light .mobile-nav {
  background: linear-gradient(135deg, rgba(244, 245, 248, 0.98), rgba(231, 233, 238, 0.95));
  border-bottom: 1px solid rgba(17, 19, 23, 0.1);
}

.mobile-nav a {
  padding: 10px 6px;
  font-size: 1rem;
  display: block;
  color: var(--text);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 8px;
}

.site-header.is-menu-open .mobile-nav {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(124, 255, 77, 0.12);
}

.btn-hire {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  padding: 10px 18px;
  position: relative;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-hire::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -60%;
  width: 60%;
  height: 300%;
  background: linear-gradient(120deg, transparent, rgba(0, 255, 136, 0.35), transparent);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.btn-hire:hover {
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-2px);
}

.btn-hire:hover::before {
  transform: translateX(260%) skewX(-18deg);
}

.btn-hire::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.theme-light .btn-hire {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59, 220, 110, 0.08);
}

.theme-light .btn-hire:hover {
  background: rgba(59, 220, 110, 0.16);
}

.theme-light .btn-hire::before {
  background: linear-gradient(120deg, transparent, rgba(59, 220, 110, 0.35), transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -60%;
  width: 60%;
  height: 300%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn:hover::after {
  transform: translateX(260%) skewX(-18deg);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #121212;
}

.btn-outline {
  border-color: rgba(245, 245, 245, 0.35);
}

.btn-ghost {
  background: rgba(245, 245, 245, 0.08);
}

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.1;
  font-family: "Instrument Serif", serif;
  margin-bottom: 20px;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy .accent {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent-2);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: 0.08em;
}

.subhead {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-media {
  display: grid;
  gap: 22px;
}

.timeline-btn {
  display: none;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.3);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.timeline-badge:hover {
  background: rgba(0, 255, 136, 0.25);
  border-color: rgba(0, 255, 136, 0.5);
  transform: translateY(-2px);
}

.hero-icons-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 0 0;
}

.icon-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(0, 255, 136, 0.4);
  border-radius: 50%;
  color: var(--accent);
  transition: all 0.3s ease;
  text-decoration: none;
}

.icon-link:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-4px);
  color: var(--accent);
}

.icon-link svg {
  width: 20px;
  height: 20px;
}

.timeline-card {
  background: linear-gradient(140deg, rgba(0, 255, 136, 0.1), rgba(21, 29, 59, 0.85));
  border-radius: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(0, 255, 136, 0.15);
  color: var(--muted);
  margin-bottom: 12px;
}

.timeline-body {
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-card {
  background: var(--card);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.float {
  animation: floaty 6s ease-in-out infinite;
}

.profile-card img {
  border-radius: 16px;
}

.profile-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  background: var(--bg);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat span {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
  color: var(--muted);
  font-size: 0.85rem;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.2;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
  100% {
    opacity: 0.2;
    transform: scaleY(0.6);
  }
}

@keyframes floaty {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.about {
  padding: 70px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.about-card {
  background: var(--card);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
}

.about-card img {
  border-radius: 18px;
}

.available {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(13, 15, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.work {
  padding: 80px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 10px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}

.section-head h2::after {
  content: "";
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible .section-head h2::after,
.reveal-stagger.is-visible .section-head h2::after {
  transform: scaleX(1);
}

.section-head p {
  color: var(--muted);
}

/* ✅ Projects: exactly 2 per row on desktop */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ✅ Tablet & below: 1 per row */
@media (max-width: 920px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 30px;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.portfolio-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card);
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.portfolio-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0), rgba(10, 14, 39, 0.85));
}

.portfolio-info h3 {
  margin: 0;
  font-size: 1rem;
}

.portfolio-item:hover {
  transform: translateY(-6px);
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

.portfolio-item.hide {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 8, 18, 0.72);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.modal-content {
  width: min(900px, 92vw);
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 14, 24, 0.7);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-image {
  width: 100%;
  height: auto;
  display: block;
}

.modal-body {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.modal-title {
  margin: 0;
  font-size: 1.4rem;
}

.modal-desc {
  margin: 0;
  color: var(--muted);
}

.theme-light .portfolio-modal {
  background: rgba(244, 245, 248, 0.75);
}

.theme-light .modal-close {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(17, 19, 23, 0.18);
}

.project-card {
  background: var(--card);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
  min-height: 180px;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card h3 {
  font-size: 1.05rem;
}

.project-card p {
  color: var(--muted);
}

.project-card a {
  color: var(--accent);
  font-weight: 600;
}

.project-card:hover {
  transform: translateY(-6px);
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.faq {
  padding: 70px 0;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--bg-soft);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 200ms ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.25);
}

.faq-panel {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--muted);
}

.faq-panel.open {
  padding: 16px 20px 20px;
  max-height: 200px;
}

.icon {
  font-size: 1.4rem;
  color: var(--accent-2);
}

.cta {
  padding: 70px 0 90px;
}

.cta-inner {
  background: linear-gradient(120deg, rgba(0, 255, 136, 0.12), rgba(0, 212, 255, 0.1));
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(90deg, rgba(12, 14, 24, 0.85), rgba(18, 22, 36, 0.9));
}

.theme-light .site-footer {
  border-top: 1px solid rgba(17, 19, 23, 0.12);
  background: linear-gradient(90deg, rgba(244, 245, 248, 0.9), rgba(231, 233, 238, 0.9));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.footer-meta p {
  color: var(--text);
  font-weight: 500;
}

.footer-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-meta-item:hover {
  color: var(--text);
}

.footer-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.footer-social:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(0, 255, 136, 0.08);
}

.cookie-settings {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.cookie {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 92vw);
  background: rgba(23, 27, 34, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-hero {
  padding: 90px 0 50px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-family: "Instrument Serif", serif;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--muted);
  max-width: 640px;
}

.page-hero .badge {
  margin-bottom: 18px;
}

.search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 20px;
}

.search-input {
  flex: 1;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--text);
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid.full {
  grid-template-columns: 1fr;
}

input,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

input:hover,
textarea:hover {
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 255, 136, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
}

.contact-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-transform: capitalize;
}

.contact-info-card {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(21, 29, 59, 0.6));
  border-radius: 24px;
  padding: 32px 24px;
  border: 1.5px solid rgba(0, 255, 136, 0.2);
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
}

.profile-section {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(0, 255, 136, 0.3);
  transition: all 0.3s ease;
}

.profile-image:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.availability-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 255, 136, 0.2);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info-content h3 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--text);
}

.socials-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.socials-links a {
  padding: 8px 14px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 999px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.socials-links a:hover {
  background: rgba(0, 255, 136, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

.detail-item p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}

.info-card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 18px;
}

.info-block h4 {
  margin-bottom: 6px;
}

.tabs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 30px;
}

.tab {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab.active {
  color: var(--text);
  border-color: var(--accent-2);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.highlight-card {
  background: var(--card);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.numbered {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 750ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) {
  transition-delay: 0ms;
}

.reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 90ms;
}

.reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 180ms;
}

.reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 270ms;
}

.reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 360ms;
}

.reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 450ms;
}

.reveal-stagger.is-visible > *:nth-child(7) {
  transition-delay: 540ms;
}

.reveal-stagger.is-visible > *:nth-child(8) {
  transition-delay: 630ms;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 24px;
  padding: 30px 0;
}

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(21, 29, 59, 0.6));
  border-radius: 18px;
  border: 1.5px solid rgba(0, 255, 136, 0.15);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.skill-icon::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.1), transparent 70%);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

.skill-icon svg,
.skill-icon iconify-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.skill-icon p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  text-align: center;
}

.skill-icon:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.1));
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 255, 136, 0.15);
}

.skill-icon:hover svg,
.skill-icon:hover iconify-icon {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
}

/* Individual animation stagger */
.skill-icon-1 {
  animation: slideInUp 0.6s ease 0.1s both;
}

.skill-icon-2 {
  animation: slideInUp 0.6s ease 0.2s both;
}

.skill-icon-3 {
  animation: slideInUp 0.6s ease 0.3s both;
}

.skill-icon-4 {
  animation: slideInUp 0.6s ease 0.4s both;
}

.skill-icon-5 {
  animation: slideInUp 0.6s ease 0.5s both;
}

.skill-icon-6 {
  animation: slideInUp 0.6s ease 0.6s both;
}

.skill-icon-7 {
  animation: slideInUp 0.6s ease 0.7s both;
}

.skill-icon-8 {
  animation: slideInUp 0.6s ease 0.8s both;
}

.skill-icon-9 {
  animation: slideInUp 0.6s ease 0.9s both;
}

.skill-icon-10 {
  animation: slideInUp 0.6s ease 1s both;
}

.skill-icon-11 {
  animation: slideInUp 0.6s ease 1.1s both;
}

.skill-icon-12 {
  animation: slideInUp 0.6s ease 1.2s both;
}

.skill-icon-13 {
  animation: slideInUp 0.6s ease 1.3s both;
}

.skill-icon-14 {
  animation: slideInUp 0.6s ease 1.4s both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.theme-light .skill-icon {
  background: linear-gradient(135deg, rgba(59, 220, 110, 0.08), rgba(255, 255, 255, 0.6));
  border-color: rgba(59, 220, 110, 0.15);
}

.theme-light .skill-icon:hover {
  background: linear-gradient(135deg, rgba(59, 220, 110, 0.15), rgba(26, 163, 168, 0.1));
  border-color: rgba(59, 220, 110, 0.4);
  box-shadow: 0 12px 24px rgba(59, 220, 110, 0.1);
}

.theme-light .skill-icon:hover svg {
  filter: drop-shadow(0 0 8px rgba(59, 220, 110, 0.4));
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    transition-duration: 200ms;
    transform: none;
  }

  .nav-link::after {
    transition: none;
  }

  .btn::after,
  .btn-hire::before {
    transition: none;
    transform: none;
  }

  .skill-icon::before {
    animation: none;
  }

  .ambient-bg::before,
  .ambient-bg::after {
    animation: none;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-actions .btn-hire {
    display: none;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
