:root {
  --bg: #051622;
  --accent: #1ba098;
  --highlight: #deb992;
  --text: #e6f1ef;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Albert Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}


body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== HEADER ===== */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(5, 22, 34, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav a {
  margin-left: 28px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
}

nav a:hover {
  opacity: 1;
}

.nav-cta {
  color: var(--accent);
  font-weight: 500;
}

/* ===== BACKGROUND ===== */

.bg-base {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(27, 160, 152, 0.18), transparent 45%);
  z-index: -3;
}

.bg-motion {
  position: fixed;
  inset: -50%;
  background:
    linear-gradient(120deg,
      transparent 40%,
      rgba(27, 160, 152, 0.12) 50%,
      transparent 60%);
  animation: drift 35s linear infinite;
  z-index: -2;
}

@keyframes drift {
  0% {
    transform: translateX(-20%) translateY(0);
  }

  50% {
    transform: translateX(10%) translateY(-10%);
  }

  100% {
    transform: translateX(-20%) translateY(0);
  }
}

.grid-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(27, 160, 152, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 160, 152, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
  z-index: -1;
}

/* ===== LAYOUT ===== */

.section {
  padding: 120px 14% 100px;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* ===== HERO ===== */

.hero .eyebrow {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 600;
}

.hero h2 {
  margin-top: 12px;
  color: var(--highlight);
}

.hero-summary {
  max-width: 720px;
  margin-top: 24px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.hero-stats {
  display: flex;
  gap: 50px;
  margin-top: 50px;
}

.hero-stats span {
  color: var(--accent);
  font-weight: 600;
}

/* ===== CONTENT ===== */

h3 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.content {
  max-width: auto;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.cap h4 {
  color: var(--highlight);
  margin-bottom: 10px;
}

/* ===== INTERACTIVE CAPABILITIES ===== */

.cap {
  position: relative;
  padding: 5px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

/* Soft glow + lift */
.cap:hover {
  border-color: rgba(27, 160, 152, 0.6);
  box-shadow: 0 12px 30px rgba(27, 160, 152, 0.15);
}

/* Animated accent sweep */
.cap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 30%,
      rgba(27, 160, 152, 0.12),
      transparent 70%);
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.3s ease;
}

.cap:hover::after {
  opacity: 1;
  animation: sweep 0.8s ease;
}

@keyframes sweep {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.projects {
  display: grid;
  gap: 36px;
  max-width: 900px;
}

.project {
  /* padding-left: 24px; */
  border-left: 3px solid rgba(27, 160, 152, 0.4);
}

.project p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ===== INTERACTIVE PROJECT CARDS ===== */

.project {
  position: relative;
  padding-left: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Accent focus line (left) */
.project::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 3px;
  background: rgba(27, 160, 152, 0.35);
  transition: background 0.3s ease, height 0.3s ease;
}

/* Subtle highlight wash */
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent 30%,
      rgba(27, 160, 152, 0.08),
      transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.project:hover {
  transform: translateX(6px);
}

.project:hover::before {
  background: var(--accent);
  height: 100%;
}

.project:hover::after {
  opacity: 1;
}

/* Tag emphasis */
.project .tag {
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

.project:hover .tag {
  color: var(--accent);
  letter-spacing: 0.5px;
}


.tag {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--accent);
}

.experience {
  display: flex;
  gap: 28px;
}

.year {
  color: var(--accent);
  font-weight: 600;
}

.links a {
  margin-right: 30px;
  color: var(--accent);
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 14% 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  margin-left: 24px;
  color: var(--text);
  opacity: 0.7;
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 1;
}

footer p {
  text-align: center;
  margin-top: 30px;
  opacity: 0.5;
}

/* ===== REVEAL ===== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LOGOS ===== */

nav img {
  width: 18px;
  vertical-align: middle;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-title img {
  width: 150px;
  /* was too small before */
  height: auto;

  /* Subtle contrast lift */
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
  border-radius: 6px;

  /* Optical balance */
  margin-top: 7px;

  /* Keep it calm */
  opacity: 0.9;
}


.experience img {
  width: 128px;
  height: 90px;
  margin-right: 24px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.links img {
  width: 20px;
  opacity: 0.85;
}

.links a:hover img {
  opacity: 1;
}

.company-logo {
  width: 56px;
  /* smaller = more premium */
  height: auto;
  margin-right: 28px;

  /* Consulting-grade logo treatment */
  filter:
    grayscale(0.5%) brightness(1.15) contrast(0.9);

  opacity: 0.75;
  transition: all 0.3s ease;
}

/* Optional but very classy */
.company-logo:hover {
  opacity: 1;
  filter:
    grayscale(0%) brightness(1) contrast(1);
}

/* ===== CERTIFICATIONS ===== */

.cert-block {
  margin-bottom: 48px;
}

.cert-heading {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--highlight);
}

/* Base list */
.cert-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
}

.cert-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.95rem;
}

.cert-list li span {
  opacity: 0.7;
  white-space: nowrap;
}

/* Mainline emphasis */
.cert-list.mainline li {
  font-size: 1rem;
}

.cert-list.mainline li strong {
  color: var(--accent);
  font-weight: 600;
}

/* Micro certs tighter */
.cert-list:not(.mainline) li {
  border-bottom: none;
  padding: 8px 0;
  opacity: 0.85;
}

/* ===== MICRO CERT BLOCKS ===== */

.micro-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
}

/* Individual block */
.micro-cert {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;

  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;

  transition: all 0.3s ease;
}

/* Subtle interaction */
.micro-cert:hover {
  border-color: rgba(27, 160, 152, 0.5);
  background: rgba(27, 160, 152, 0.08);
  transform: translateY(-3px);
}

/* Responsive behavior */
@media (max-width: 1024px) {
  .micro-cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .micro-cert-grid {
    grid-template-columns: 1fr;
  }
}

.cert-link {
  color: var(--accent);
  text-decoration: none;
}

.cert-link:hover {
  text-decoration: underline;
}

.micro-cert-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.micro-cert-link:hover {
  border-color: rgba(27, 160, 152, 0.6);
  background: rgba(27, 160, 152, 0.1);
}

@media (max-width: 1024px) {

  .section {
    padding: 100px 8% 80px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-summary {
    max-width: 100%;
  }

  .hero-stats {
    gap: 32px;
  }

  .capabilities {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects {
    max-width: 100%;
  }

  .micro-cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* Header */
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  nav a {
    margin-left: 0;
    font-size: 0.85rem;
  }

  .content {
    text-align: left;
  }

  /* Hero */
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero h2 {
    font-size: 1.1rem;
  }

  .hero-summary {
    font-size: 0.95rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  /* Sections */
  h3 {
    font-size: 1.8rem;
  }

  .capabilities {
    grid-template-columns: 1fr;
  }

  .projects {
    gap: 28px;
  }

  .project {
    padding-left: 16px;
  }

  .project p {
    text-align: left;
  }

  /* Experience */
  .experience {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Certifications */
  .cert-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .micro-cert-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {

  .section {
    padding: 80px 6% 60px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-summary {
    text-align: left;
    /* justified text looks bad on narrow screens */
  }

  .logo-wrap img,
  .hero-title img {
    width: 44px;
  }
}

body.light {
  --bg: #ffffff;
  --text: #0f172a;
  --accent: #1ba098;
  --highlight: #051622;
  --surface: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.12);
}

#themeToggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

#themeToggle:hover {
  background: var(--surface);
}

/* ===== PRINT / RESUME MODE ===== */
@media print {

  /* Force light mode */
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  /* Remove effects */
  .bg-base,
  .bg-motion,
  .grid-bg,
  .header,
  #themeToggle {
    display: none !important;
  }

  /* Simplify layout */
  .section {
    padding: 40px 0 !important;
  }

  h1,
  h2,
  h3,
  h4 {
    color: #000 !important;
  }

  .divider {
    display: none;
  }

  /* Links */
  a {
    color: #000 !important;
    text-decoration: none;
  }

  /* Certifications & blocks */
  .micro-cert,
  .cap,
  .project {
    border: 1px solid #ccc !important;
    background: none !important;
  }

  /* Prevent page breaks in bad places */
  section {
    page-break-inside: avoid;
  }
}

/* ===================================================
   RESUME / PRINT MODE
   =================================================== */
@media print {

  /* Base reset */
  * {
    background: none !important;
    box-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  /* Remove non-resume elements */
  .header,
  .bg-base,
  .bg-motion,
  .grid-bg,
  .divider {
    display: none !important;
  }

  /* Layout tightening */
  .section {
    padding: 24px 0 !important;
  }

  /* Typography */
  h1 {
    font-size: 20pt;
    margin-bottom: 8px;
  }

  h2 {
    font-size: 14pt;
    margin-bottom: 12px;
  }

  h3 {
    font-size: 13pt;
    margin-bottom: 10px;
    color: #000 !important;
  }

  h4 {
    font-size: 11pt;
    margin-bottom: 4px;
  }

  p {
    margin-bottom: 8px;
  }

  /* Content blocks */
  .cap,
  .project,
  .micro-cert,
  .logo-wrap {
    border: 1px solid #ccc !important;
    padding: 8px !important;
  }

  /* Certifications lists */
  .cert-list li {
    border-bottom: none !important;
    padding: 4px 0 !important;
  }

  /* Links */
  a {
    color: #000 !important;
    text-decoration: none !important;
  }

  /* Page break control */
  section,
  .project,
  .cap,
  .cert-block {
    page-break-inside: avoid;
  }

  footer {
    text-align: center;
    margin-top: 24px;
    font-size: 9pt;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cap,
  .cap::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== CONNECT (REFINED) ===== */

.connect-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  font-size: 0.95rem;
}

.connect-bar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: var(--text);
  opacity: 0.8;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.connect-bar img {
  width: 18px;
  height: auto;
  opacity: 0.85;
}

.connect-bar a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.connect-separator {
  opacity: 0.4;
}

/* Mobile */
@media (max-width: 768px) {
  .connect-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .connect-separator {
    display: none;
  }
}
.hero-location {
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.75;
  letter-spacing: 0.3px;
}
.location-note {
  margin-top: 16px;
  font-size: 0.85rem;
  opacity: 0.7;
}
/* ===== SCROLL PROGRESS ===== */

.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
  z-index: 9999;
  overflow: hidden;
}

.scroll-indicator__bar {
  display: block;
  height: 100%;
  width: 0%;
  
  background: linear-gradient(
    90deg,
    var(--accent),
    #22d3ee
  );

  transition: width 0.1s linear;
}

/* ===================================================
   PAGE LOADER
   =================================================== */

#pageLoader {
  position: fixed;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #051622;

  z-index: 10000;

  transition: opacity 0.5s ease,
              visibility 0.5s ease;
}

/* Hidden state */
#pageLoader.hide {
  opacity: 0;
  visibility: hidden;
}

/* Signal animation */
.signal-loader {
  width: 80px;

  display: flex;
  gap: 8px;

  justify-content: center;
  align-items: center;
}

.signal-loader span {
  width: 8px;
  height: 36px;

  border-radius: 999px;

  background: linear-gradient(
    180deg,
    #22d3ee,
    var(--accent)
  );

  animation: pulse 1.2s ease-in-out infinite;
  opacity: 0.4;
}

.signal-loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.signal-loader span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%, 100% {
    transform: scaleY(0.5);
    opacity: 0.4;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ===================================================
   AMBIENT PARTICLE FIELD
   =================================================== */

.particle-field {
  position: fixed;
  inset: 0;

  overflow: hidden;
  pointer-events: none;

  z-index: -1;
}

.particle-field span {
  position: absolute;

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: rgba(34, 211, 238, 0.35);

  animation: floatParticle linear infinite;
}

/* Individual particles */
.particle-field span:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-duration: 18s;
}

.particle-field span:nth-child(2) {
  top: 30%;
  left: 80%;
  animation-duration: 22s;
}

.particle-field span:nth-child(3) {
  top: 60%;
  left: 15%;
  animation-duration: 16s;
}

.particle-field span:nth-child(4) {
  top: 80%;
  left: 70%;
  animation-duration: 24s;
}

.particle-field span:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-duration: 20s;
}

.particle-field span:nth-child(6) {
  top: 20%;
  left: 60%;
  animation-duration: 19s;
}

.particle-field span:nth-child(7) {
  top: 75%;
  left: 35%;
  animation-duration: 26s;
}

.particle-field span:nth-child(8) {
  top: 40%;
  left: 5%;
  animation-duration: 17s;
}

/* Floating animation */
@keyframes floatParticle {
  0% {
    transform: translateY(0px) translateX(0px);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(-120px) translateX(40px);
    opacity: 0;
  }
}