/* ============================================================
   PORTFOLIO — MOUSSA PORGO
   Design inspiré de InTech Solutions Global (ISG)
   Couleurs : Bleu marine #0d2558 | Or/Orange #f59e0b
   Polices  : Syne (titres) + DM Sans (corps)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --isg-blue-dark:  #081840;
  --isg-blue:       #0d2558;
  --isg-blue-mid:   #1a3a8f;
  --isg-blue-light: #2563eb;
  --isg-orange:     #f59e0b;
  --isg-orange-dk:  #d97706;
  --isg-orange-lt:  #fbbf24;
  --white:          #ffffff;
  --gray-50:        #f8fafc;
  --gray-100:       #f1f5f9;
  --gray-200:       #e2e8f0;
  --gray-400:       #94a3b8;
  --gray-600:       #475569;
  --gray-800:       #1e293b;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --shadow-sm:      0 2px 8px rgba(13,37,88,.10);
  --shadow-md:      0 8px 32px rgba(13,37,88,.15);
  --shadow-lg:      0 20px 60px rgba(13,37,88,.22);
  --transition:     all .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset + Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--isg-blue-dark); }
::-webkit-scrollbar-thumb { background: var(--isg-orange); border-radius: 4px; }

/* ── Navigation ─────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; width: 100%;
  background: rgba(8,24,64,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,158,11,.15);
  z-index: 1000;
  transition: var(--transition);
}
#navbar .nav-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
}
#navbar .nav-brand span { color: var(--isg-orange); }
.nav-link {
  font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.75);
  padding: .3rem 0;
  position: relative;
  transition: color .25s;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--isg-orange);
  transition: width .3s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--isg-orange); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Lang switcher */
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px;
  color: var(--white);
  font-size: .85rem; font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover {
  background: var(--isg-orange);
  border-color: var(--isg-orange);
}
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--isg-blue-dark);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-width: 80px;
  box-shadow: var(--shadow-md);
}
.lang-dropdown.hidden { display: none; }
.lang-dropdown button {
  display: block; width: 100%;
  padding: 8px 16px;
  color: rgba(255,255,255,.8);
  font-size: .85rem; font-weight: 500;
  background: none; border: none; cursor: pointer;
  text-align: left;
  transition: background .2s;
}
.lang-dropdown button:hover {
  background: rgba(245,158,11,.15);
  color: var(--isg-orange);
}

/* Mobile menu */
#mobile-menu-btn { background: none; border: none; cursor: pointer; }
#mobile-menu {
  background: var(--isg-blue-dark);
  border-top: 1px solid rgba(245,158,11,.1);
  padding: 1rem 0;
}
#mobile-menu a {
  display: block; padding: .6rem 1rem;
  color: rgba(255,255,255,.8);
  font-weight: 500; font-size: .95rem;
  transition: color .2s;
}
#mobile-menu a:hover { color: var(--isg-orange); }

/* ── Circuit Board Pattern (Hero BG) ────────────────────── */
.circuit-bg {
  background-color: var(--isg-blue-dark);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(245,158,11,.18) 1px, transparent 0),
    linear-gradient(rgba(26,58,143,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,58,143,.1) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px, 64px 64px;
}
.circuit-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,.25) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Section Titles ─────────────────────────────────────── */
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem; font-weight: 800;
  color: var(--isg-blue);
  margin-bottom: .5rem;
}
.section-title span { color: var(--isg-orange); }
.title-bar {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--isg-orange), var(--isg-orange-lt));
  border-radius: 2px;
  margin: .75rem auto 0;
}
.title-bar.left { margin-left: 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--isg-orange), var(--isg-orange-dk));
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(245,158,11,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.45);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem;
  border: 1.5px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-blue {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--isg-blue);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .85rem;
  border: 1.5px solid var(--isg-blue);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-blue:hover {
  background: var(--isg-blue);
  color: var(--white);
}

/* ── Hero Section ───────────────────────────────────────── */
#accueil {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding-top: 80px;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1rem;
  animation: fadeInUp .9s ease-out both;
}
.profile-wrap {
  width: 148px; height: 148px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  border: 3px solid var(--isg-orange);
  box-shadow: 0 0 0 6px rgba(245,158,11,.15), 0 0 40px rgba(245,158,11,.2);
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}
.profile-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.profile-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--isg-blue-mid), var(--isg-blue-light));
  display: flex; align-items: center; justify-content: center;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; color: var(--white);
  letter-spacing: -1px; margin-bottom: .5rem;
}
.hero-title span { color: var(--isg-orange); }
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.85);
  font-weight: 500; margin-bottom: 1rem;
  min-height: 2rem;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  max-width: 560px; margin: 0 auto 2rem;
  font-weight: 400;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin-bottom: 2rem;
}
.available-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.3);
  color: #34d399;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: .85rem; font-weight: 500;
}
.available-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  animation: bounce 2s infinite;
}

