/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO — STYLES
   Dark professional theme
═══════════════════════════════════════════════════════════════ */

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  --bg:          #09090f;
  --bg-alt:      #0f0f1a;
  --surface:     #13131f;
  --card:        #1a1a2e;
  --card-hover:  #1f1f38;
  --border:      #2a2a42;
  --border-light:#3a3a56;

  --accent:      #7c3aed;      /* purple */
  --accent-soft: #9d5cf6;
  --accent2:     #38bdf8;      /* sky blue */
  --accent2-soft:#7dd3fc;

  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);

  --font-body:   'Inter', system-ui, sans-serif;
  --font-heading:'Space Grotesk', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
  --glow:      0 0 40px rgba(124,58,237,.25);

  --nav-h: 72px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 4px);
}

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: .02em;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,.5);
}
.btn-outline {
  background: transparent;
  color: var(--accent-soft);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(124,58,237,.12);
  transform: translateY(-2px);
}
/* Submit button — full width, subtle */
.btn-submit {
  width: 100%;
  justify-content: center;
  background: rgba(124,58,237,.18);
  color: var(--accent-soft);
  border: 1px solid rgba(124,58,237,.3);
  box-shadow: none;
  font-weight: 500;
  letter-spacing: .04em;
}
.btn-submit:hover {
  background: rgba(124,58,237,.3);
  border-color: rgba(124,58,237,.5);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,58,237,.2);
}

/* ── Section shared ─────────────────────────────────────────── */
.section { padding: 44px 0 100px; }
.section-alt { background: var(--bg-alt); }

.section-header {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin-top: 12px;
}

.accent { color: var(--accent-soft); }

/* ── Reveal animation ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(9,9,15,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,.05); }
.nav-links .btn-nav {
  background: rgba(124,58,237,.15);
  color: var(--accent-soft);
  border: 1px solid rgba(124,58,237,.35);
}
.nav-links .btn-nav:hover { background: rgba(124,58,237,.3); color: #fff; }

/* ── Language Switcher ──────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 12px;
}
.lang-sep {
  color: var(--border-light);
  font-size: .8rem;
  pointer-events: none;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,.06);
}
.lang-btn.active {
  color: var(--accent-soft);
  background: rgba(124,58,237,.12);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  animation: float 8s ease-in-out infinite;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -100px; right: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--accent2);
  bottom: -80px; left: -80px;
  animation-delay: -4s;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  padding-top: var(--nav-h);
}
.hero-greeting {
  font-size: 1rem;
  color: var(--accent-soft);
  font-weight: 500;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 2em;
}
.cursor {
  display: inline-block;
  color: var(--accent-soft);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-socials {
  display: flex;
  gap: 16px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(124,58,237,.12);
  transform: translateY(-2px);
}

/* Avatar */
.hero-image { flex-shrink: 0; }
.avatar-wrapper {
  position: relative;
  width: 260px; height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient);
  z-index: 0;
  animation: spin 10s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-placeholder {
  position: relative;
  z-index: 1;
  width: 252px; height: 252px;
  border-radius: 50%;
  background: var(--card);
  border: 4px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-placeholder svg {
  width: 120px; height: 120px;
  color: var(--text-muted);
}
/* If user puts a real photo: */
.avatar-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator svg { width: 28px; height: 28px; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ════════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 28px 0 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.info-value { font-size: .95rem; color: var(--text-primary); font-weight: 500; }
.info-value.available {
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-value.available::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; box-shadow: 0 0 8px #4ade80; }
  50%      { opacity:.7; box-shadow: 0 0 16px #4ade80; }
}

.skills-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: default;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  background: rgba(124,58,237,.08);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   EXPERIENCE — TIMELINE
════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -32px;
  top: 20px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 3px solid var(--accent);
  box-shadow: 0 0 12px rgba(124,58,237,.5);
  transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(124,58,237,.7);
}
.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: var(--border-light);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.timeline-company-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.timeline-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
}
.timeline-part-time {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}
.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.timeline-company a {
  color: var(--accent-soft);
  font-weight: 500;
  transition: color var(--transition);
}
.timeline-company a:hover { color: var(--accent2); }
.timeline-date {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  flex-shrink: 0;
}
.timeline-list {
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.timeline-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: .95rem;
}
.timeline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-soft);
  font-size: .8em;
  top: 1px;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-tags span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.2);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ════════════════════════════════════════════════════════════
   EDUCATION
