/* ============================================================
   Rita Berrada Portfolio — styles.css
   Design system: exact port of ismailmoudden.com CSS
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --primary: #3a86ff;
  --primary-dark: #2667cc;
  --primary-light: #5c9fff;
  --accent: #FF4E45;
  --accent-dark: #e03c34;
  --accent-light: #ff6b63;

  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-card: #ffffff;
  --text: #2c3e50;
  --text-muted: #6c757d;
  --text-light: #adb5bd;
  --border: #e0e0e0;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 5px 15px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.10);
  --shadow-card: 0 2px 12px rgba(50,100,255,0.06);

  --radius: 15px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --transition: all 0.3s ease;
  --container: 1200px;
}

body.dark-mode {
  --primary: #4e95ff;
  --primary-dark: #3a7fd9;
  --primary-light: #6ba5ff;
  --accent: #FF4E45;

  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #1a1a1a;
  --text: #F8F9FA;
  --text-muted: #adb5bd;
  --text-light: #6c757d;
  --border: #2a2a2a;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.3);
  --shadow-md: 0 5px 15px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.3);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin-top: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  margin-top: 0.75rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background: linear-gradient(90deg, var(--primary) 60%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(58,134,255,0.35);
}

.btn--primary:hover {
  background: linear-gradient(90deg, var(--primary-dark) 60%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58,134,255,0.45);
  color: #fff;
}

.btn--secondary {
  background: rgba(58,134,255,0.1);
  color: var(--primary);
  border: 2px solid var(--primary);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }

/* ---- Tags ---- */
.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(58,134,255,0.1);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid rgba(58,134,255,0.2);
}

