/* ===================================================
   PORTFOLIO 2 — Mohammed Benouda
   Modern Professional Design for Alternance Search
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────── */
:root {
  --bg:         #f8f9fc;
  --bg-card:    #ffffff;
  --bg-dark:    #0f1117;
  --text:       #0f1117;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --accent:     #6c47ff;
  --accent-2:   #00c6a2;
  --accent-3:   #ff6b6b;
  --border:     #e5e7eb;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --radius:     14px;
  --radius-sm:  8px;
  --header-h:   70px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ─── Header ────────────────────────────────────── */
#header2 {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(248,249,252,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  z-index: 1000;
  transition: border-color var(--transition), box-shadow var(--transition);
}
#header2.solid {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.logo2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.logo2 span { color: var(--accent); }

.nav2 ul { display: flex; gap: 4px; }
.nav2 a {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav2 a:hover,
.nav2 a.active { color: var(--accent); background: rgba(108,71,255,.08); }

.header2-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-primary2 {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  font-size: .875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(108,71,255,.35);
}
.btn-primary2:hover {
  background: #5538d9;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108,71,255,.45);
}
.hamburger2 {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger2 span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── Hero ──────────────────────────────────────── */
.hero2 {
  min-height: 100vh;
  padding: calc(var(--header-h) + 60px) 6% 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0,198,162,.1);
  border: 1px solid rgba(0,198,162,.3);
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  color: #00a085;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.hero2-badge-dot {
  width: 7px; height: 7px;
  background: #00c6a2;
  border-radius: 50%;
  animation: pulse2 1.8s ease-in-out infinite;
}
@keyframes pulse2 {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,198,162,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(0,198,162,0); }
}

.hero2-subtitle {
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.hero2-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  color: var(--text);
}
.hero2-title .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero2-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero2-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-hero-primary {
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  font-weight: 700;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 6px 20px rgba(108,71,255,.4);
}
.btn-hero-primary:hover { background: #5538d9; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(108,71,255,.5); }
.btn-hero-outline {
  padding: 13px 28px;
  border: 2px solid var(--border);
  border-radius: 99px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-hero-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero2-stats {
  display: flex;
  gap: 28px;
}
.stat2 { text-align: left; }
.stat2-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
}
.stat2-num span { color: var(--accent); }
.stat2-label { font-size: .78rem; color: var(--text-muted); font-weight: 500; }

/* Hero image column */
.hero2-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero2-photo-wrap {
  position: relative;
  width: 360px;
  height: 420px;
}
.hero2-photo-bg {
  position: absolute;
  inset: 0;
  border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
  background: linear-gradient(135deg, rgba(108,71,255,.15), rgba(0,198,162,.15));
  animation: morphBlob 8s ease-in-out infinite;
}
@keyframes morphBlob {
  0%,100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
  33%  { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; }
  66%  { border-radius: 50% 50% 60% 40% / 60% 40% 60% 40%; }
}
.hero2-photo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 340px;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.hero2-card-float {
  position: absolute;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  animation: floatCard 3s ease-in-out infinite;
}
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.hero2-card-float.top-left  { top: 20px; left: -20px; animation-delay: 0s; }
.hero2-card-float.bot-right { bottom: 30px; right: -20px; animation-delay: 1.5s; }
.float-icon { font-size: 1.1rem; }

/* ─── Section wrapper ───────────────────────────── */
.section2 {
  padding: 90px 6%;
  max-width: 1280px;
  margin: 0 auto;
}
.section2-full {
  padding: 90px 6%;
  background: var(--bg-card);
}
.section2-full .section2 { padding-top: 0; padding-bottom: 0; }

.section2-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section2-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.section2-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section2-header { margin-bottom: 52px; }

/* ─── Skills ────────────────────────────────────── */
.skills2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.skill2-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.skill2-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.skill2-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.skill2-icon.purple { background: rgba(108,71,255,.12); color: var(--accent); }
.skill2-icon.teal   { background: rgba(0,198,162,.12);  color: var(--accent-2); }
.skill2-icon.red    { background: rgba(255,107,107,.12); color: var(--accent-3); }
.skill2-icon.orange { background: rgba(251,146,60,.12);  color: #fb923c; }

.skill2-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.skill2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill2-tag {
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ─── Projects ──────────────────────────────────── */
.projects2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.project2-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project2-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project2-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg);
}
.project2-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.project2-card:hover .project2-img-wrap img { transform: scale(1.05); }
.project2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,17,23,.7), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.project2-card:hover .project2-overlay { opacity: 1; }
.project2-overlay-links { display: flex; gap: 8px; }
.project2-overlay-links a {
  padding: 7px 14px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background var(--transition);
}
.project2-overlay-links a:hover { background: rgba(255,255,255,.3); }

.project2-body { padding: 20px 22px 22px; }
.project2-type {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.project2-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.project2-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.65;
}
.project2-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project2-tag {
  padding: 3px 9px;
  background: rgba(108,71,255,.08);
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
}

