
/* =====================================================
   DATAQUEST SOLUTIONS — CEO PROFILE
   White | Navy #0d2853 | Orange #ff7a38
===================================================== */

:root {
  --navy: #0d2853;
  --navy-deep: #081a38;
  --orange: #ff7a38;
  --orange-hover: #ed6425;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --pale-blue: #edf2f9;
  --text: #233957;
  --muted: #61718a;
  --border: #dfe6f0;
  --shadow: 0 14px 40px rgba(8, 26, 56, 0.10);
  --radius: 20px;
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--navy);
  background: var(--white);
}

.skip-link:focus {
  top: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 12px 12px 12px 4px;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  right: -3px;
  bottom: -3px;
  background: var(--orange);
  border: 2px solid var(--white);
  border-radius: 50%;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.brand-name strong {
  display: block;
  font-weight: 800;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
}

.primary-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--orange-hover);
}

.primary-nav .nav-cta {
  padding: 11px 17px;
  color: var(--white);
  background: var(--navy);
  border-radius: 9px;
}

.primary-nav .nav-cta:hover {
  color: var(--white);
  background: var(--orange);
}

.menu-toggle {
  display: none;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 3px;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.orb-one {
  width: 450px;
  height: 450px;
  top: -270px;
  right: 4%;
  border: 1px solid rgba(255,122,56,.38);
  box-shadow:
    0 0 0 45px rgba(255,255,255,.025),
    0 0 0 90px rgba(255,255,255,.02);
}

.orb-two {
  width: 340px;
  height: 340px;
  bottom: -250px;
  left: 36%;
  background: rgba(255,122,56,.12);
}

.hero-grid {
  min-height: 545px;
  padding-block: 72px 80px;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(38px, 7vw, 95px);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--orange-hover);
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 24px;
  height: 3px;
  display: inline-block;
  flex-shrink: 0;
  background: var(--orange);
  border-radius: 5px;
}

.hero .eyebrow {
  color: #ffd2bd;
}

.hero h1 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 4.7rem);
  line-height: 1.07;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.hero h1 span {
  color: var(--orange);
}

.hero-intro {
  max-width: 590px;
  margin: 24px 0 30px;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.85;
}

.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-orange {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(255,122,56,.22);
}

.button-orange:hover {
  background: var(--orange-hover);
}

.button-navy {
  color: var(--white);
  background: var(--navy);
}

.hero-values {
  margin-top: 37px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255,255,255,.83);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-values i {
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
}

/* CEO portrait */

.hero-visual {
  width: min(100%, 390px);
  justify-self: center;
  position: relative;
  padding: 0 12px 15px 0;
}

.portrait-frame {
  min-height: 395px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 190px 190px 24px 24px;
  background: linear-gradient(
    150deg,
    rgba(255,255,255,.16),
    rgba(255,255,255,.04)
  );
  box-shadow: 0 28px 70px rgba(0,0,0,.2);
}

.portrait-accent {
  position: absolute;
  z-index: 2;
  inset: 14px;
  border: 1px solid rgba(255,122,56,.58);
  border-radius: 180px 180px 17px 17px;
  pointer-events: none;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  min-height: 395px;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center top;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,.8);
  background: radial-gradient(
    circle at 50% 35%,
    rgba(255,122,56,.23),
    transparent 34%
  ), linear-gradient(145deg, #173a6d, #081a38);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fallback-monogram {
  color: var(--orange);
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
}

.portrait-caption {
  position: absolute;
  z-index: 3;
  left: 27px;
  right: 27px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;
  background: rgba(8,26,56,.88);
  backdrop-filter: blur(10px);
}

.caption-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255,122,56,.15);
}

.portrait-caption strong,
.portrait-caption small {
  display: block;
}

.portrait-caption strong {
  color: var(--white);
  font-size: 0.87rem;
  line-height: 1.4;
}

.portrait-caption small {
  margin-top: 3px;
  color: rgba(255,255,255,.68);
  font-size: 0.72rem;
}

