/* =========================================================
   Issa J Gammoh — Personal CV Website
   Design system + components + animations
   ========================================================= */

:root {
  --navy:        #1b2a41;
  --navy-dark:   #16233a;
  --navy-soft:   #24344e;
  --orange:      #f5841f;
  --orange-2:    #ff9d3d;
  --orange-soft: #fdecd9;
  --ink:         #1f3242;
  --heading:     #243748;
  --muted:       #6b7785;
  --line:        #eef1f4;
  --card:        #ffffff;
  --bg:          #ffffff;
  --hero-a:      #c9d3db;
  --hero-b:      #dfe6ea;
  --shadow-sm:   0 4px 18px rgba(27, 42, 65, .06);
  --shadow-md:   0 14px 40px rgba(27, 42, 65, .10);
  --shadow-lg:   0 24px 60px rgba(27, 42, 65, .16);
  --radius:      22px;
  --radius-sm:   14px;
  --ff-display:  'Poppins', system-ui, sans-serif;
  --ff-body:     'Poppins', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; }

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

/* ---------- Reusable bits ---------- */
.section { padding: 90px 0; position: relative; }

.sec-title {
  font-family: var(--ff-display);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -.5px;
  position: relative;
  display: inline-block;
}

.underline-stroke { position: relative; display: inline-block; }
.underline-stroke::after {
  content: "";
  position: absolute;
  left: 4%;
  bottom: -14px;
  width: 64%;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='16' viewBox='0 0 220 16'%3E%3Cpath d='M3 11C55 4 150 2 217 9' stroke='%23f5841f' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-size: contain;
}

.text-orange { color: var(--orange) !important; }
.bg-navy { background: var(--navy) !important; }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--navy);
  padding: .9rem 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.navbar.scrolled {
  padding: .55rem 0;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  background: var(--navy-dark);
}
.navbar-brand {
  font-family: var(--ff-display);
  font-weight: 800;
  color: #fff !important;
  font-size: 1.32rem;
  letter-spacing: -.3px;
}
.navbar-brand span { color: var(--orange); }
.navbar .nav-link {
  color: #d8dee6 !important;
  font-weight: 500;
  margin: 0 .55rem;
  position: relative;
  transition: color .25s ease;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .28s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: #fff !important; }
.navbar .nav-link.active { color: var(--orange) !important; }
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { width: 100%; }

.btn-talk {
  border: 1.5px solid rgba(255,255,255,.55);
  color: #fff;
  border-radius: 999px;
  padding: .5rem 1.25rem;
  font-weight: 600;
  transition: all .28s ease;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-talk:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Hero banner (desk style) ---------- */
.hero-banner {
  background:
    radial-gradient(120% 120% at 85% 18%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(135deg, var(--hero-a), var(--hero-b));
  min-height: 360px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  /* subtle desk objects as soft shapes */
  content: "";
  position: absolute;
  right: -60px; top: -40px;
  width: 460px; height: 460px;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,.6), transparent 60%);
  filter: blur(8px);
  opacity: .7;
}
.hero-deco-coffee, .hero-deco-clip {
  position: absolute; opacity: .9; pointer-events: none;
}
.hero-deco-coffee { right: 30%; top: 38%; font-size: 4.4rem; color: #2b2b2b; transform: rotate(-8deg); }
.hero-deco-clip   { right: 8%;  top: 22%; font-size: 5.6rem; color: #2f6fb0; transform: rotate(8deg); }
.hero-deco-glass  { position:absolute; right: 5%; top: 8%; font-size: 3.2rem; color:#1c1c1c; opacity:.85; }
.hero-banner h1 {
  font-family: var(--ff-display);
  font-weight: 800;
  color: var(--heading);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -1px;
  margin: 0;
}

/* ---------- Home hero ---------- */
.home-hero { padding: 70px 0 40px; }
.home-hero h1 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--heading);
}
.home-hero .lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 540px;
}
.btn-primary-cv {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: .85rem 1.6rem;
  font-weight: 600;
  border: none;
  transition: all .28s ease;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-primary-cv:hover { background: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow-md); color:#fff; }
.btn-outline-cv {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #e2e6ea;
  border-radius: 12px;
  padding: .85rem 1.6rem;
  font-weight: 600;
  transition: all .28s ease;
}
.btn-outline-cv:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-3px); }