/* Typing cursor */
.typing-cursor::after {
  content: '|';
  color: var(--isg-orange);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

/* ── À propos ────────────────────────────────────────────── */
#apropos { padding: 6rem 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3.5rem;
}
.academic-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--isg-orange);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition);
}
.academic-card:hover {
  transform: translateX(4px);
  border-left-color: var(--isg-blue);
}
.icon-box {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.icon-box.orange { background: rgba(245,158,11,.12); }
.icon-box.blue   { background: rgba(37,99,235,.12); }
.icon-box.green  { background: rgba(16,185,129,.12); }

/* Soft skills list */
.soft-skills { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.soft-skill-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--gray-600);
}
.soft-skill-item svg { color: #10b981; flex-shrink: 0; }

/* Skill tags */
.skill-group { margin-bottom: 1.25rem; }
.skill-group-title {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--isg-blue); margin-bottom: .6rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .78rem; font-weight: 600;
  border: 1px solid transparent;
  transition: transform .2s;
}
.tag:hover { transform: scale(1.05); }
.tag-red    { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.tag-green  { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.tag-blue   { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.tag-purple { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.tag-yellow { background: #fef9c3; color: #a16207; border-color: #fde68a; }
.tag-sky    { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.tag-orange { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.tag-indigo { background: #e0e7ff; color: #3730a3; border-color: #c7d2fe; }
.tag-cyan   { background: #cffafe; color: #0e7490; border-color: #a5f3fc; }
.tag-gray   { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

/* ── En ce moment ───────────────────────────────────────── */
#enceque {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(13,37,88,.04) 0%, rgba(245,158,11,.04) 100%);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.current-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.current-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--isg-orange), var(--isg-blue-light));
}
.current-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--isg-orange);
}

/* ── Projects ───────────────────────────────────────────── */
#projets { padding: 6rem 0; background: var(--gray-50); }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--isg-orange); color: var(--isg-orange); }
.filter-btn.active {
  background: var(--isg-orange);
  border-color: var(--isg-orange);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(245,158,11,.3);
}

/* Search */
.search-wrapper {
  position: relative; max-width: 420px; margin: 0 auto 2.5rem;
}
.search-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  background: var(--white);
  color: var(--gray-800);
  transition: var(--transition);
  outline: none;
}
.search-wrapper input:focus {
  border-color: var(--isg-blue);
  box-shadow: 0 0 0 3px rgba(13,37,88,.08);
}
.search-wrapper svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

/* Project cards grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--isg-orange);
}
.project-card.hidden { display: none; }

/* Project thumbnail */
.project-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.project-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(8,24,64,.75);
  backdrop-filter: blur(6px);
  color: var(--isg-orange);
  font-size: .72rem; font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(245,158,11,.3);
}
.project-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.project-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--isg-blue);
  margin-bottom: .4rem;
}
.project-desc { font-size: .85rem; color: var(--gray-600); margin-bottom: 1rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.project-actions { display: flex; gap: .6rem; }
.project-actions .btn-see {
  flex: 1; padding: 9px;
  background: var(--isg-blue);
  color: var(--white);
  border: none; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: var(--transition);
}
.project-actions .btn-see:hover {
  background: var(--isg-blue-mid);
  transform: translateY(-1px);
}
.project-actions .btn-link {
  padding: 9px 14px;
  background: rgba(245,158,11,.1);
  color: var(--isg-orange-dk);
  border: 1.5px solid rgba(245,158,11,.25);
  border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: var(--transition);
  white-space: nowrap;
}
.project-actions .btn-link:hover {
  background: var(--isg-orange);
  color: var(--white);
  border-color: var(--isg-orange);
}
.project-actions .btn-link:disabled,
.project-actions .btn-link.disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Services ────────────────────────────────────────────── */
#services { padding: 6rem 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-top: 3.5rem; }
.service-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--isg-blue), var(--isg-orange));
  transform: scaleX(0);
  transition: transform .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.service-icon.blue   { background: rgba(13,37,88,.08); color: var(--isg-blue-mid); }
.service-icon.orange { background: rgba(245,158,11,.1); color: var(--isg-orange-dk); }
.service-icon.green  { background: rgba(16,185,129,.1); color: #059669; }
.service-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--isg-blue); margin-bottom: .75rem;
}
.service-desc { font-size: .88rem; color: var(--gray-600); margin-bottom: 1rem; }
.service-list { list-style: none; text-align: left; }
.service-list li {
  font-size: .84rem; color: var(--gray-600);
  padding: .3rem 0;
  display: flex; align-items: center; gap: .5rem;
}
.service-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--isg-orange);
  border-radius: 50%; flex-shrink: 0;
}

