/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
  --c-primary: #06B6D4;
  --c-primary-light: #67E8F9;
  --c-secondary: #D946EF;
  --c-secondary-light: #E879F9;
  --c-accent: #3B82F6;
  --c-warm: #F59E0B;
  --c-bg: #0C1222;
  --c-text: #E2E8F0;
  --c-text-muted: #94A3B8;
  /* Glass tokens */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glass-blur: 20px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --glass-shadow-hover: 0 12px 48px rgba(6, 182, 212, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  /* Fonts */
  --font-display: 'Sora', sans-serif;
  --font-name: 'Alumni Sans', sans-serif;
  --font-body: 'Outfit', sans-serif;
  /* Layout */
  --nav-height: 56px;
  --container-max: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================
   Animated Gradient Mesh Background
   ============================================ */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  will-change: transform;
}

.bg-mesh__orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--c-primary) 0%, transparent 70%);
  top: -20%;
  left: -10%;
  animation: orb-drift-1 25s ease-in-out infinite;
}

.bg-mesh__orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--c-secondary) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation: orb-drift-2 30s ease-in-out infinite;
}

.bg-mesh__orb--3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--c-accent) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation: orb-drift-3 20s ease-in-out infinite;
}

.bg-mesh__orb--4 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--c-warm) 0%, transparent 70%);
  top: 15%;
  right: 20%;
  opacity: 0.15;
  animation: orb-drift-4 22s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-40px, 30px) scale(0.9); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -40px) scale(0.95); }
  66% { transform: translate(50px, -60px) scale(1.08); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -50px) scale(1.05); }
  66% { transform: translate(-70px, 30px) scale(0.92); }
}

@keyframes orb-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 50px) scale(1.15); }
}

/* ============================================
   Loader
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__content {
  position: relative;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: opacity 0.4s ease;
}

.loader--opening .loader__content {
  opacity: 0;
}

.loader__icon {
  color: var(--c-primary-light);
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
}

.loader__rect {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: loader-draw 1s ease forwards;
}

.loader__chevron {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  animation: loader-draw 0.5s ease forwards 0.6s;
}

.loader__line {
  stroke-dasharray: 5;
  stroke-dashoffset: 5;
  animation: loader-draw 0.3s ease forwards 0.9s;
}

@keyframes loader-draw {
  to { stroke-dashoffset: 0; }
}

/* Typing name */
.loader__name {
  font-family: var(--font-name);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 300;
  background: linear-gradient(90deg, var(--c-primary-light), var(--c-secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 1.4em;
  border-right: 2px solid var(--c-primary-light);
  animation: loader-blink 0.6s step-end infinite;
}

.loader__name--done {
  border-right-color: transparent;
  animation: none;
}

@keyframes loader-blink {
  50% { border-right-color: transparent; }
}

/* Curtains */
.loader__curtain {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: var(--c-bg);
  z-index: 10000;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.loader__curtain--top {
  top: 0;
}

.loader__curtain--bottom {
  bottom: 0;
}

.loader--opening .loader__curtain--top {
  transform: translateY(-100%);
}

.loader--opening .loader__curtain--bottom {
  transform: translateY(100%);
}

.loader--hidden {
  visibility: hidden;
}

/* ============================================
   Glass Component
   ============================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

/* Shine highlight on top edge */
.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
}

.glass:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

/* ============================================
   Container
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--sticky {
  background: rgba(12, 18, 34, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  color: var(--c-primary-light);
  transition: color var(--transition);
}

.nav__logo rect {
  stroke-dasharray: 80;
}

.nav__logo path {
  stroke-dasharray: 16;
}

.nav__logo line {
  stroke-dasharray: 5;
}

.nav__logo:hover {
  color: var(--c-secondary-light);
}

.nav__logo:hover rect {
  animation: logo-draw-rect 0.8s ease forwards;
}

.nav__logo:hover path {
  animation: logo-draw-path 0.5s ease forwards 0.3s;
}

.nav__logo:hover line {
  animation: logo-draw-line 0.3s ease forwards 0.5s;
}

@keyframes logo-draw-rect {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 80; }
  100% { stroke-dashoffset: 0; }
}

@keyframes logo-draw-path {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 16; }
  100% { stroke-dashoffset: 0; }
}

@keyframes logo-draw-line {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 5; }
  100% { stroke-dashoffset: 0; }
}

.nav__links {
  display: flex;
  gap: 48px;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  border-radius: 1px;
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--c-text);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__lang {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: border-color var(--transition);
  color: var(--c-text-muted);
}

.nav__lang:hover {
  border-color: var(--c-primary);
}

.nav__lang-option {
  color: var(--c-text-muted);
  transition: color var(--transition);
}

.nav__lang-option--active {
  color: var(--c-primary-light);
  font-weight: 600;
}

.nav__lang-separator {
  color: rgba(255, 255, 255, 0.15);
}

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

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  background: rgba(12, 18, 34, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 24px;
  border-top: 1px solid var(--glass-border);
}

.nav__mobile a {
  padding: 10px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile.open { display: flex; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.45), 0 0 12px rgba(217, 70, 239, 0.25);
}

.btn--glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--c-primary-light);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.btn--glass:hover {
  border-color: var(--c-primary);
  background: rgba(6, 182, 212, 0.08);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

/* Cascade layout: staggered left-to-right */
.hero__cascade {
  max-width: 70%;
  margin: 0 auto 36px;
  opacity: 0;
  animation: fade-up 0.6s ease forwards 0.2s;
}

.hero__greeting {
  font-family: var(--font-name);
  font-size: 1.7rem;
  color: var(--c-primary-light);
  font-weight: 300;
  text-transform: uppercase;
  text-align: left;
  padding-left: 4px;
  margin-bottom: -6px;
  line-height: 1;
}

.hero__name {
  font-family: var(--font-name);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 0.9;
  text-align: left;
  /* Shimmer effect */
  background: linear-gradient(
    135deg,
    var(--c-primary-light) 0%,
    var(--c-text) 25%,
    var(--c-secondary-light) 50%,
    var(--c-text) 75%,
    var(--c-primary-light) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite 1s;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero__title {
  font-family: var(--font-name);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1;
  text-align: right;
  margin-top: 8px;
  margin-bottom: -4px;
  padding-right: 4px;
}

.hero__highlight {
  display: block;
  font-family: var(--font-name);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  line-height: 1;
  text-align: right;
  padding-right: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--c-text-muted);
  max-width: 570px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: fade-up 0.6s ease forwards 0.5s;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.6s ease forwards 0.7s;
}

.hero__badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.6s ease forwards 0.9s;
}

.badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--c-primary-light);
  border: 1px solid var(--glass-border);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--c-primary));
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { top: -40px; }
  100% { top: 40px; }
}

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

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--c-text);
}

