/* ================================================================
   1. DESIGN VARIABLES
   Change these values to quickly update colors and page width.
   ================================================================ */
:root {
  --navy: #081522;
  --navy-light: #102334;
  --panel: #13283a;
  --cyan: #63d9e6;
  --cyan-soft: #b8f1f4;
  --white: #f5f8fa;
  --text: #172631;
  --muted: #667580;
  --surface: #f1f5f7;
  --line: #dce5e9;
  --max-width: 1180px;
}

/* Basic browser reset keeps spacing predictable. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--text); background: #fff; font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
.container { width: min(90%, var(--max-width)); margin: 0 auto; }
.section { padding: 110px 0; }

/* ================================================================
   2. SHARED TYPOGRAPHY AND BUTTONS
   Reusable classes prevent repeating the same CSS in every section.
   ================================================================ */
.kicker, .label { margin: 0 0 14px; color: #138c9c; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-title h2 { max-width: 760px; margin: 0 0 46px; font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: 1.08; letter-spacing: -.055em; }
.section-title h2 span { color: #168d9d; }
.section-note { max-width: 580px; margin: -24px 0 45px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 35px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; font-size: .9rem; font-weight: 700; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-3px); }
.primary-button { color: var(--navy); background: var(--cyan); }
.secondary-button { color: var(--white); border-color: rgba(255,255,255,.3); }
.secondary-button:hover { border-color: var(--cyan); }

/* ================================================================
   3. NAVIGATION
   The header stays visible while visitors move through the page.
   ================================================================ */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; color: var(--white); background: rgba(8,21,34,.9); border-bottom: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(12px); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.logo span { display: inline-grid; width: 35px; height: 35px; margin-right: 10px; place-items: center; color: var(--navy); background: var(--cyan); letter-spacing: 0; }
.nav-links { display: flex; gap: 28px; font-size: .82rem; }
.nav-links a { position: relative; color: #c9d3d9; }
.nav-links a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; content: ""; background: var(--cyan); transform: scaleX(0); transition: transform .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.menu-button { display: none; padding: 8px; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; width: 24px; height: 2px; margin: 5px 0; background: white; transition: transform .2s; }

/* ================================================================
   4. HERO
   A CSS grid creates two columns without any framework.
   ================================================================ */
.hero { min-height: 100vh; padding-top: 135px; padding-bottom: 70px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 85px; color: var(--white); }
.hero::before { position: absolute; inset: 0; z-index: -2; content: ""; background: var(--navy); }
.hero::after { position: absolute; inset: 0; z-index: -1; content: ""; opacity: .22; background-image: linear-gradient(rgba(99,217,230,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(99,217,230,.14) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to right, transparent 20%, black); }
.status { display: flex; align-items: center; gap: 10px; color: #b7c8d2; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.status span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(99,217,230,.12); }
.hero h1 { margin: 23px 0 10px; font-size: clamp(4rem, 8vw, 7.8rem); line-height: .88; letter-spacing: -.075em; }
.hero-role { margin: 22px 0; color: var(--cyan); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700; }
.hero-intro { max-width: 670px; color: #b7c8d2; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; }
.system-visual { border: 1px solid rgba(99,217,230,.28); background: rgba(11,31,47,.76); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.system-top { display: flex; justify-content: space-between; padding: 13px 18px; color: #91a6b2; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .65rem; letter-spacing: .15em; }
.live-dot { color: var(--cyan); }
.cloud-core { min-height: 250px; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cloud-core small { margin-bottom: 25px; color: var(--cyan); letter-spacing: .15em; }
.cloud-core strong { min-width: 190px; padding: 12px; color: var(--cyan-soft); border: 1px solid rgba(99,217,230,.35); text-align: center; font-size: .85rem; }
.cloud-core i { width: 1px; height: 34px; background: var(--cyan); }
.system-nodes { padding: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); }
.system-nodes div { padding: 12px; color: #9badb7; background: rgba(255,255,255,.035); font-size: .65rem; letter-spacing: .1em; text-align: center; }

/* ================================================================
   5. ABOUT AND WORK CARDS
   ================================================================ */
.about, .experience { background: var(--surface); }
.split-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.about-text { color: var(--muted); }
.large-text { margin-top: 5px; color: var(--text); font-size: 1.35rem; line-height: 1.5; }
.principle { margin-top: 35px; padding: 25px; border-left: 3px solid var(--cyan); background: white; }
.principle span { color: #168d9d; font-size: .68rem; font-weight: 700; letter-spacing: .14em; }
.principle p { margin: 5px 0 0; color: var(--text); font-weight: 700; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work-card { min-height: 320px; padding: 28px; border: 1px solid var(--line); background: white; transition: transform .25s, border-color .25s, box-shadow .25s; }
.work-card:hover { transform: translateY(-6px); border-color: #77cbd4; box-shadow: 0 18px 45px rgba(15,44,59,.08); }
.work-card.wide-card { grid-column: span 2; }
.card-number { color: #168d9d; font-size: .72rem; }
.work-card h3 { margin: 48px 0 22px; font-size: 1.35rem; }
.work-card ul { margin: 0; padding: 0; color: var(--muted); list-style: none; }
.work-card li { padding: 7px 0; border-top: 1px solid var(--line); font-size: .9rem; }

/* ================================================================
   6. EXPERIENCE AND SKILLS
   ================================================================ */
.experience-card { padding: 38px 0; display: grid; grid-template-columns: 70px 1fr .75fr; gap: 30px; align-items: start; border-top: 1px solid #cfdce1; }
.experience-index { color: #168d9d; font-family: monospace; }
.experience-card h3 { margin: 3px 0 10px; font-size: 1.65rem; }
.experience-card p:not(.label) { max-width: 610px; margin: 0; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.tag-list span { padding: 6px 10px; color: #315363; border: 1px solid #cad9df; background: white; font-size: .72rem; }
.skills-panel { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.skills-panel > div { padding: 30px; border-right: 1px solid var(--line); }
.skills-panel > div:last-child { border-right: 0; }
.skills-panel h3 { margin: 0 0 25px; color: #168d9d; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.skills-panel p { margin: 0; padding: 9px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .88rem; }

/* ================================================================
   7. LEARNING JOURNEY
   The timeline wraps naturally on smaller screens.
   ================================================================ */
.journey { color: var(--white); background: var(--navy); }
.journey .kicker, .journey .section-title h2 span { color: var(--cyan); }
.journey-intro { display: grid; grid-template-columns: 1fr .7fr; gap: 80px; }
.journey-intro > p { margin-top: 38px; color: #a9bbc5; }
.timeline { margin-top: 50px; display: grid; grid-template-columns: repeat(8, 1fr); }
.timeline-step { position: relative; min-height: 145px; padding: 20px 10px 20px 0; border-top: 1px solid #476071; }
.timeline-step::before { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; content: ""; border-radius: 50%; background: #476071; }
.timeline-step.complete::before { background: var(--cyan); box-shadow: 0 0 0 5px rgba(99,217,230,.12); }
.timeline-step.current::before { background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.timeline-step span, .timeline-step small { display: block; color: #6f8998; font-family: monospace; font-size: .66rem; }
.timeline-step strong { display: block; margin: 32px 0 3px; font-size: .82rem; }
.timeline-step.current strong { color: var(--cyan); }
.journey-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 35px; padding: 25px; background: rgba(255,255,255,.04); }
.journey-details p { margin: 3px 0; color: #a9bbc5; font-size: .85rem; }
.journey-details span { margin-right: 8px; color: var(--cyan); }

/* ================================================================
   8. CONTACT, FOOTER, AND ANIMATIONS
   ================================================================ */
.contact-panel { padding: 70px; color: white; background: var(--panel); }
.contact-panel .kicker { color: var(--cyan); }
.contact-panel h2 { max-width: 850px; margin: 15px 0 22px; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.1; letter-spacing: -.05em; }
.contact-panel > p:not(.kicker) { max-width: 620px; color: #b7c8d2; }
.contact-button { margin-top: 24px; color: var(--navy); background: var(--cyan); }
footer { padding: 26px 0; color: #82939d; background: var(--navy); border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.footer-content { display: flex; justify-content: space-between; }

/* JavaScript adds the .visible class as elements enter the screen. */
.reveal { opacity: 0; transform: translateY(25px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   9. RESPONSIVE STYLES
   These rules rearrange the page for tablets and phones.
   ================================================================ */
@media (max-width: 900px) {
  .section { padding: 85px 0; }
  .menu-button { display: block; }
  .nav-links { position: absolute; top: 76px; right: 0; left: 0; display: none; padding: 25px 5%; flex-direction: column; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-links.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .system-visual { max-width: 570px; }
  .split-layout, .journey-intro { grid-template-columns: 1fr; gap: 15px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card.wide-card { grid-column: span 2; }
  .skills-panel { grid-template-columns: 1fr 1fr; }
  .skills-panel > div:nth-child(2) { border-right: 0; }
  .skills-panel > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
}

@media (max-width: 620px) {
  .section { padding: 70px 0; }
  .logo { font-size: .66rem; }
  .hero { gap: 50px; }
  .hero h1 { font-size: clamp(3.7rem, 18vw, 5.5rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .work-grid, .skills-panel, .journey-details { grid-template-columns: 1fr; }
  .work-card.wide-card { grid-column: span 1; }
  .skills-panel > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .experience-card { grid-template-columns: 35px 1fr; }
  .tag-list { grid-column: 2; justify-content: flex-start; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { padding: 45px 25px; }
  .footer-content { flex-direction: column; }
}

/* Accessibility: remove motion when a visitor requests reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
