/* ==========================================================
   new/style.css — Modern redesign of gasmi.net
   ========================================================== */

/* ----- Variables — Dark (default) ----- */
:root {
  --bg:        #060d1f;
  --bg-alt:    #0c1830;
  --bg-card:   #0f1f3d;
  --orange:    #38bdf8;
  --blue:      #38bdf8;
  --text:      #f1f5f9;
  --muted:     #94a3b8;
  --faint:     #64748b;
  --border:    rgba(255, 255, 255, 0.07);
  --nav-bg:    rgba(6, 13, 31, 0.88);
  --contact-bg1: #08122a;
  --contact-bg2: #152a56;
  --footer-bg: #030810;
  --nav-h:     68px;
  --pad:       96px 0;
  --max-w:     1180px;
  --r:         12px;
  --ease:      0.3s ease;
}

/* ----- Variables — Light ----- */
[data-theme="light"] {
  --bg:        #f8fafc;
  --bg-alt:    #f1f5f9;
  --bg-card:   #ffffff;
  --orange:    #0284c7;
  --blue:      #0284c7;
  --text:      #0f172a;
  --muted:     #475569;
  --faint:     #94a3b8;
  --border:    rgba(0, 0, 0, 0.09);
  --nav-bg:    rgba(248, 250, 252, 0.92);
  --contact-bg1: #dbeafe;
  --contact-bg2: #bfdbfe;
  --footer-bg: #e2e8f0;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: 'Inter', sans-serif; }
strong { color: var(--text); }

/* ----- Layout ----- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--pad); }
.section-alt { background: var(--bg-alt); }

/* ----- Section Header ----- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  display: inline-block;
  position: relative;
  padding-bottom: 14px;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
}
.section-header p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

/* ----- Reveal animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--ease), box-shadow var(--ease);
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 17px; font-weight: 700; }

/* nav links */
.nav-links { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: all var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); background: rgba(56,189,248,.08); }

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

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background:
    linear-gradient(135deg, rgba(6,13,31,.96) 0%, rgba(12,24,48,.9) 50%, rgba(6,13,31,.96) 100%),
    url('/assets/img/background3.jpg') center/cover no-repeat fixed;
  overflow: hidden;
}
.hero-bg-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 55%, rgba(56,189,248,.07) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 40%, rgba(249,115,22,.05) 0%, transparent 55%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-w); width: 100%;
  padding: var(--nav-h) 24px 0;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 32px;
}
/* eyebrow pill */
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
  background: rgba(56,189,248,.1);
  border: 1px solid rgba(56,189,248,.22);
  padding: 5px 14px; border-radius: 100px;
  margin-top: 20px;
  margin-bottom: 0;
}
.hero-text {
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-text h1 {
  font-size: clamp(54px, 10vw, 112px);
  font-weight: 900; line-height: 1; letter-spacing: -.03em;
  margin-bottom: 0;
}
.accent { color: var(--orange); }
.hero-text h2 {
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 300; color: var(--muted);
  margin-bottom: 40px;
}
/* CTA button */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  padding: 14px 34px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  transition: all var(--ease);
  box-shadow: 0 4px 24px rgba(249,115,22,.35);
}
.btn-primary:hover {
  background: #e56a0a; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(249,115,22,.45);
}
/* scroll indicator */
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 2px; height: 52px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  border-radius: 2px;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: .3; transform: scaleY(.75); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-intro {
  font-size: 17px; color: var(--muted); line-height: 1.85;
  margin-bottom: 36px;
}
/* ----- Timeline (jobs) ----- */
/*
  Layout: [  year col 64px  ][gap 14px][ line 2px ][gap 14px][ content ]
  .about-list padding-left = 64+14+2+14 = 94px
  line left = 78px (from .about-list left edge)
  li left edge = 94px (from .about-list left edge, due to padding)
  dot left  = -(94 - (78 - 5)) = -11px  (centers 10px dot on line)
  year left = -(94 - 0) = -94px, width 64px, text-align right
*/
.about-list {
  list-style: none;
  position: relative;
  padding-left: 94px;
}
/* vertical line */
.about-list::before {
  content: '';
  position: absolute;
  left: 78px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), rgba(56,189,248,.15));
  border-radius: 2px;
}
.about-list li {
  position: relative;
  padding: 0 0 36px 16px;
  font-size: 17px; line-height: 1.6;
}
.about-list li:last-child { padding-bottom: 0; }
/* mask the line below the last dot */
.about-list li:last-child::after {
  content: '';
  position: absolute;
  left: -17px; top: 18px;
  width: 4px; bottom: -8px;
  background: var(--bg);
}
/* dot centered on the line — filled with glow on current job only */
.about-list li::before {
  content: '';
  position: absolute;
  left: -21px; top: 5px;
  width: 12px; height: 12px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: none;
  transition: box-shadow var(--ease);
}
.about-list li:first-child::before {
  box-shadow: 0 0 6px 2px rgba(56,189,248,.55), 0 0 0 3px rgba(56,189,248,.18);
}
.about-list li:first-child:hover::before { box-shadow: 0 0 10px 4px rgba(56,189,248,.75), 0 0 0 5px rgba(56,189,248,.3); }
.about-item-body { display: flex; flex-direction: column; gap: 4px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.job-tag {
  font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: none;
  color: #94a3b8;
  background: rgba(148,163,184,.08);
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 100px;
  padding: 2px 9px; line-height: 1.6;
  white-space: nowrap;
}
.job-tag.jt-v, .job-tag.jt-c, .job-tag.jt-g { color: #94a3b8; background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.22); }
/* year sits in the left column, right-aligned, flush before the line */
.about-years {
  position: absolute;
  left: -94px; top: 0px;
  width: 64px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  line-height: 1.3;
}
.ay-year {
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
  white-space: nowrap;
}
.ay-dur {
  font-size: 10px; font-weight: 500;
  color: var(--faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* icon inside the timeline dot area — kept for compat but hidden in timeline */
.list-icon { display: none; }
.list-icon-i { display: none; }

/* items outside the timeline */
.about-extras-intro {
  margin-top: 52px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}
.about-extras {
  list-style: none;
  margin-top: 16px;
  padding-left: 94px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
/* short line connecting the two dots */
.about-extras::before {
  content: '';
  position: absolute;
  left: 78px; top: 11px; bottom: 11px;
  width: 2px;
  background: rgba(56,189,248,.3);
  border-radius: 2px;
}
.about-extras li {
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 16px;
}
/* same glowing dot as the timeline */
.about-extras li::before {
  content: '';
  position: absolute;
  left: -21px; top: 5px;
  width: 12px; height: 12px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(56,189,248,.55), 0 0 0 3px rgba(56,189,248,.18);
  transition: box-shadow var(--ease);
}
.about-extras li:hover::before { box-shadow: 0 0 10px 4px rgba(56,189,248,.75), 0 0 0 5px rgba(56,189,248,.3); }
/* mask line below last dot */
.about-extras li:last-child::after {
  content: '';
  position: absolute;
  left: -17px; top: 18px;
  width: 4px; bottom: -18px;
  background: var(--bg);
}
.about-extras .job-tags { margin-top: 5px; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.skills-venn {
  display: flex;
  justify-content: center;
  align-items: center;
}
.skills-venn img {
  width: 100%; max-width: 460px;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(56,189,248,.15)) drop-shadow(0 8px 32px rgba(0,0,0,.5));
  transition: filter .4s ease;
}
.skills-venn img:hover {
  filter: drop-shadow(0 0 40px rgba(249,115,22,.2)) drop-shadow(0 8px 40px rgba(0,0,0,.5));
}
.skills-items {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.skills-items li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background var(--ease), transform var(--ease);
}
.skills-items li:not(.skills-group-label) {
  padding-left: 32px;
}
.skills-items li:not(.skills-group-label):hover { background: rgba(255,255,255,.04); transform: translateX(4px); }
.skills-items li i { font-size: 20px; flex-shrink: 0; }

/* Pastel color coding matching Venn circles */
.si-orange i { color: #d8b4fe; }
.si-teal   i { color: #67e8f9; }
.si-green  i { color: #6ee7b7; }

/* Group labels */
.skills-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 14px 4px;
  display: block;
}
.si-orange-label { color: #d8b4fe !important; }
.si-teal-label   { color: #67e8f9 !important; }
.si-green-label  { color: #6ee7b7 !important; }

/* ============================================================
   ACCORDION / TESTIMONIALS
   ============================================================ */
.accordion { max-width: 900px; margin: 0 auto; }
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.accordion-btn {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 20px 24px;
  background: none; border: none;
  color: var(--text); font-size: 15px; font-weight: 600;
  cursor: pointer; text-align: left;
  transition: background var(--ease);
}
.accordion-btn:hover { background: rgba(255,255,255,.03); }
.accordion-btn i:first-child { font-size: 22px; color: var(--blue); }
.accordion-btn span { flex: 1; }
.acc-arrow { font-size: 22px; color: var(--faint); transition: transform var(--ease); }
.accordion-item.open .acc-arrow { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 24px 28px; }
.accordion-item.open .accordion-body { display: block; }

.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
blockquote {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  padding: 20px;
}
blockquote p { font-size: 14px; color: var(--muted); line-height: 1.75; font-style: italic; }
blockquote strong { color: var(--text); }
blockquote cite {
  display: block; margin-top: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--blue); font-style: normal; text-transform: uppercase;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.project-card:hover {
  border-color: rgba(56,189,248,.3);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.project-card h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.project-card p { font-size: 14px; color: var(--muted); line-height: 1.75; flex: 1; }

/* Featured cards */
.project-card--featured {
  border-color: rgba(245,158,11,.75);
  border-top-color: #f59e0b;
  background: linear-gradient(160deg, rgba(245,158,11,.07) 0%, var(--bg-card) 55%);
}
.project-card--featured h3::before {
  content: "★ ";
  color: #f59e0b;
}
.project-card--featured:hover {
  border-color: #f59e0b;
  box-shadow: 0 16px 40px rgba(245,158,11,.18);
}
.project-stat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  color: #f59e0b;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 20px;
  padding: 3px 10px;
  align-self: flex-start;
}
.project-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.plink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--blue);
  padding: 5px 12px;
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 6px;
  background: rgba(56,189,248,.05);
  transition: all var(--ease);
}
.plink i { font-size: 14px; }
.plink:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

/* ============================================================
   CONTACT
   ============================================================ */
.section-contact {
  background: linear-gradient(135deg, var(--contact-bg1), var(--contact-bg2));
  text-align: center; position: relative; overflow: hidden;
}
.section-contact::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(249,115,22,.07) 0%, transparent 68%);
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.contact-inner h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; margin-bottom: 22px; }
.contact-inner p { font-size: 17px; color: var(--muted); line-height: 1.85; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--footer-bg);
  padding: 32px 0; text-align: center;
  border-top: 1px solid var(--border);
}
#footer p { color: var(--faint); font-size: 14px; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--orange); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  opacity: 0; transform: translateY(16px);
  transition: all var(--ease);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(249,115,22,.4);
}
.back-to-top.visible { opacity: 1; transform: none; }
.back-to-top:hover { background: #e56a0a; color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .skills-layout { grid-template-columns: 1fr; }
  .skills-venn { order: -1; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --pad: 72px 0; }

  #hero { align-items: flex-start; }
  .hero-content { padding-top: calc(var(--nav-h) + 80px); }

  /* mobile nav */
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path var(--ease);
  }
  .nav-links.open { clip-path: inset(0 0 0 0); }
  .nav-links a { padding: 12px 16px; border-radius: 10px; width: 100%; }
  .nav-toggle { display: flex; }

  .about-list { padding-left: 62px; }
  .about-list::before { left: 46px; }
  .about-list li::before { left: -23px; }
  .about-years { left: -62px; width: 36px; font-size: 11px; }
  .about-extras { padding-left: 62px; }
  .about-extras::before { left: 46px; }
  .projects-grid { grid-template-columns: 1fr; }
}
