/* ══════════════════════════════════════════════════════════════
   IMPORTS & TOKENS
══════════════════════════════════════════════════════════════ */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&display=swap");

:root {
  --white:       #ffffff;
  --bg:          #fafafa;
  --bg-section:  #f4f6fb;
  --border:      #e5e9f2;
  --border-hi:   #c8d0e0;

  --navy:        #0f2240;
  --navy-2:      #1e3a5f;
  --blue:        #2563eb;
  --blue-hover:  #1d4ed8;
  --blue-dim:    rgba(37,99,235,0.08);
  --blue-shadow: rgba(37,99,235,0.25);
  --orange:      #f97316;
  --orange-dim:  rgba(249,115,22,0.1);
  --green:       #059669;
  --green-dim:   rgba(5,150,105,0.1);

  --text:        #0f172a;
  --text-2:      #334155;
  --text-3:      #64748b;
  --text-4:      #94a3b8;

  --font-display:'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:   'Geist', system-ui, sans-serif;
  --font-mono:   'Geist Mono', monospace;

  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --shadow-sm:   0 1px 3px rgba(15,34,64,0.06), 0 1px 2px rgba(15,34,64,0.04);
  --shadow-md:   0 4px 16px rgba(15,34,64,0.08), 0 1px 4px rgba(15,34,64,0.05);
  --shadow-lg:   0 12px 40px rgba(15,34,64,0.10), 0 2px 8px rgba(15,34,64,0.05);
  --transition:  0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ══════════════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.65;
  overflow-x: hidden;
}

p { color: var(--text-2); }
h1, h2, h3 { color: var(--text); font-family: var(--font-display); }
a { color: var(--text-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue); }

/* ══════════════════════════════════════════════════════════════
   NAV — DESKTOP
══════════════════════════════════════════════════════════════ */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 6%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(15,34,64,0.05);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }

/* ══════════════════════════════════════════════════════════════
   NAV — HAMBURGER
══════════════════════════════════════════════════════════════ */
#hamburger-nav { display: none; }

.hamburger-menu { position: relative; }

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 22px;
  width: 28px;
  cursor: pointer;
}
.hamburger-icon span {
  width: 100%;
  height: 2.5px;
  background: var(--navy);
  border-radius: 4px;
  transition: all 0.3s ease;
}
.hamburger-icon.open span:nth-child(1) { transform: translateY(9.75px) rotate(45deg); }
.hamburger-icon.open span:nth-child(2) { opacity: 0; }
.hamburger-icon.open span:nth-child(3) { transform: translateY(-9.75px) rotate(-45deg); }

.menu-links {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: var(--white);
  min-width: 200px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  list-style: none;
}
.menu-links.open { max-height: 360px; padding: 8px 0; }
.menu-links li a {
  display: block;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
}
.menu-links li a:hover { color: var(--blue); background: var(--blue-dim); }

/* ══════════════════════════════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════════════════════════════ */
section {
  padding: 88px 6% 64px;
  min-height: fit-content;
}

section:nth-child(even) { background: var(--bg-section); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  text-align: center;
  margin-bottom: 8px;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-align: center;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 52px;
}
#profile .title {
  margin-bottom: 8px; /* This shrinks the huge 52px gap down to a tight 8px */
}
/* ══════════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════════ */
#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  padding: 80px 6%;
  min-height: 90vh;
  background: var(--white);
}

.section__pic-container {
  width: 440px;
  height: 520px;
  flex-shrink: 0;
}
.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Oval on every screen size — horizontal radius 50%, vertical radius 42% */
  /* border-radius: 50% / 42%; */
  border-radius: 50%;
  box-shadow: 0 24px 48px rgba(15,34,64,0.12), 0 0 0 6px rgba(37,99,235,0.08);
}

.section__text { text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dim);
  border: 1px solid rgba(5,150,105,0.25);
  border-radius: 99px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-green 2.5s ease infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(5,150,105,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(5,150,105,0); }
}

.section__text__p1 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 6px;
}

.title.hero-name {
  background: linear-gradient(135deg, var(--navy) 30%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section__text__p2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-3);
  max-width: 440px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}

/* Socials */
#socials-container {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.8rem;
}
.social-link { display: inline-flex; }
.icon {
  height: 2rem;
  width: auto;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
}
.icon:hover { transform: translateY(-3px); opacity: 0.8; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.6rem;
  border-radius: 99px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-color-1 {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 3px 12px var(--blue-shadow);
}
.btn-color-1:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--blue-shadow);
  color: var(--white);
}

.btn-color-2 {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-color-2:hover {
  background: var(--blue-dim);
  transform: translateY(-2px);
  color: var(--blue);
}

/* ══════════════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════════════ */
.about-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-edu-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
}
.edu-icon-wrap {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.edu-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.edu-degree {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 3px;
}
.edu-inst { font-size: 0.9rem; color: var(--text-3); }

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
}
.about-bio strong { color: var(--navy); font-weight: 600; }
.about-bio em { color: var(--blue); font-style: italic; }