.profile-media {
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #cdd7df, #aab8c4);
  aspect-ratio: 4/3.4;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
}
.profile-media .avatar-initials {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 5rem;
  color: rgba(27,42,65,.18);
  letter-spacing: 2px;
}
.play-btn {
  position: absolute;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .3s ease;
}
.play-btn::after {
  content:""; position:absolute; inset:-10px; border-radius:50%;
  border:2px solid rgba(255,255,255,.6); animation: ripple 2.2s ease-out infinite;
}
@keyframes ripple { 0%{transform:scale(.85);opacity:.8} 100%{transform:scale(1.6);opacity:0} }
.play-btn:hover { transform: scale(1.08); }

.social-rail { display: flex; flex-direction: column; gap: .8rem; align-items: center; }
.social-rail .label-vert {
  writing-mode: vertical-rl;
  font-weight: 700; letter-spacing: 2px; color: var(--heading);
  margin-bottom: .4rem;
}
.social-rail a {
  width: 42px; height: 42px; border-radius: 50%;
  background: #f1f3f6; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: all .28s ease;
}
.social-rail a:hover { background: var(--orange); color: #fff; transform: translateY(-3px); }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--navy); color: #fff; }
.stat-box { text-align: center; padding: 1rem .5rem; }
.stat-box .num {
  font-family: var(--ff-display);
  font-weight: 800; font-size: 2.6rem; color: var(--orange);
  line-height: 1;
}
.stat-box .lbl { color: #c4ccd6; font-size: .92rem; margin-top: .35rem; }

/* ---------- Profile / about ---------- */
.about-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

/* ---------- Skill chips ---------- */
.chip {
  display: inline-block;
  background: #fff;
  border: 1px solid #e8ebef;
  color: var(--ink);
  border-radius: 999px;
  padding: .55rem 1.05rem;
  margin: .3rem .25rem;
  font-weight: 500;
  font-size: .94rem;
  transition: all .25s ease;
}
.chip:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-2px); }

/* language bars */
.lang-row { margin-bottom: 1.1rem; }
.lang-row .d-flex { font-weight: 600; color: var(--heading); margin-bottom: .35rem; }
.lang-track { height: 8px; border-radius: 999px; background: #eef1f4; overflow: hidden; }
.lang-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--orange-2)); width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }

/* ---------- Timeline (experience) ---------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px; background: #e6e9ed; transform: translateX(-50%);
}
.tl-item { position: relative; width: 50%; padding: 0 42px 48px 42px; }
.tl-item:nth-child(odd)  { left: 0; }
.tl-item:nth-child(even) { left: 50%; }
.tl-dot {
  position: absolute; top: 24px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); z-index: 2;
}
.tl-item:nth-child(odd)  .tl-dot { right: -17px; }
.tl-item:nth-child(even) .tl-dot { left: -17px; }

.tl-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tl-card h5 { font-family: var(--ff-display); font-weight: 700; color: var(--heading); margin: 0; font-size: 1.12rem; }
.tl-card .org { color: var(--muted); font-size: .94rem; margin: .15rem 0 .8rem; }
.tl-badge {
  background: var(--orange-soft); color: var(--orange);
  border-radius: 999px; padding: .3rem .85rem;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.tl-card ul { padding-left: 1.05rem; margin: 0; color: #4d5b68; font-size: .93rem; line-height: 1.6; }
.tl-card ul li { margin-bottom: .5rem; }
.tl-card ul li::marker { color: var(--orange); }

/* ---------- Education list ---------- */
.edu-rail { position: relative; padding-left: 26px; }
.edu-rail::before {
  content:""; position:absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: #f0d9c1;
}
.edu-item { position: relative; margin-bottom: 1.1rem; }
.edu-item::before {
  content:""; position:absolute; left: -25px; top: 26px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 4px rgba(245,132,31,.15);
}
.edu-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm);
  display:flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.edu-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.edu-card h6 { font-family: var(--ff-display); font-weight: 700; color: var(--heading); margin: 0 0 .25rem; font-size: 1.02rem; }