.section__subtitle {
  text-align: center;
  color: var(--c-text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 60px;
}

/* ============================================
   Technologies
   ============================================ */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.tech__card {
  padding: 28px 22px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tech__card:hover {
  transform: translateY(-6px) scale(1.02);
}

.tech__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--c-primary);
  transition: color var(--transition);
}

.tech__card:hover .tech__icon {
  color: var(--c-primary-light);
}

.tech__card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tech__card p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* ============================================
   Timeline / Experience
   ============================================ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline__progress {
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, var(--c-primary), var(--c-secondary));
  border-radius: 2px;
  transition: height 0.1s linear;
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px;
}

.timeline__item--right { margin-left: 50%; }

.timeline__item--left {
  margin-right: 50%;
  text-align: right;
}

.timeline__dot {
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 2px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
  transition: all var(--transition);
}

.timeline__item--right .timeline__dot { left: -8px; }
.timeline__item--left .timeline__dot { right: -8px; }

.timeline__dot--active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: scale(1.4);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.6), 0 0 32px rgba(6, 182, 212, 0.25);
  animation: dot-pulse 1.5s ease-out;
}

@keyframes dot-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); }
  30% { transform: scale(1.6); box-shadow: 0 0 20px 8px rgba(6, 182, 212, 0.4); }
  100% { transform: scale(1.4); box-shadow: 0 0 16px rgba(6, 182, 212, 0.6), 0 0 32px rgba(6, 182, 212, 0.25); }
}

.timeline__card {
  padding: 28px;
  transition: transform var(--transition);
}

.timeline__card:hover {
  transform: translateY(-2px);
}

.timeline__date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline__role {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 8px 0 -6px;
}

.timeline__company {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline__item--left .timeline__company {
  justify-content: flex-end;
}

.timeline__logo {
  width: 50px;
  height: auto;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.timeline__card:hover .timeline__logo {
  opacity: 1;
  color: #F47521;
}

.timeline__details { margin-bottom: 16px; }

.timeline__details li {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--c-text-muted);
  padding: 4px 0;
  position: relative;
  padding-left: 16px;
}

.timeline__item--left .timeline__details li {
  padding-left: 0;
  padding-right: 16px;
}

.timeline__details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  opacity: 0.6;
}

