/* ================= RESET ================= */
* { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family:'Inter', sans-serif;
  overflow:hidden;
  background:#000;
}

/* ================= GLOBAL BG ================= */
.global-bg { position:fixed; inset:0; z-index:0; }

.hero__bg {
  position:absolute; inset:0;
  background:linear-gradient(135deg,#7f1d1d,#991b1b,#dc2626);
}

#network { position:absolute; inset:0; }

.hero__overlay {
  position:absolute; inset:0;
  backdrop-filter:blur(6px);
}

/* ================= PAGE ================= */
.page {
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}

.page.active {
  opacity:1;
  pointer-events:all;
}

/* ================= HERO ================= */
.hero__container {
  display:grid;
  grid-template-columns:1fr 1fr;
  height:100%;
  align-items:center;
  padding:0 10%;
}

.hero__left {
  display:flex;
  flex-direction:column;
  align-items:center;
}

.hero__right { color:white; }

.hero__image {
  width:300px;
  height:300px;
  border-radius:50%;
  overflow:hidden;
}

.hero__image img {
  width:100%;
  height:100%;
  object-fit:cover;
}

/* FIX 1: ICON COLOR */
.hero__socials {
  margin-top:20px;
  display:flex;
  gap:20px;
  justify-content:center;
}

.hero__socials svg {
  width:22px;
  height:22px;
  stroke:white !important;
  fill:none !important;
}

/* TEXT */
.hero__name {
  font-family:'Cormorant Garamond', serif;
  font-size:64px;
}

/* ================= BUTTON BASE ================= */
button {
  cursor:pointer;
  transition:all .3s ease;
}

/* HERO BUTTON */
.hero__cta {
  margin-top:40px;
  padding:16px 42px;
  border:1px solid white;
  background:transparent;
  color:white;
  letter-spacing:2px;
}

.hero__cta:hover {
  background:rgba(255,255,255,0.1);
}

/* ================= ABOUT ================= */
#about {
  display:flex;
  align-items:center;
}

.about__container {
  width:100%;
  padding:0 12%;
  transition:transform .6s ease, opacity .6s ease;
}

.about__content { max-width:720px; }

.about__title {
  font-family:'Cormorant Garamond', serif;
  font-size:72px;
  margin-bottom:40px;
  color:white;
}

.about__lead {
  font-size:20px;
  line-height:1.7;
  color:white;
  margin-bottom:20px;
}

.about__text {
  font-size:17px;
  line-height:1.75;
  color:rgba(255,255,255,0.75);
  margin-bottom:50px;
}

/* FIX 2: RESTORE BUTTON */
.about__cta {
  padding:16px 44px;
  border:1px solid rgba(255,255,255,0.6);
  background:transparent;
  color:white;
  letter-spacing:3px;
}

.about__cta:hover {
  background:rgba(255,255,255,0.08);
}

/* ================= EDUCATION ================= */
#education {
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.education__container {
  width:100%;
  padding:0 12%;
  transition:transform .6s ease, opacity .6s ease;
}

.education__content {
  max-width:760px;
  margin-left:auto;
}

/* TITLE */
.education__title {
  font-family:'Cormorant Garamond', serif;
  font-size:84px;
  color:white;
  margin-bottom:60px;
}

/* ITEM */
.education__item {
  display:flex;
  gap:20px;
  align-items:flex-start;
}

/* ICON */
.education__icon svg {
  width:34px;
  height:34px;
  stroke:white;
}

/* FIX 3: TEXT COLORS + STYLE */
.education__degree {
  font-family:'Cormorant Garamond', serif;
  font-size:30px;
  color:white;
  line-height:1.6;
  margin-bottom:10px;
}

.education__year {
  font-size:14px;
  letter-spacing:2px;
  color:rgba(255,255,255,0.6);
  margin-bottom:12px;
}

.education__school {
  font-family:'Cormorant Garamond', serif;
  font-size:26px;
  color:rgba(255,255,255,0.85);
}

/* ================= SKILLS ================= */
#skills {
  display:flex;
  align-items:center;
  justify-content:center;
}