.floating-note {
  position: absolute;
  right: -24px;
  bottom: 75px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: var(--navy);
  background: var(--white);
  border-radius: 13px;
  box-shadow: var(--shadow);
  font-size: 0.73rem;
  line-height: 1.55;
}

.floating-note strong {
  color: var(--navy);
}

.note-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border-radius: 9px;
  font-size: 1.1rem;
}

/* ================= MAIN PROFILE ================= */

.section-space {
  padding-block: 88px;
  padding-top: 3rem;
}

.status-message {
  max-width: 700px;
  margin: 0 auto 36px;
  padding: 20px 24px;
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}

.error-message {
  background: #fff7f3;
  border-color: #f2c5b4;
}

.error-message p {
  margin: 5px 0 15px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2,
.philosophy-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.055em;
}

.section-subtitle {
  margin: 13px 0 0;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.profile-aside {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-image-wrap {
  min-height: 260px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--pale-blue);
}

.profile-image-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
}

.profile-image-fallback {
  width: 100%;
  min-height: 260px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--navy), var(--navy-deep));
}

.profile-image-fallback span {
  color: var(--orange);
  font-size: 4.5rem;
  font-weight: 800;
}

.profile-contact {
  padding: 18px 8px 7px;
}

.profile-contact h3,
.content-block h3 {
  margin: 0 0 13px;
  color: var(--navy);
  font-size: 1.2rem;
}

.profile-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.profile-contact a span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--navy);
  background: var(--pale-blue);
  border-radius: 8px;
  font-weight: 800;
}

.profile-contact a:hover {
  color: var(--orange-hover);
}

.bio-content {
  min-width: 0;
}

.rich-text {
  color: var(--text);
  overflow-wrap: anywhere;
}

.rich-text p {
  margin: 0 0 15px;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
  padding-left: 22px;
}

.rich-text li {
  margin-bottom: 8px;
}

.short-bio-block {
  margin-top: 28px;
  padding: 23px 25px;
  border-left: 4px solid var(--orange);
  border-radius: 0 13px 13px 0;
  background: var(--off-white);
}

.short-bio-block p {
  margin: 0;
}

/* ================= VISION ================= */

.vision-panel {
  position: relative;
  overflow: hidden;
  margin-top: 68px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 25px;
  align-items: start;
  color: var(--white);
  background: var(--navy);
  border-radius: 24px;
}

.vision-panel::after {
  content: "";
  width: 230px;
  height: 230px;
  position: absolute;
  right: -80px;
  bottom: -150px;
  border: 1px solid rgba(255,122,56,.5);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255,255,255,.025),
    0 0 0 60px rgba(255,255,255,.02);
  pointer-events: none;
}

.vision-symbol {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 0.9;
}

.eyebrow-light {
  color: #ffd2bd;
}

.vision-panel .rich-text {
  position: relative;
  z-index: 1;
  max-width: 850px;
  color: rgba(255,255,255,.9);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.8;
}

.philosophy-section {
  max-width: 850px;
  margin: 80px auto 0;
  text-align: center;
}

.philosophy-section .eyebrow {
  justify-content: center;
}

.philosophy-section .rich-text {
  margin-top: 22px;
  text-align: left;
}

/* ================= EDUCATION & EXPERIENCE ================= */

.records-section {
  margin-top: 90px;
}

.section-heading-left {
  max-width: none;
  margin-bottom: 30px;
  text-align: left;
}

.section-heading-left .eyebrow {
  justify-content: flex-start;
}

.section-heading-left h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.timeline-card {
  position: relative;
  padding: 25px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 6px 22px rgba(8,26,56,.045);
}

.timeline-card::before {
  content: "";
  width: 4px;
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  background: var(--orange);
  border-radius: 0 4px 4px 0;
}

.record-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.record-title {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.4;
}

.record-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.record-date {
  display: inline-flex;
  flex-shrink: 0;
  padding: 6px 10px;
  color: var(--navy);
  background: var(--pale-blue);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
}

.record-description {
  margin: 15px 0 0;
}