/* ── Contact ─────────────────────────────────────────────── */
#contact { padding: 6rem 0; background: var(--gray-50); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3.5rem;
}
.contact-info-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: var(--transition);
}
.contact-info-card:hover {
  border-color: var(--isg-orange);
  box-shadow: var(--shadow-sm);
}
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.contact-label { font-size: .8rem; color: var(--gray-400); font-weight: 500; margin-bottom: 2px; }
.contact-value { font-size: .95rem; font-weight: 600; color: var(--gray-800); }
.contact-value a { color: var(--isg-blue); }
.contact-value a:hover { color: var(--isg-orange); }

/* Social buttons */
.social-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); cursor: pointer;
  transition: var(--transition);
  border: none;
}
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.social-btn.fb    { background: #1877f2; }
.social-btn.li    { background: #0a66c2; }
.social-btn.gh    { background: #1a1a2e; }
.social-btn.wa    { background: #25d366; }

/* Contact right — engagement card */
.engagement-card {
  background: linear-gradient(135deg, var(--isg-blue), var(--isg-blue-mid));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.engagement-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,158,11,.2) 0%, transparent 70%);
}
.engagement-highlights { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.eng-item {
  display: flex; align-items: center; gap: .75rem;
  font-size: .9rem; color: rgba(255,255,255,.85);
}
.eng-item svg { color: var(--isg-orange); flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--isg-blue-dark);
  color: var(--white);
  padding: 3.5rem 0 2rem;
  border-top: 2px solid var(--isg-orange);
}
.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: .5rem;
}
.footer-brand span { color: var(--isg-orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem; padding-top: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,.4);
  font-size: .82rem;
}

/* ── Project Modal ───────────────────────────────────────── */
#project-modal {
  position: fixed; inset: 0;
  background: rgba(8,24,64,.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#project-modal.open {
  opacity: 1; pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 920px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95) translateY(20px);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
#project-modal.open .modal-box { transform: scale(1) translateY(0); }
.modal-header {
  position: sticky; top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 1.75rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 10;
}
.modal-title {
  font-size: 1.3rem; font-weight: 800;
  color: var(--isg-blue);
}
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600);
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }
.modal-body { padding: 1.75rem; }

/* Image gallery in modal */
.gallery-main {
  width: 100%; height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  background: var(--gray-100);
  position: relative;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .3s ease;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between;
  width: 100%; padding: 0 .75rem;
  pointer-events: none;
}
.gallery-nav button {
  pointer-events: all;
  width: 36px; height: 36px;
  background: rgba(8,24,64,.7);
  border: none; border-radius: 50%;
  color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.gallery-nav button:hover { background: var(--isg-orange); }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
}
.gallery-thumb {
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  opacity: .65;
}
.gallery-thumb.active { border-color: var(--isg-orange); opacity: 1; }
.gallery-thumb:hover { opacity: .9; border-color: var(--gray-400); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Modal info grid */
.modal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}
.modal-section-title {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--isg-blue); margin-bottom: .75rem;
}
.feature-list { list-style: none; }
.feature-list li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .88rem; color: var(--gray-600);
  padding: .3rem 0;
}
.feature-list li::before {
  content: '▸';
  color: var(--isg-orange);
  font-size: .9rem; flex-shrink: 0; margin-top: 1px;
}
.modal-footer-btns {
  display: flex; gap: 1rem; margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%,100% { opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
  50% { opacity: .85; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.animate-fadeInUp { animation: fadeInUp .7s ease-out both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Utilities ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.mb-16 { margin-bottom: 4rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .modal-info    { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section-title { font-size: 1.9rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .modal-footer-btns { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .gallery-main { height: 200px; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .gallery-thumb { height: 52px; }
}