.skills__container {
  width:100%;
  padding:0 8%;
  text-align:center;
}

.skills__title {
  font-family:'Cormorant Garamond', serif;
  font-size:72px;
  letter-spacing:8px;
  color:white;
  margin-bottom:80px;
}

.skills__grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:60px 80px;
  max-width:900px;
  margin:0 auto;
  justify-items:center;
}

.skill {
  display:flex;
  flex-direction:column;
  align-items:center;
}

/* SVG */
.skill__circle {
  width:120px;
  height:120px;
}

/* background ring */
.skill__circle .bg {
  fill:none;
  stroke:rgba(255,255,255,0.15);
  stroke-width:8;
}

/* 🔥 rotate ONLY the progress ring */
.skill__circle .progress {
  fill:none;
  stroke:rgba(255,255,255,0.85);
  stroke-width:8;
  stroke-linecap:round;
  stroke-dasharray:314;
  transform:rotate(-90deg);
  transform-origin:50% 50%;
}

/* 🔥 TEXT (now stable) */
.skill__value {
  fill:white;
  font-size:18px;
  font-weight:500;
  text-anchor:middle;
  dominant-baseline:middle;
}

/* LABEL */
.skill__label {
  margin-top:20px;
  color:white;
  text-align:center;
}

/* ================= TOOLS ================= */
#tools {
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.tools__container {
  width:100%;
  padding:0 12%;
}

.tools__content {
  max-width:760px;
  margin-left:auto;
  text-align:right;
}

/* TITLE */
.tools__title {
  font-family:'Cormorant Garamond', serif;
  font-size:84px;
  color:white;
  margin-bottom:20px;
}

/* ================= TOOLS TABS ================= */
.tools__tabs {
  display:flex;
  gap:30px;
  justify-content:flex-end;
  margin-bottom:20px;
}

.tools__tab {
  font-size:14px;
  letter-spacing:2px;
  cursor:pointer;
  color:rgba(255,255,255,0.5);
  transition:.3s ease;
}

.tools__tab.active {
  color:white;
}

.tools__tab:hover {
  color:white;
}

/* SUBTITLE */
.tools__subtitle {
  font-family:'Cormorant Garamond', serif;
  font-size:24px;
  color:rgba(255,255,255,0.75);
  margin-bottom:60px;
}

/* GRID */
.tools__grid {
  display:grid;
  grid-template-columns:repeat(4, 80px);
  gap:40px 40px;
  justify-content:end;
}

/* ================= VIEWPORT ================= */
.tools__viewport {
  position:relative;
  overflow:hidden;
  min-height:clamp(260px, 40vh, 420px);
}

/* animation states */
.tools__grid {
  transition:all .5s ease;
}

/* entering */
.tools__grid.enter-right {
  opacity:0;
  transform:translateX(60px);
}

.tools__grid.enter-left {
  opacity:0;
  transform:translateX(-60px);
}

/* active */
.tools__grid.active {
  opacity:1;
  transform:translateX(0);
}

/* exiting */
.tools__grid.exit-left {
  opacity:0;
  transform:translateX(-60px);
}

.tools__grid.exit-right {
  opacity:0;
  transform:translateX(60px);
}

/* ICON */
.tool {
  position:relative;
  width:80px;
  height:80px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

/* IMAGE */
.tool img {
  width:64px;
  height:64px;
  object-fit:contain;
  transition:transform .3s ease;
}

.tool:hover img {
  transform:scale(1.1);
}

/* TOOLTIP */
.tool__tooltip {
  position:absolute;
  bottom:-30px;
  right:50%;
  transform:translateX(50%);
  background:#000;
  color:#fff;
  font-size:12px;
  padding:6px 10px;
  border-radius:6px;
  opacity:0;
  pointer-events:none;
  transition:.3s ease;
  white-space:nowrap;
}

.tool:hover .tool__tooltip {
  opacity:1;
}

/* ================= WORK EXPERIENCE FIXES ================= */

#work {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 120px 80px 0 0;
}

/* container width control */
.work__container {
  max-width: 720px;
  width: 100%;
}