/* ─── Experience ────────────────────────────────── */
.exp2-timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.exp2-timeline::before {
  content: '';
  position: absolute;
  left: 19px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  border-radius: 2px;
}
.exp2-item {
  display: flex;
  gap: 24px;
  padding: 0 0 36px 0;
  position: relative;
}
.exp2-item:last-child { padding-bottom: 0; }
.exp2-dot-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.exp2-dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.exp2-item.current .exp2-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(108,71,255,.15);
  color: var(--accent);
}
.exp2-item.current .exp2-dot { background: rgba(108,71,255,.08); }

.exp2-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform var(--transition), box-shadow var(--transition);
  margin-top: 0;
}
.exp2-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.exp2-item.current .exp2-card { border-color: rgba(108,71,255,.3); }

.exp2-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}
.exp2-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.exp2-badge {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.exp2-badge.current-badge { background: rgba(0,198,162,.12); color: #00a085; }
.exp2-badge.stage-badge   { background: rgba(108,71,255,.10); color: var(--accent); }

.exp2-company { font-size: .875rem; color: var(--text-muted); font-weight: 500; margin-bottom: 3px; }
.exp2-date    { font-size: .78rem; color: var(--text-light); margin-bottom: 10px; }
.exp2-desc    { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }
.exp2-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.exp2-tag {
  padding: 3px 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ─── About / Formation ─────────────────────────── */
.about2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about2-text p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about2-info-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about2-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
}
.about2-info-item i { color: var(--accent); width: 18px; text-align: center; }
.about2-info-item span { color: var(--text-muted); }
.about2-info-item strong { color: var(--text); }

.formation2-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.formation2-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.formation2-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.formation2-year {
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(108,71,255,.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.formation2-name {
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 3px;
}
.formation2-school {
  font-size: .8rem;
  color: var(--text-muted);
}
.formation2-mention {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  background: rgba(0,198,162,.1);
  color: #00a085;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
}

/* ─── Languages ─────────────────────────────────── */
.lang2-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.lang2-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: .83rem;
  font-weight: 600;
}
.lang2-flag { font-size: 1rem; }
.lang2-level { color: var(--text-muted); font-weight: 400; font-size: .78rem; }

/* ─── Contact ───────────────────────────────────── */
.contact2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact2-intro {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.contact2-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact2-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.contact2-link:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.contact2-link-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(108,71,255,.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact2-link-text { font-size: .875rem; font-weight: 600; }
.contact2-link-sub  { font-size: .78rem; color: var(--text-muted); }

/* Contact form */
.contact2-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.form2-group { margin-bottom: 16px; }
.form2-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form2-input,
.form2-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: .875rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form2-input:focus,
.form2-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,71,255,.12);
}
.form2-textarea { resize: vertical; min-height: 110px; }
.form2-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(108,71,255,.3);
}
.form2-submit:hover { background: #5538d9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,71,255,.4); }

/* ─── Footer ─────────────────────────────────────── */
.footer2 {
  background: var(--bg-dark);
  color: #fff;
  padding: 40px 6% 28px;
  text-align: center;
}
.footer2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer2-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.footer2-logo span { color: var(--accent); }
.footer2-socials {
  display: flex;
  gap: 10px;
}
.footer2-social {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: all var(--transition);
}
.footer2-social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer2-copy { font-size: .8rem; color: rgba(255,255,255,.4); }

/* ─── Divider accent ─────────────────────────────── */
.divider2 {
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-2), transparent);
  margin: 0;
  border: none;
  opacity: .4;
}

/* ─── Scroll to top ─────────────────────────────── */
#scrolltop2 {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(108,71,255,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
}
#scrolltop2.visible { opacity: 1; pointer-events: all; }
#scrolltop2:hover { transform: translateY(-3px); }

/* ─── Utility ────────────────────────────────────── */
.text-accent  { color: var(--accent); }
.text-teal    { color: var(--accent-2); }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }

/* ─── Animations ─────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hero2 { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero2-desc { margin-left: auto; margin-right: auto; }
  .hero2-actions { justify-content: center; }
  .hero2-stats { justify-content: center; }
  .hero2-visual { display: none; }
  .about2-grid { grid-template-columns: 1fr; }
  .contact2-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .nav2 { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px 6%; }
  .nav2.open { display: block; }
  .nav2 ul { flex-direction: column; gap: 4px; }
  .nav2 a { display: block; padding: 10px 14px; }
  .hamburger2 { display: flex; }
  .header2-cta .btn-primary2 { display: none; }

  .hero2 { padding-top: calc(var(--header-h) + 36px); }
  .section2 { padding: 60px 5%; }
  .section2-full { padding: 60px 5%; }
  .skills2-grid { grid-template-columns: 1fr 1fr; }
  .projects2-grid { grid-template-columns: 1fr; }
  .hero2-stats { gap: 20px; }
  .footer2-top { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .skills2-grid { grid-template-columns: 1fr; }
  .hero2-actions { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; justify-content: center; }
}
