@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --bg-color: #ffffff;
  --section-alt: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-primary: #7346e5;
  --accent-secondary: #9308b2;
  --slider-height: 1.2em;
  --brand-gradient: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  --particle-rgb: 115, 70, 229;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h2 {
  line-height: 1.3;
}

h3 {
  margin-bottom: 12px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

section {
  padding: 6rem 0;
}

/* ── Nav ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem 0;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: var(--accent-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.3s;
  white-space: nowrap;
}

.resume-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary) !important;
}

.btn-talk {
  background: var(--text-primary);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-talk:hover {
  background: var(--brand-gradient);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
  flex-shrink: 0;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Nav Drawer ───────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-drawer.open {
  opacity: 1;
  pointer-events: all;
}

.nav-drawer a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-drawer a:hover {
  color: var(--accent-primary);
}

.nav-drawer .btn-talk-drawer {
  background: var(--text-primary);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 1rem;
  text-decoration: none;
}

/* ── Ripple ──────────────────────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

button,
.filter-btn {
  position: relative;
  overflow: hidden;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  background-image: radial-gradient(at 0% 20%, #e5e9ff 0, transparent 70%), radial-gradient(at 100% 90%, #f3e5ff 0, transparent 30%);
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px 0;
  text-align: left;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 100%;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
}

.text-slider {
  display: inline-block;
  vertical-align: top;
  height: var(--slider-height);
  position: relative;
  min-width: 400px;
}

.slider-wrapper {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-item {
  display: block;
  height: var(--slider-height);
  line-height: 1.1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
}

.hero p {
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  color: var(--text-secondary);
  font-weight: 400;
  text-wrap: balance;
  position: relative;
  z-index: 2;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* ── Bio ─────────────────────────────────────────────── */
.bio-section {
  border-top: 1px solid #e2e8f0;
  position: relative;
  z-index: 2;
  background: var(--bg-color);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ── Skills ──────────────────────────────────────────── */
.skills-section {
  background: var(--section-alt);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.skills-card {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.skills-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(115, 70, 229, 0.1);
}

.skills-icon {
  padding: 0.6rem;
  background: var(--section-alt);
  color: var(--accent-primary);
  border-radius: 0.75rem;
  margin-right: 1rem;
  display: flex;
  flex-shrink: 0;
}

.skills-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
}

.portrait-wrapper {
  position: relative;
}

.portrait-img {
  aspect-ratio: 1 / 1;
  position: relative;
  width: 100%;
}

.portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.stats-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--brand-gradient);
  color: white;
  padding: 1.5rem;
  border-radius: 2rem;
  display: block;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.stats-badge .number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.stats-badge .label {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ── Tools ───────────────────────────────────────────── */
.tools-section {
  padding: 6rem 0;
  background: #fff;
  border-bottom: 1px solid var(--accent-secondary);
}

.tools-category {
  margin-bottom: 3rem;
}

.tools-category h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  line-height: 1;
}

.tools-category h3::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: var(--accent-secondary);
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-pill {
  padding: 0.6rem 1.2rem;
  background: var(--section-alt);
  border: 1px solid var(--accent-secondary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0;
  transform: scale(0.8);
}

/* ── Section Title ───────────────────────────────────── */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
}

/* ── Featured Work Tabs ───────────────────────────────── */
.fw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 3rem;
  position: relative;
}

.fw-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.7rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: -1px;
  transition:
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
  font-family: "Noto Sans", sans-serif;
}

.fw-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.fw-tab:hover:not(.active) {
  color: var(--text-primary);
}

.fw-panel {
  display: none;
  flex-direction: column;
  gap: 0;
}

.fw-panel.active {
  display: flex;
}

.fw-blurb {
  font-style: italic;
}

.fw-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.fw-row:first-child {
  padding-top: 0;
}

.fw-row:last-of-type {
  border-bottom: none;
}

.fw-media {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: var(--section-alt);
}

.fw-media img,
.fw-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fw-media--linked {
  position: relative;
}

.fw-media--linked a {
  display: block;
  position: relative;
}

.fw-media--linked img {
  transition: opacity 0.2s ease;
}

.fw-media--linked:hover img {
  opacity: 0.85;
}

.fw-external-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none;
}

.fw-narrative {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fw-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
}

.fw-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.fw-block {
  margin-bottom: 1rem;
}

.fw-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

.fw-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.fw-list {
  padding-left: 1.1rem;
  margin: 0;
}

.fw-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.2rem;
}

.fw-list li strong {
  color: var(--text-primary);
  font-weight: 700;
}

.fw-impact {
  background: var(--section-alt);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1rem 1.1rem;
  margin-top: 0.25rem;
}

.fw-seemore {
  padding-top: 2rem;
}

.fw-seemore button {
  background: none;
  border: 1.5px solid var(--text-primary);
  border-radius: 9999px;
  padding: 0.65rem 1.75rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  font-family: "Noto Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
}

.fw-seemore button:hover {
  background: var(--text-primary);
  color: white;
}