/* FIX 2: force single line title */
.work__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  color: #f5f5f5;
  white-space: nowrap;   /* 🔥 forces single line */
  line-height: 1.1;
  margin-bottom: 20px;
}

/* tabs */
.work__tabs {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  margin-bottom: 28px;
}

.work__tab {
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  transition: 0.3s ease;
}

.work__tab.active {
  color: #ffffff;
}

.work__tab:hover {
  color: #ffffff;
}

/* viewport */
.work__viewport {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

/* content */
.work__details {
  transition: all 0.5s ease;
}

/* FIX 4: text contrast (critical) */
.work__role {
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.work__meta {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}

.work__list {
  padding-left: 20px;
}

.work__list li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

/* animations (unchanged behavior) */
.work__details.enter-right {
  opacity: 0;
  transform: translateX(60px);
}

.work__details.enter-left {
  opacity: 0;
  transform: translateX(-60px);
}

.work__details.exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.work__details.exit-right {
  opacity: 0;
  transform: translateX(60px);
}

.work__details.active {
  opacity: 1;
  transform: translateX(0);
}

/* ================= ENGAGEMENT PAGE ================= */

#engagement {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 120px 80px 0 0;
}

.engage__container {
  max-width: 720px;
  width: 100%;
}

.engage__content {
  display: flex;
  flex-direction: column;
}

/* TITLE */
.engage__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  color: #3a3a3a;
  white-space: nowrap;
  margin-bottom: 20px;
}

/* INTRO */
.engage__intro {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 40px;
}

/* GRID */
.engage__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* CARD */
.engage__card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #3a3a3a;
}

.engage__card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* NOTE */
.engage__note {
  font-size: 14px;
  color: #777;
  margin-bottom: 40px;
}

/* CTA */
.engage__cta {
  margin-top: 20px;
}

/* ================= ENGAGEMENT PAGE FIX ================= */

/* Force correct color system on red background */
#engagement .engage__title,
#engagement .engage__intro,
#engagement .engage__card h3,
#engagement .engage__card p,
#engagement .engage__note {
  color: #ffffff;
}

/* Improve contrast hierarchy */
#engagement .engage__intro {
  opacity: 0.85;
}

#engagement .engage__card p {
  opacity: 0.75;
}

#engagement .engage__note {
  opacity: 0.6;
}

/* FIX BUTTON (reuse your working outline button style) */
#engagement .btn-outline {
  border: 1px solid #ffffff;
  color: #ffffff;
  background: transparent;
  padding: 14px 32px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

#engagement .btn-outline:hover {
  background: #ffffff;
  color: #b32020; /* your red theme */
}

/* ================= CTA PAGE ================= */

#cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 80px;
}

.cta__container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* LEFT */
.cta__left {
  max-width: 500px;
}

.cta__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  color: #3a3a3a;
  margin-bottom: 20px;
}

.cta__desc {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.cta__contact p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #3a3a3a;
}

.cta-btn {
  margin-top: 30px;
}

/* RIGHT */
.cta__right {
  text-align: center;
}

.cta__image img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.cta__name {
  font-size: 28px;
  color: #3a3a3a;
}

.cta__role {
  font-size: 16px;
  color: #666;
}

/* ================= CTA HARD WRAP FIX ================= */

.cta__nowrap {
  white-space: nowrap;
}

/* ================= CTA COLOR FIX ================= */

#cta .cta__title,
#cta .cta__desc,
#cta .cta__contact p,
#cta .cta__name,
#cta .cta__role {
  color: #ffffff;
}

/* hierarchy tuning */
#cta .cta__desc { opacity: 0.85; }
#cta .cta__role { opacity: 0.75; }
#cta .cta__contact p { opacity: 0.9; }

/* ================= CTA BUTTON FIX ================= */

#cta .btn-outline {
  border: 1px solid #ffffff;
  color: #ffffff;
  background: transparent;
  padding: 14px 36px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

#cta .btn-outline:hover {
  background: #ffffff;
  color: #b32020;
}

/* ================= CTA ICON CONTACT ================= */