/* ---- Utilities ---- */
.hidden { display: none !important; }
.hidden-card { display: none; }
.visible-card { display: block; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(var(--bg), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

body.dark-mode .header { background: rgba(10,10,10,0.92); }
body:not(.dark-mode) .header { background: rgba(255,255,255,0.92); }

.header__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.header__logo:hover { color: var(--primary); }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
  background: rgba(58,134,255,0.08);
}

.nav__link--chatbot {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff !important;
  font-weight: 600;
}

.nav__link--chatbot:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle */
.theme-toggle { display: flex; align-items: center; }
.theme-toggle__checkbox { display: none; }
.theme-toggle__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.theme-toggle__label:hover { border-color: var(--primary); }
.theme-toggle__icon { display: flex; align-items: center; color: var(--text-muted); transition: var(--transition); }
.theme-toggle__icon--moon { display: none; }
body.dark-mode .theme-toggle__icon--sun { display: none; }
body.dark-mode .theme-toggle__icon--moon { display: flex; color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 70px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu__list { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.mobile-menu__link {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}
.mobile-menu__link:hover { color: var(--primary); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  background: var(--bg);
}

.hero__container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero__greeting {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero__name {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__tagline {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.hero__sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__focus {
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  color: var(--text);
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero__socials {
  display: flex;
  gap: 1rem;
}

.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.hero__social-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.hero__image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-bg {
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(58,134,255,0.15), rgba(255,78,69,0.10));
  z-index: 0;
}

.hero__image {
  width: 300px; height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--primary);
  box-shadow: 0 20px 60px rgba(58,134,255,0.25);
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease both;
}

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

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes dash {
  to { stroke-dashoffset: 0; }
}

.hero__content { animation: fadeIn 0.8s ease 0.1s both; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.about__text h2 { margin-bottom: 1.5rem; }
.about__text p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.about__text strong { color: var(--text); }

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 180px;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.stat__number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ============================================================
   WHAT'S NEW
   ============================================================ */
.whats-new {
  padding: 5rem 0;
  background: var(--bg);
}

.whats-new__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.featured-card {
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.featured-card__badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.featured-card__badge--accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.featured-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.featured-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.featured-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }

.featured-card__link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.featured-card__link:hover { color: var(--primary-dark); transform: translateX(4px); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
  padding: 5rem 0;
  background: var(--bg-alt);
  position: relative;
}

.skills__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.skills__tab-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.skills__tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.skills__tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: cardAppear 0.5s ease both;
}

.skill-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-item__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.skill-item__level {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
}

.skill-item__level--expert   { background: rgba(58,134,255,0.12); color: var(--primary); }
.skill-item__level--advanced  { background: rgba(40,167,69,0.12); color: #28a745; }
.skill-item__level--intermediate { background: rgba(255,193,7,0.12); color: #d4a000; }

.skill-item__info {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.skill-item__info:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.skill-tooltip {
  position: fixed;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  max-width: 220px;
  line-height: 1.4;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: var(--shadow-md);
}

.skill-tooltip.visible { opacity: 1; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience {
  padding: 5rem 0;
  background: var(--bg);
}

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.65rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 1px;
}

.timeline__item {
  position: relative;
  margin-bottom: 3rem;
  animation: cardAppear 0.5s ease both;
}

.timeline__item:last-child { margin-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline__content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.timeline__content:hover {
  transform: translateX(4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.timeline__role {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.timeline__period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(58,134,255,0.1);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.timeline__company {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline__supervisor {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.timeline__bullets {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.timeline__bullets li {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.timeline__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.projects__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  animation: cardAppear 0.5s ease both;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.project-card__image-wrap { overflow: hidden; }

.project-card__image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__image { transform: scale(1.05); }

.project-card__image--blue   { background: linear-gradient(135deg, rgba(58,134,255,0.15), rgba(58,134,255,0.05)); color: var(--primary); }
.project-card__image--green  { background: linear-gradient(135deg, rgba(40,167,69,0.15), rgba(40,167,69,0.05)); color: #28a745; }
.project-card__image--purple { background: linear-gradient(135deg, rgba(111,66,193,0.15), rgba(111,66,193,0.05)); color: #6f42c1; }
.project-card__image--orange { background: linear-gradient(135deg, rgba(255,108,0,0.15), rgba(255,108,0,0.05)); color: #ff6c00; }
.project-card__image--teal   { background: linear-gradient(135deg, rgba(32,201,151,0.15), rgba(32,201,151,0.05)); color: #20c997; }
.project-card__image--red    { background: linear-gradient(135deg, rgba(255,78,69,0.15), rgba(255,78,69,0.05)); color: var(--accent); }

.project-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.project-card__date,
.project-card__category {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.project-card__sep { color: var(--border); }

.project-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.project-card__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }

.project-card__links { margin-top: auto; }

.project-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.project-card__link:hover { color: var(--primary-dark); }

.projects__see-more {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   EDUCATION
   ============================================================ */
.education {
  padding: 5rem 0;
  background: var(--bg);
}

.edu-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.edu-timeline__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3rem;
}

.edu-timeline__line {
  width: 2px;
  height: 120px;
  color: var(--primary);
}

.edu-dash {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.edu-dash.animated {
  animation: dash 1.5s ease forwards;
}

.edu-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.edu-timeline__item--left .edu-card { border-left: 4px solid var(--primary); }
.edu-timeline__item--right .edu-card { border-right: 4px solid var(--accent); }

.edu-card__badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  background: rgba(58,134,255,0.1);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.edu-card__badge--accent {
  background: rgba(255,78,69,0.1);
  color: var(--accent);
}

.edu-card__school {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.edu-card__degree {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.edu-card__location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.edu-card__highlights {
  padding-left: 1rem;
  list-style: disc;
}

.edu-card__highlights li {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact__info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(58,134,255,0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(58,134,255,0.2);
}

.contact__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.contact__value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

a.contact__value:hover { color: var(--primary); }

/* Contact form */
.contact__form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58,134,255,0.12);
}

.form-textarea { resize: vertical; min-height: 130px; }

.form-success {
  text-align: center;
  color: #28a745;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem;
  background: rgba(40,167,69,0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(40,167,69,0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__text { color: var(--text-muted); font-size: 0.88rem; }

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__links a:hover { color: var(--primary); }

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(58,134,255,0.4);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 900;
}

.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================================
   CV MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open { opacity: 1; pointer-events: all; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  animation: fadeIn 0.3s ease;
}

.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal__close:hover { background: var(--accent); color: #fff; }

.modal__title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.modal__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.modal__note {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal__note code {
  background: var(--bg-alt);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85em;
}