.fw-grid-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Portfolio Grid ──────────────────────────────────── */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
  opacity: 0;
  transform: translateY(50px);
}

.project-img-wrapper {
  aspect-ratio: 4 / 3;
  background: var(--section-alt);
  border-radius: 1.5rem;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid #e2e8f0;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.project-img-wrapper img.loaded {
  opacity: 1;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info span {
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.4rem;
}

.project-info h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.project-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.project-card--external {
  position: relative;
}

.project-card--external::after {
  content: "↗";
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
}

/* ── Expandable projects grid ─────────────────────────── */
.projects-expandable {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  overflow: hidden;
}

.projects-expandable.open {
  grid-template-rows: 1fr;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #e2e8f0;
}

.projects-expandable > div {
  min-height: 0;
}

/* ── See All buttons inside fw-panel ─────────────────── */
.fw-panel > button {
  background: none;
  border: 1.5px solid var(--text-primary);
  border-radius: 9999px;
  padding: 0.65rem 1.75rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  font-family: "Noto Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
  margin-top: 2rem;
  display: inline-block;
}

.fw-panel > button:hover {
  background: var(--text-primary);
  color: white;
}
/* ── Modal ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: white;
  border-radius: 2rem;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(50px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--accent-primary);
  transform: rotate(90deg);
}

.modal-hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: none;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 1);
}

.modal-hero-img.active {
  display: block;
}

.modal-hero-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: none;
  background: #000;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 1);
}

.modal-hero-video.active {
  display: block;
}

.modal-body {
  padding: 2.5rem;
}

.modal-category {
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.modal-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--section-alt);
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.modal-detail-item h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.modal-detail-item p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-slider {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-slider__track {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.modal-slider__slide {
  display: none;
}

.modal-slider__slide.active {
  display: block;
}

.modal-slider__slide img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-slider__btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.modal-slider__btn--prev {
  left: 10px;
}

.modal-slider__btn--next {
  right: 10px;
}

.modal-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: 10px;
}

.modal-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.modal-slider__dot.active {
  background: rgba(255, 255, 255, 1);
}

/* ── Footer / Contact ────────────────────────────────── */
footer {
  padding: 6rem 0 3rem;
  text-align: center;
  background-color: #f0f3ff;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  font-family: "Noto Sans", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(115, 70, 229, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.btn-submit {
  background: var(--brand-gradient);
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(115, 70, 229, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  display: block;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.social-links a {
  color: var(--text-secondary);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .work-layout {
    grid-template-columns: 1fr 200px;
    gap: 2rem;
  }

  .skills-grid {
    gap: 3rem;
  }

  .bio-grid {
    gap: 3rem;
  }
}

@media (max-width: 860px) {
  section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav-links-container {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-drawer {
    display: flex;
  }

  .hero {
    padding: 100px 0 50px 0;
    min-height: 60vh;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .portrait-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }

  .stats-badge {
    bottom: -0.75rem;
    right: -0.75rem;
    padding: 1rem 1.25rem;
  }

  .stats-badge .number {
    font-size: 2rem;
  }

  .work-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    grid-template-rows: auto auto;
  }

  .work-layout aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    top: auto;
    order: -1;
  }
  .fw-tabs {
    padding-right: 2rem; /* lets the last tab peek, showing it's cut off */
    scroll-padding-left: 1.25rem;
    scroll-snap-type: x proximity;
  }

  .fw-tab {
    scroll-snap-align: start;
  }

  .filter-btn {
    width: auto;
    margin-bottom: 0;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .modal-details {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .modal-body {
    padding: 1.75rem;
  }

  .cs-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .fw-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .fw-tabs::-webkit-scrollbar {
    display: none;
  }

  .fw-tab {
    flex-shrink: 0;
  }

  .fw-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .fw-row:first-child {
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 90px 0 40px 0;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    margin-bottom: 1rem;
  }

  .text-slider {
    min-width: 160px;
  }

  .hero p {
    font-size: 1rem;
  }

  .bio-text {
    font-size: 1rem;
    gap: 1.25rem;
  }

  .skills-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .skills-card {
    padding: 1rem;
  }

  .skills-name {
    font-size: 0.875rem;
  }

  .portrait-wrapper {
    max-width: 320px;
  }

  .stats-badge {
    padding: 0.875rem 1rem;
    border-radius: 1.25rem;
  }

  .stats-badge .number {
    font-size: 1.75rem;
  }

  .stats-badge .label {
    font-size: 0.75rem;
  }

  .tools-section {
    padding: 4rem 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .work-layout aside {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .work-layout aside::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  footer {
    padding: 4rem 0 2rem;
  }

  .contact-form {
    padding: 0 0.25rem;
  }

  .modal-content {
    border-radius: 1.25rem;
    max-height: 95vh;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .modal-details {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .modal-description {
    font-size: 1rem;
  }

  .modal-slider__btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .fw-row {
    padding: 1.5rem 0;
    gap: 1.25rem;
  }

  .fw-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .logo {
    font-size: 1rem;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