.about-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.stat-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  /* Fixed width so chips stay uniform and wrap cleanly */
  min-width: 160px;
  flex: 0 1 auto;
}
.stat-chip:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   SKILLS SECTION
══════════════════════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.details-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.details-container:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.skills-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.2rem;
}
.skill-list article {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.skill-list .icon {
  height: 2.2rem;
  width: auto;
  flex-shrink: 0;
  cursor: default;
}
.skill-list h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1px;
}
.skill-list p {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ══════════════════════════════════════════════════════════════
   PROJECTS SECTION
══════════════════════════════════════════════════════════════ */
#projects { padding-bottom: 80px; }

.projects-carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 0.5rem 0.5rem 1.5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.projects-carousel::-webkit-scrollbar { height: 6px; }
.projects-carousel::-webkit-scrollbar-track { background: var(--bg-section); border-radius: 99px; }
.projects-carousel::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 99px; }
.projects-carousel::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

.draggable-carousel { cursor: grab; }
.draggable-carousel.active {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.project-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-card-body {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.7rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 99px;
  border: 1px solid;
}
.tag-dl  { background: rgba(124,58,237,0.07); color: #7c3aed; border-color: rgba(124,58,237,0.2); }
.tag-cv  { background: rgba(219,39,119,0.07); color: #db2777; border-color: rgba(219,39,119,0.2); }
.tag-ml  { background: var(--blue-dim);       color: var(--blue);  border-color: rgba(37,99,235,0.2); }
.tag-bi  { background: var(--orange-dim);     color: var(--orange); border-color: rgba(249,115,22,0.2); }
.tag-oss { background: var(--green-dim);      color: var(--green); border-color: rgba(5,150,105,0.2); }
.tag-api { background: rgba(20,184,166,0.08); color: #0d9488; border-color: rgba(20,184,166,0.2); }
.tag-nlp { background: rgba(234,179,8,0.08);  color: #b45309; border-color: rgba(234,179,8,0.2); }

.project-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.65;
  flex: 1;
}

.project-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.4rem;
}
.project-actions .btn {
  flex: 1;
  font-size: 0.82rem;
  padding: 0.6rem 0.8rem;
}

.carousel-hint {
  text-align: center;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-4);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════════════════════
   EXPERIENCE SECTION
══════════════════════════════════════════════════════════════ */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.service-item:hover { background: var(--white); box-shadow: var(--shadow-sm); transform: translateX(4px); }

.service-icon-wrap {
  /* Legacy — kept for backwards compatibility if emoji is ever re-added */
  display: none;
}

/* Clean numbered indicator for Technical Services */
.service-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 6px;
  padding: 4px 8px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  white-space: nowrap;
}

.service-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.service-item p { font-size: 0.85rem; color: var(--text-3); line-height: 1.6; }
.service-item strong { color: var(--navy); font-weight: 600; }

/* Certifications */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.cert-item:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.cert-logo {
  height: auto;
  width: 60px;
  flex-shrink: 0;
  object-fit: contain;
}
.cert-item h3 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.cert-item p  { font-size: 0.82rem; color: var(--text-3); margin-bottom: 6px; }
.cert-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.cert-link:hover { color: var(--blue-hover); }

/* ══════════════════════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════════════════════ */
#contact {
  padding-bottom: 80px;
}

.contact-intro {
  text-align: center;
  color: var(--text-3);
  max-width: 620px;
  margin: -32px auto 3rem;
  font-size: 1rem;
  line-height: 1.75;
}
.contact-intro strong { color: var(--navy); }

.contact-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 920px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact-links {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-links-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 0.2rem;
}
.contact-info-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-icon { height: 1.8rem; }
.contact-info-container p { font-size: 0.95rem; font-weight: 500; }

.contact-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 1rem;
  background: var(--green-dim);
  border: 1px solid rgba(5,150,105,0.2);
  border-radius: var(--radius);
  margin-top: 0.4rem;
}
.avail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-green 2.5s ease infinite;
}
.contact-availability p { font-size: 0.85rem; color: var(--green); font-weight: 500; }

.contact-form {
  flex: 2;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition);
}
.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.input-group input::placeholder,
.input-group textarea::placeholder { color: var(--text-4); }
.input-group textarea { resize: vertical; }

.form-submit-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  border-radius: 99px;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 2.5rem 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
footer nav {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border: none;
  height: auto;
  padding: 0;
  justify-content: center;
}
footer .nav-links a { color: rgba(255,255,255,0.55); font-size: 0.88rem; }
footer .nav-links a:hover { color: #fff; }
footer p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}