════════════════════════════════════════════════════════════ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.edu-card {
  display: flex;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}
.edu-card:hover {
  border-color: var(--border-light);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--glow);
}
.edu-icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: rgba(124,58,237,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  overflow: hidden;
}
.edu-icon svg { width: 24px; height: 24px; }
.edu-icon--logo {
  background: #fff;
  padding: 3px;
}
.edu-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.edu-date {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent-soft);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.edu-degree {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.edu-institution {
  font-size: .9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
}
.edu-description {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   PROJECTS
════════════════════════════════════════════════════════════ */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--glow);
}

/* Project image area */
.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--surface);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-image img { transform: scale(1.05); }

/* Placeholder shown when no image */
.project-img-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .85rem;
}
.project-img-placeholder svg { width: 48px; height: 48px; }
.project-image.no-img .project-img-placeholder { display: flex; }
.project-image.no-img img { display: none; }

/* Overlay with links */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9,9,15,.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.project-links { display: flex; gap: 16px; }
.project-link {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
}
.project-link svg { width: 20px; height: 20px; }
.project-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

/* Project content */
.project-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.project-number {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent-soft);
}
.project-meta-links {
  display: flex;
  gap: 12px;
}
.project-meta-links a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
}
.project-meta-links a:hover { color: var(--accent-soft); }
.project-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.project-description {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.project-stack span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.18);
  padding: 3px 10px;
  border-radius: 100px;
}


/* ════════════════════════════════════════════════════════════
   CAROUSEL
════════════════════════════════════════════════════════════ */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-track {
  flex: 1;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
}
.carousel-track::-webkit-scrollbar { height: 4px; }
.carousel-track::-webkit-scrollbar-track { background: var(--surface); border-radius: 2px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 2px; }
.carousel-track::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.carousel-track .project-card {
  /* Show exactly 3 cards: (100% - 2 gaps of 28px) / 3 */
  min-width: calc((100% - 56px) / 3);
  max-width: calc((100% - 56px) / 3);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  align-self: center;
  margin-bottom: 14px; /* offset scrollbar */
}
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn:hover {
  background: rgba(124,58,237,.15);
  border-color: var(--accent);
  color: var(--accent-soft);
  transform: scale(1.08);
}
.carousel-btn:disabled {
  opacity: .3;
  cursor: default;
  transform: none;
}

@media (max-width: 900px) {
  .carousel-track .project-card {
    min-width: calc((100% - 28px) / 2);
    max-width: calc((100% - 28px) / 2);
  }
}
@media (max-width: 600px) {
  .carousel-btn { display: none; }
  .carousel-track .project-card {
    min-width: 85vw;
    max-width: 85vw;
  }
}

/* ════════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: .95rem;
  font-weight: 500;
  transition: var(--transition);
}
.contact-detail-item:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(124,58,237,.06);
  transform: translateX(4px);
}
.contact-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(124,58,237,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; }

/* Form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group:last-of-type { margin-bottom: 24px; }
label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
input, textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
textarea { resize: vertical; min-height: 130px; }

.form-status {
  margin-top: 14px;
  font-size: .875rem;
  text-align: center;
  min-height: 1.4em;
  transition: color .3s;
}
.form-status--sending { color: var(--text-muted); }
.form-status--success { color: #4ade80; }
.form-status--error   { color: #f87171; }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: .88rem;
  color: var(--text-muted);
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
}
.footer-socials a:hover { color: var(--accent-soft); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-image { order: -1; margin: 0 auto; }
  .hero-description { margin: 0 auto 36px; }
  .hero-cta, .hero-socials { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .section { padding: 36px 0; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(9,9,15,.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; width: 100%; font-size: 1rem; }
  .hamburger { display: flex; }
  .lang-switcher { margin-right: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .avatar-wrapper { width: 200px; height: 200px; }
  .avatar-placeholder { width: 192px; height: 192px; }
  .timeline { padding-left: 24px; }
  .timeline-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 500px) {
  .edu-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