.timeline__item--left .timeline__details li::before {
  left: auto;
  right: 0;
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline__item--left .timeline__tags {
  justify-content: flex-end;
}

.timeline__tags span {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.73rem;
  font-weight: 500;
  background: rgba(6, 182, 212, 0.08);
  color: var(--c-primary-light);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

/* ============================================
   About
   ============================================ */
.about__content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about__photo {
  flex-shrink: 0;
}

.about__photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.15);
}

.about__text {
  flex: 1;
}

.about__text p {
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
}

.about__text p:last-child { margin-bottom: 0; }


/* ============================================
   Contact
   ============================================ */
.contact__form {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 36px;
}

.form__group--full { grid-column: 1 / -1; }

.form__group {
  position: relative;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 14px 12px 6px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form__group label {
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--c-text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
  transform-origin: left top;
}

/* Float up when focused or has content */
.form__group input:focus ~ label,
.form__group input:not(:placeholder-shown) ~ label,
.form__group textarea:focus ~ label,
.form__group textarea:not(:placeholder-shown) ~ label {
  top: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--c-primary-light);
  letter-spacing: 0.5px;
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12), 0 0 20px rgba(6, 182, 212, 0.06);
}

.form__group textarea { resize: none; }

.contact__form .btn {
  grid-column: 1 / -1;
  justify-content: center;
  justify-self: center;
}

.contact__success {
  text-align: center;
  max-width: 860px;
  margin: 32px auto 0;
  padding: 24px;
  color: var(--c-primary-light);
  font-weight: 400;
}

.contact__error {
  text-align: center;
  max-width: 860px;
  margin: 16px auto 0;
  padding: 16px 24px;
  color: #e74c3c;
  font-weight: 400;
}

/* ============================================
   Sticky Socials Bar
   ============================================ */
.socials-bar {
  position: fixed;
  bottom: 0;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 100;
}

.socials-bar a {
  color: var(--c-text-muted);
  display: flex;
  transition: color var(--transition), transform var(--transition);
}

.socials-bar a:hover {
  color: var(--c-primary-light);
  transform: translateY(-2px);
}

.socials-bar__line {
  width: 1px;
  height: 80px;
  background: var(--c-text-muted);
  opacity: 0.4;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 20px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer__links {
  display: none;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer__links a {
  color: var(--c-text-muted);
  transition: color var(--transition), transform var(--transition);
}

.footer__links a:hover {
  color: var(--c-primary-light);
  transform: translateY(-2px);
}

.footer__credit {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--c-text-muted);
}

/* ============================================
   Scroll Reveal
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.tech__card:nth-child(2) { transition-delay: 0.08s; }
.tech__card:nth-child(3) { transition-delay: 0.16s; }
.tech__card:nth-child(4) { transition-delay: 0.24s; }
.tech__card:nth-child(5) { transition-delay: 0.32s; }
.tech__card:nth-child(6) { transition-delay: 0.4s; }
.tech__card:nth-child(7) { transition-delay: 0.48s; }
.tech__card:nth-child(8) { transition-delay: 0.56s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  :root { --nav-height: 48px; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .socials-bar { display: none; }
  .footer__links { display: flex; }

  .hero__cascade {
    max-width: 100%;
  }

  .hero__greeting,
  .hero__name,
  .hero__title,
  .hero__highlight {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }

  .about__content {
    flex-direction: column;
    align-items: center;
    padding: 28px;
  }

  .about__photo img {
    width: 160px;
    height: 160px;
  }

  .section { padding: 70px 0; }

  .timeline__line { left: 20px; }

  .timeline__item,
  .timeline__item--right,
  .timeline__item--left {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 52px;
    padding-right: 0;
    text-align: left;
  }

  .timeline__item--right .timeline__dot,
  .timeline__item--left .timeline__dot {
    left: 12px;
    right: auto;
  }

  .timeline__item--left .timeline__details li {
    padding-left: 16px;
    padding-right: 0;
  }

  .timeline__item--left .timeline__details li::before {
    left: 0;
    right: auto;
  }

  .timeline__item--left .timeline__tags {
    justify-content: flex-start;
  }

  .contact__form {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .tech__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

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

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__cascade,
  .hero__subtitle,
  .hero__actions,
  .hero__badges {
    opacity: 1;
  }

  .bg-mesh__orb { animation: none; }
  .hero__scroll-line::after { animation: none; }
}

/* ============================================
   Performance: disable backdrop-filter on mobile
   ============================================ */
@media (max-width: 768px) {
  .badge,
  .btn--glass,
  .nav__lang {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.08);
  }
}