.cta__icons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.cta__icon {
  width: 50px;
  height: 50px;
  border: 1px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.cta__icon:hover {
  background: #ffffff;
  color: #b32020;
}

.cta__location {
  font-size: 14px;
  opacity: 0.75;
}

/* ================= CTA ICON ENHANCEMENT ================= */

.cta__icon {
  width: 50px;
  height: 50px;
  border: 1px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

/* ================= CTA TOOLTIP FIX ================= */

.cta__icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 60px; /* move ABOVE icon */
  left: 50%;
  transform: translateX(-50%);
  
  background: rgba(0, 0, 0, 0.85); /* high contrast */
  color: #ffffff;
  
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

/* Tooltip arrow */
.cta__icon::before {
  content: "";
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0,0,0,0.85) transparent transparent transparent;
  
  opacity: 0;
  transition: 0.2s ease;
}

/* Show */
.cta__icon:hover::after,
.cta__icon:hover::before {
  opacity: 1;
}

/* ================= CTA TITLE FIX ================= */

.cta__title {
  max-width: 520px; /* controls wrapping */
  line-height: 1.1;
}

/* Force better break on large screens */
@media (min-width: 1024px) {
  .cta__title {
    max-width: 600px;
  }
}

/* ================= TRANSITIONS ================= */

/* HERO EXIT */
.hero__left,
.hero__right {
  transition:transform .6s ease, opacity .6s ease;
}

.page.exiting-forward .hero__left {
  transform:translateX(-80px);
  opacity:0;
}

.page.exiting-forward .hero__right {
  transform:translateX(80px);
  opacity:0;
}

/* ABOUT ENTER */
.page.enter-forward .about__container {
  transform:translateY(40px);
  opacity:0;
}

.page.active .about__container {
  transform:translateY(0);
  opacity:1;
}

/* ABOUT EXIT RIGHT */
.page.exiting-forward .about__container {
  transform:translateX(80px);
  opacity:0;
}

/* ABOUT BACK */
.page.exiting-backward .about__container {
  transform:translateY(40px);
  opacity:0;
}

/* EDUCATION ENTER */
.page.enter-forward .education__container {
  transform:translateY(40px);
  opacity:0;
}

.page.active .education__container {
  transform:translateY(0);
  opacity:1;
}

/* FIX 5: SKILLS TRANSITIONS */
.page.enter-forward .skills__container {
  transform:translateY(40px);
  opacity:0;
}

.page.active .skills__container {
  transform:translateY(0);
  opacity:1;
}

/* ================= RESPONSIVE ================= */
@media (max-width:900px) {
  .hero__container {
    grid-template-columns:1fr;
    text-align:center;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tools__viewport {
    min-height:420px; /* supports 3 rows comfortably */
  }
}

/* Mobile — allow wrapping again */
@media (max-width: 768px) {
  .cta__nowrap {
    white-space: normal;
  }
}

/* ================= GLOBAL PAGE TRANSITION FIX ================= */

/* ensure smooth base transition for ALL pages */
.page {
  transition:opacity .6s ease, transform .6s ease;
}

/* ===== ENTER FORWARD (scroll down) ===== */
.page.enter-forward {
  opacity:0;
  transform:translateY(60px);
}

/* ===== ENTER BACKWARD (scroll up) ===== */
.page.enter-backward {
  opacity:0;
  transform:translateY(-60px);
}

/* ===== EXIT FORWARD ===== */
.page.exiting-forward {
  opacity:0;
  transform:translateX(-80px);
}

/* ===== EXIT BACKWARD ===== */
.page.exiting-backward {
  opacity:0;
  transform:translateX(80px);
}

/* =============================================================
   MOBILE OVERRIDE (Appended to prevent Desktop breakage)
   ============================================================= */
@media (max-width: 768px) {

  html, body {
    position: fixed;
    overflow: hidden;
    width: 100%;
    height: 100%;
    /* Prevents "Pull-to-refresh" and "Overscroll" glow on mobile */
    overscroll-behavior-y: none; 
  }

  /* 1. Global Header Fix (Standardized for all sections) */
  .hero__name, .hero__title, .about__title, .education__title, .skills__title, 
  .tools__title, .work__title, .engage__title, .cta__title {
    font-size: 38px !important;
    font-weight: 500 !important;
    letter-spacing: 0.03em !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    font-family: 'Cormorant Garamond', serif !important;
    -webkit-font-smoothing: antialiased;
  }

  /* 2. About Page Layout & Scrolling */
  .about__container {
    padding: 0 8% !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .about__content {
    display: flex !important;
    flex-direction: column !important;
    max-height: 80vh !important;
    text-align: center !important;
  }

  /* Internal scroll area for text only */
  .about__scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .about__scroll-area::-webkit-scrollbar { display: none; }

  /* 3. About Page Typography (Strict Color & Weight) */
  .about__lead, .about__text {
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important; /* Lighter weight to match desktop feel */
    -webkit-font-smoothing: antialiased;
    line-height: 1.6 !important;
  }

  .about__lead {
    font-size: 17px !important;
    color: #ffffff !important; /* Pure White restored */
    margin-bottom: 15px !important;
  }

  .about__text {
    font-size: 14px !important;
    color: #bbbbbb !important; /* Subtle Gray restored */
  }

  .about__cta {
    align-self: center !important;
    flex-shrink: 0 !important;
    margin: auto auto 0 auto !important;
    padding: 12px 24px !important;
  }

  /* 4. Education Page Fixes */
  .education__container {
    padding: 0 8% !important;
    text-align: center !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    justify-content: center !important;
  }

  .education__item {
    margin-bottom: 20px !important;
  }

  .education__degree {
    font-size: 18px !important;
    margin-bottom: 5px !important;
  }

  .education__school, .education__year {
    font-size: 14px !important;
  }

  /* 5. Navigation/Menu Strip Fixes */
  .tools__tabs, .work__tabs {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 30px !important;
  }

  .about__lead, 
  .about__text {
    /* This prevents the "..." collapse */
    white-space: normal !important; 
    overflow: visible !important;
    text-overflow: clip !important;
    
    /* Standard layout rules */
    display: block !important;
    width: 100% !important;
    height: auto !important;
    
    /* Your established sleek styles */
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
    text-align: center;
  }

  .education__container {
    padding: 0 10% !important;   /* Provides a clean margin on the sides */
    text-align: left !important;  /* Matches your desktop alignment */
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    justify-content: center !important;
  }

  .education__item {
    margin-bottom: 25px !important;
    width: 100% !important;
  }

  .education__degree {
    font-size: 18px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important; /* Slightly bolder to stand out */
    color: #ffffff !important;
    margin-bottom: 5px !important;
  }

  .education__school, 
  .education__year {
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important; /* Keeps that sleek look we liked */
    color: #bbbbbb !important;
  }


  .skills__container {
    padding: 0 5% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 100vh !important;
  }

  .skills__grid {
    display: grid !important;
    /* This creates the 2-column layout */
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 30px 20px !important; /* Vertical and Horizontal spacing */
    width: 100% !important;
    max-width: 340px !important; /* Keeps the grid tight on the screen */
    margin: 0 auto !important;
  }

  .skill-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Scaling the circles for Mobile */
  .skill-item canvas {
    width: 100px !important;  /* Scaled down to fit 2-across */
    height: 100px !important;
    margin-bottom: 10px !important;
  }

  .skill-item__label {
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important; /* Sleek font choice */
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .tools__subtitle {
    text-align: center !important;  /* Centers the text on mobile */
    width: 100% !important;         /* Ensures it has the full width to center within */
    font-size: 16px !important;     /* Slightly adjusted for mobile clarity */
    font-family: 'Inter', sans-serif !important;
    font-weight: 300 !important;    /* Matches our established 'sleek' look */
    color: #bbbbbb !important;      /* Consistent gray from your About text */
    margin-bottom: 30px !important; /* Space before the tool icons begin */
    display: block !important;
  }

  /* ================= WORK EXPERIENCE MOBILE OVERRIDE ================= */
  #work, 
  .work__container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 60px 0 90px 0 !important; /* Safety padding top/bottom */
    left: 0 !important;
    position: relative !important;
    overflow-x: hidden !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; 
    justify-content: flex-start !important; /* Prevents vertical centering overflow */
    height: auto !important; 
    min-height: 100vh !important;
  }

  .work__content {
    width: 85% !important; 
    max-width: 400px !important; 
    margin: 0 auto !important; 
    padding: 0 !important;
    text-align: center !important;
  }

  .work__title {
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
    font-size: 1.8rem !important; /* Scaled down */
    transform: none !important;
  }

  .work__role {
    font-size: 1.4rem !important;
    margin-bottom: 15px !important;
  }

  .work__details ul {
    display: inline-block !important; 
    text-align: left !important;
    margin: 0 auto !important;
    padding: 0 15px 0 20px !important; 
    width: fit-content !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
  }

  .work__list li {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
  }

  /* ================= ENGAGEMENT PAGE MOBILE OVERRIDE ================= */
  #engagement, 
  .engagement__container,
  .engage__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important; 
    height: auto !important;
    min-height: 100vh !important;
    padding: 40px 24px 90px 24px !important; /* 90px bottom buffer */
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .engage__intro {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
  }

  .engage__card h3 {
    font-size: 1.2rem !important;
    margin-bottom: 8px !important;
  }

  .engage__card p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
  }

  .engage__note {
    font-size: 0.75rem !important;
    margin-bottom: 20px !important;
  }

  .engagement__container .button,
  .engagement__container a[class*="btn"],
  .engagement__container button,
  .engage__cta {
    display: flex !important; 
    justify-content: center !important;
    align-items: center !important;
    margin: 20px auto 0 auto !important; 
    width: 85% !important;
    max-width: 300px !important; 
    padding: 12px 0 !important;
    text-align: center !important;
    font-size: 0.9rem !important;
  }

  .engagement__item, 
  .engagement__content p {
      width: 100% !important;
      text-align: center !important;
      margin-left: auto !important;
      margin-right: auto !important;
  }

  /* ================= CTA MOBILE OVERRIDE ================= */
  #cta .cta__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 20px 0 !important; 
    min-height: 100vh !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .cta__left, 
  .cta__contact {
    display: contents !important;
  }

  .cta__left h2, 
  .cta__left h3, 
  .cta-title {
    order: 1 !important;
    width: 100% !important; 
    font-size: 1.7rem !important;
    margin-bottom: 8px !important;
    line-height: 1.1 !important;
    padding: 0 5px !important; 
  }

  .cta__left p {
    order: 2 !important;
    width: 100% !important;
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    line-height: 1.3 !important;
    padding: 0 10px !important;
  }

  .cta__right {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: static !important; 
    transform: none !important;
    margin: 0 0 15px 0 !important;
    width: 100% !important;
  }

  .cta__right img,
  .cta__image {
    width: 130px !important;
    height: 130px !important;
    margin-bottom: 5px !important;
  }

  .cta__right h4, 
  .cta-name {
    font-size: 1.2rem !important;
    margin-bottom: 2px !important;
  }
  
  .cta__right .title, 
  .cta-role {
    font-size: 0.8rem !important;
  }

  .cta__icons {
    order: 4 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    width: 100% !important;
    margin-bottom: 15px !important;
  }

  .cta__location {
    order: 5 !important;
    width: 100% !important;
    font-size: 0.85rem !important;
    margin-bottom: 15px !important;
  }

  .cta-btn {
    order: 6 !important;
    width: 90% !important; 
    max-width: 320px !important;
    padding: 12px 10px !important;
    font-size: 0.9rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* ===== EXTRA SHORT SCREENS ===== */
@media (max-height: 750px) {

  .about__title,
  .education__title,
  .skills__title,
  .tools__title,
  .work__title,
  .engage__title,
  .cta__title {
    font-size: clamp(28px, 3.5vw, 48px) !important;
  }

  .about__lead,
  .about__text,
  .engage__intro,
  .engage__card p {
    font-size: 13px !important;
  }

  .cta__image img {
    width: 140px !important;
    height: 140px !important;
  }
}