.record-subheading {
  margin: 17px 0 7px;
  color: var(--navy);
  font-size: 0.88rem;
}

.record-link {
  display: inline-flex;
  margin-top: 13px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

/* ================= PROJECTS & ACHIEVEMENTS ================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 7px 25px rgba(8,26,56,.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-image {
  width: 100%;
  height: 215px;
  object-fit: cover;
  background: var(--pale-blue);
}

.feature-image-placeholder {
  height: 150px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  font-size: 2.8rem;
  font-weight: 800;
}

.feature-body {
  padding: 24px;
}

.feature-category {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--orange-hover);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-body h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.4;
}

.feature-body p {
  margin: 12px 0 0;
}

.achievement-date {
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.8rem;
}

.feature-card:has(.achievement-date) {
  border-top: 3px solid var(--orange);
}

.tech-list {
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-chip {
  padding: 5px 9px;
  color: var(--navy);
  background: var(--pale-blue);
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tech-chip:hover{
    background-color:#ff7a38;
    color: #ffffff;
}

/* ================= TABLET ================= */

@media (max-width: 900px) {
  
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    background: var(--white);
    box-shadow: -12px 18px 35px rgba(8,26,56,.12);
    transform: translateX(110%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }

  .primary-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .primary-nav a {
    padding: 12px 10px;
  }

  .primary-nav .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr 0.8fr;
    gap: 35px;
  }

  .portrait-frame,
  .hero-portrait {
    min-height: 345px;
  }

  .floating-note {
    right: -8px;
  }

  .intro-grid {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
  }

  .profile-image-wrap img {
    height: 270px;
  }
}

/* ================= MOBILE ================= */

@media (max-width: 650px) {
  .container {
    width: calc(100% - 36px);
  }


  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .hero-grid {
    min-height: auto;
    padding-block: 55px 60px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .hero-intro {
    margin-block: 19px 25px;
  }

  .hero-visual {
    width: min(84%, 340px);
    margin-inline: auto;
  }

  .portrait-frame,
  .hero-portrait {
    min-height: 340px;
  }

  .floating-note {
    right: -22px;
    bottom: 65px;
  }

  .hero-values {
    margin-top: 28px;
    gap: 10px;
    font-size: 0.61rem;
  }

  .section-space {
    padding-block: 60px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .profile-aside {
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .profile-image-wrap img {
    height: 330px;
  }

  .profile-image-fallback {
    min-height: 280px;
  }

  .vision-panel {
    margin-top: 45px;
    padding: 28px 22px;
    grid-template-columns: 1fr;
    gap: 4px;
    border-radius: 18px;
  }

  .vision-symbol {
    font-size: 4.5rem;
    line-height: 0.8;
  }

  .philosophy-section {
    margin-top: 58px;
  }

  .records-section {
    margin-top: 62px;
  }

  .timeline-card {
    padding: 22px 20px 22px 23px;
  }

  .record-topline {
    flex-direction: column;
    gap: 10px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-image {
    height: 200px;
  }

  .feature-body {
    padding: 21px;
  }

}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ================= FIX CEO PORTRAIT OVERLAP ================= */

.hero-visual {
  position: relative;
  isolation: isolate;
}

.portrait-caption {
  z-index: 3;
  left: 27px;
  right: 27px;
  bottom: 28px;
}

.floating-note {
  z-index: 6;
  right: -18px;
  bottom: 0;
  max-width: 220px;
}

/* Tablet */
@media (max-width: 900px) {
  .floating-note {
    right: -8px;
    bottom: 15px;
    max-width: 195px;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .hero-visual {
    width: min(84%, 340px);
    margin-inline: auto;
    padding-right: 0;
    padding-bottom: 0;
  }

  .floating-note {
    right: -8px;
    bottom: 12px;
    max-width: 190px;
    padding: 10px 12px;
    font-size: 0.68rem;
  }

  .portrait-caption {
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 12px;
  }

  .portrait-caption strong {
    font-size: 0.78rem;
  }

  .portrait-caption small {
    font-size: 0.67rem;
  }
}