.edu-card .place { color: var(--muted); font-size: .9rem; margin: 0; }
.edu-year { background: var(--orange-soft); color: var(--orange); font-weight: 700; border-radius: 999px; padding: .25rem .8rem; font-size: .82rem; }
.edu-figure {
  border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, #8fb8d6, #5a86b0); aspect-ratio: 4/4.4;
  display:flex; align-items:flex-end; justify-content:center; position:relative;
}
.edu-figure .campus { font-size: 7rem; color: rgba(255,255,255,.85); margin-bottom: 18%; }
.edu-figure .cap { position:absolute; bottom: 18px; color:#fff; font-weight:600; background: rgba(0,0,0,.3); padding:.3rem .9rem; border-radius:999px; font-size:.85rem; }

/* ---------- Achievements ---------- */
.ach-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; height: 100%; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.ach-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ach-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--orange-soft); color: var(--orange);
  display:flex; align-items:center; justify-content:center; font-size: 1.5rem;
  margin-bottom: 1rem;
}
.ach-card h6 { font-family: var(--ff-display); font-weight: 700; color: var(--heading); }
.ach-card p { color: var(--muted); font-size: .92rem; margin: 0; }

.book-card {
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
  color:#fff; border-radius: var(--radius-sm); padding: 1.5rem; height: 100%;
  position: relative; overflow: hidden;
  transition: transform .3s ease;
}
.book-card:hover { transform: translateY(-6px) rotate(-1deg); }
.book-card .yr { color: var(--orange); font-weight: 700; }
.book-card .bk-icon { font-size: 2rem; color: var(--orange); margin-bottom: .6rem; }
.book-card h6 { font-family: var(--ff-display); font-weight: 600; margin: 0; }

/* ---------- Innovation cards ---------- */
.inv-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); height: 100%;
  transition: transform .35s ease, box-shadow .35s ease;
}
.inv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.inv-figure {
  aspect-ratio: 16/10; display:flex; align-items:center; justify-content:center;
  font-size: 4rem; color:#fff; position: relative;
}
.inv-figure.robot { background: linear-gradient(150deg,#3f7d4f,#2f5d3b); }
.inv-figure.vibe  { background: linear-gradient(150deg,#3a2f2a,#1f1714); }
.inv-figure.aiesec{ background: linear-gradient(150deg,#5a86b0,#3c6690); }
.inv-body { padding: 1.5rem 1.6rem; }
.inv-body h5 { font-family: var(--ff-display); font-weight: 700; color: var(--heading); }
.inv-body .loc { color: var(--orange); font-weight: 600; font-size: .9rem; margin-bottom: .7rem; }
.inv-body ul { padding-left: 1.05rem; color: #4d5b68; font-size: .93rem; line-height: 1.6; }
.inv-body ul li::marker { color: var(--orange); }

/* ---------- Contact / CTA ---------- */
.contact-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  border-radius: var(--radius); padding: 3rem; color:#fff; text-align:center;
  position: relative; overflow:hidden;
}
.contact-card::before {
  content:""; position:absolute; right:-40px; bottom:-40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,132,31,.35), transparent 70%);
}
.contact-card h2 { font-family: var(--ff-display); font-weight: 800; }
.contact-btn {
  display:inline-flex; align-items:center; gap:.6rem;
  background: var(--orange); color:#fff; border-radius: 12px;
  padding: .9rem 1.8rem; font-weight: 600; transition: all .28s ease;
}
.contact-btn:hover { background:#fff; color: var(--navy); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color:#cbd2db; padding: 1.6rem 0; }
.site-footer .foot-social a {
  width: 40px; height:40px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  color:#cbd2db; border:1px solid rgba(255,255,255,.18);
  margin-right:.5rem; transition: all .26s ease;
}
.site-footer .foot-social a:hover { background: var(--orange); border-color: var(--orange); color:#fff; }
.site-footer .rights { font-size: .9rem; }

/* ---------- Scroll progress + back to top ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  z-index: 2000;
}
.to-top {
  position: fixed; right: 26px; bottom: 26px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events:none;
  transform: translateY(14px); transition: all .3s ease; z-index: 1500;
}
.to-top.show { opacity: 1; pointer-events:auto; transform: translateY(0); }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity:0; transform: translateY(26px);} to {opacity:1; transform:none;} }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .7s cubic-bezier(.2,.8,.2,1) forwards; }
.reveal.d1 { animation-delay: .12s; }
.reveal.d2 { animation-delay: .24s; }
.reveal.d3 { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .timeline::before { left: 18px; }
  .tl-item { width: 100%; left: 0 !important; padding: 0 0 36px 52px; }
  .tl-item .tl-dot { left: 1px !important; right: auto !important; }
  .navbar .nav-link { margin: .2rem 0; }
  .home-hero { padding-top: 48px; }
}
@media (max-width: 575px) {
  .section { padding: 60px 0; }
  .about-card, .contact-card { padding: 1.7rem; }
}
