@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* TOKENS */
:root{
  --blue:#032b6b;
  --bg:#f5f5f5;
  --surface:#ffffff;
  --surface-2:#f6f8fb;
  --ink:#121212;
  --muted:#666666;
  --line:#e6e6e6;

  --radius-md:20px;
  --shadow:0 10px 40px rgba(0,0,0,.12);

  --container:1280px;

  --ticker-height:44px;
  --ticker-speed:34s;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--ink);
  font-family:'DM Sans',system-ui,-apple-system,sans-serif;
  line-height:1.55;
  padding-top:64px;
}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--container);margin:0 auto;padding:0 24px}

/* TOP BAR */
.topbar{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
  background:rgba(245,245,245,0.95);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(0,0,0,0.05);
  transition:all 0.3s ease;
}
.nav-brand{display:flex;align-items:center}
.logo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  background:var(--ink);
  border-radius:50%;
  text-decoration:none;
  transition:all 0.2s ease;
}
.logo:hover{
  background:var(--blue);
  transform:scale(1.05);
}
.logo-text{
  color:var(--surface);
  font-size:14px;
  font-weight:700;
  letter-spacing:-0.5px;
}
.nav-left{display:flex;gap:24px;align-items:center}
.nav-left a{color:var(--ink);font-size:15px}

/* HERO */


.hero{padding:0;margin:0}
.shell{
  display:grid;
  grid-template-columns:72px 0.8fr 1.6fr;
  gap:24px;
  align-items:center;
  height:calc(100vh - 64px);
}
.rail{padding-left:12px;color:var(--muted)}
.rail span{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  font-size:12px; letter-spacing:.1em;
}
.copy{align-self:start;padding-top:6vh}
.stats{display:flex;gap:36px;margin:6px 0 12px}
.stat{display:flex;flex-direction:column;gap:2px}
.stat .num{font-variant-numeric:tabular-nums;font-weight:700}
.stat .label{font-size:12px;color:var(--muted)}
.title{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-weight:300;
  font-size:clamp(72px, 12vw, 140px);
  line-height:.95;
  letter-spacing:-.6px;
  margin:0 0 8px;
}
.subtitle{margin:0 0 12px;color:var(--muted);font-size:clamp(18px,2vw,22px)}
.scroll{margin-top:14px;color:var(--muted);font-size:14px}
.scroll:hover{color:var(--ink);text-decoration:none}
.caret{display:inline-block;width:1px;height:1.1em;background:currentColor;margin-left:2px;vertical-align:-2px;animation:blink .9s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
#typer{font-weight:600}
.hero-portrait{display:flex;justify-content:center;align-items:center}
.portrait{width:auto;height:calc(100vh - var(--ticker-height));object-fit:contain;filter:grayscale(1) contrast(1.05) brightness(1.02)}

/* SECTIONS */
.section-head{display:flex;align-items:end;gap:16px;justify-content:space-between;margin-bottom:14px}
.section-sub{color:var(--muted);margin:0}
.link-more{white-space:nowrap}
.muted{color:var(--muted)}

/* ABOUT GRID */
.about-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  grid-template-areas:
    "left edu"
    "certs certs";
  gap:18px;
}
.about-left{grid-area:left}
.about-edu{grid-area:edu}
.about-certs{grid-area:certs}

.fact-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px; margin:12px 0 0; padding:0; list-style:none;
}
.fact-list li{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink)}
.fact-icon{width:15px;height:15px;flex-shrink:0;color:var(--muted)}
.chip-row{display:flex;gap:8px;flex-wrap:wrap;padding:0;margin:6px 0 12px;list-style:none}
.chip-row li{background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:6px 10px;font-size:13px}

/* EDUCATION */
.edu-card{
  display:flex;gap:12px;align-items:center;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  margin-bottom:8px;
}
.edu-logo{height:64px;width:auto;object-fit:contain} /* bigger and readable */
.edu-desc{margin:8px 0 4px;color:var(--ink)}
.edu-points{margin:4px 0 10px 18px;padding:0;list-style:disc;color:var(--muted)}
.edu-points li{margin:4px 0}
.edu-points strong{color:var(--ink)}

/* CERTIFICATIONS - single-line row, each badge with a laurel halo */
.about-certs{text-align:center;margin-top:8px}
.cert-belt{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:3.5rem;
  flex-wrap:nowrap;
  margin-top:1.2rem;
}

/* keep the cert row centered, but make the section heading left-aligned + bold */
.about-certs { 
  text-align: center;          /* keeps the badges/dates centered as before */
}

.about-certs h3 {
  text-align: left;            /* only the heading moves left */
  margin: 0 0 .75rem 0;        /* nice spacing above the badges */
}

.cert-badge{
  position:relative;
  padding:18px 84px 6px;  /* horizontal padding controls laurel distance from text */
  min-width:280px;
  text-align:center;
}
.cert-title{
  font-weight:800;
  text-transform:uppercase;
  font-size:1.05rem;
  line-height:1.25;
}
.cert-date{
  margin-top:10px;
  color:var(--muted);
  text-transform:uppercase;
  font-size:.95rem;
}

/* Laurel halo using 2 pseudo elements that mirror a single image */
.cert-badge::before,
.cert-badge::after{
  content:"";
  position:absolute;
  top:0;
  bottom:30px;          /* keep stems above the date */
  width:74px;           /* laurel width */
  background:url("assets/logo/alloro.png") no-repeat center / contain;
  opacity:.95;
  pointer-events:none;
}
.cert-badge::before{left:0; transform:scaleX(-1)}  /* mirror for left */
.cert-badge::after{ right:0 }



/* EXPERIENCE */
.xp-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem 3rem}
@media (max-width:900px){.xp-grid{grid-template-columns:1fr}}
.xp-block{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:18px}
.xp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}
.xp-subhead{display:flex;justify-content:flex-end;margin-top:.35rem}
.xp-logo{height:28px;width:auto;object-fit:contain;opacity:.95}
.xp-role{margin:.25rem 0 0 0;font-weight:700}
.xp-date{margin:0 0 .5rem 0;color:#666;font-size:.9rem}
.xp-list{margin:.25rem 0 0 1.1rem;padding:0}
.xp-list li{margin:.32rem 0}

/* TICKER */
.ticker{position:fixed;bottom:0;left:0;width:100%;height:var(--ticker-height);background:var(--blue);color:#fff;overflow:hidden;z-index:1000}
.ticker__track{display:flex;width:max-content;will-change:transform;animation:track-move var(--ticker-speed) linear infinite}
.ticker__copy{display:inline-flex;align-items:center;gap:32px;padding:0 24px;line-height:var(--ticker-height);white-space:nowrap}
@keyframes track-move{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
.ticker:hover .ticker__track{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.ticker__track{animation:none}}

/* ===== Contact section layout ===== */
#contact {
  background: #f5f5f5;
  border-top: 1px solid var(--line);
  padding: 56px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;          /* <- equal column heights */
  min-height: 520px;             /* optional floor so both sides have room */
}

/* ===== Left column (3 cards, equal heights, fill full column height) ===== */
.contact-left {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
}

.contact-card {
  flex: 1;                       /* <- same height for all three */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
  padding: 18px 22px;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* Text takes almost all space, logo sits right after the word */
.card-content {
  display: flex;
  align-items: center;
  justify-content: center;      /* center the whole line visually */
  gap: 12px;
  width: 100%;
}

.card-label {
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: .2px;
  line-height: 1;
  /* let it claim the line except the logo width: */
  flex: 0 1 auto;
  text-align: center;
}

.card-icon {
  width: clamp(28px, 2.4vw, 34px);
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

/* ===== Right column (title over form) ===== */
.contact-right {
  display: flex;
  flex-direction: column;
  height: 100%;                  /* <- equals the left column */
}

.contact-heading {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;              /* bold as requested */
  margin: 0 0 12px 0;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;                       /* form occupies the rest of the column */
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row.grow {                /* message grows to balance height nicely */
  flex: 1;
}

.form-row label {
  font-weight: 600;
  font-size: 15px;
}

.form-row input,
.form-row textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  transition: border .2s ease, box-shadow .2s ease;
}

.form-row textarea {
  height: 160px;
  resize: vertical;
  min-height: 120px;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 43, 107, .15);
}

.btn-submit {
  align-self: flex-start;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .05s ease;
}
.btn-submit:hover { background:#001f56 }
.btn-submit:active { transform: translateY(1px) }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: initial;
  }

  .contact-cards { height: auto; }
  .contact-card { min-height: 92px; }
}

/* Contact */
.contact-wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}
.contact-side{display:grid;gap:12px}
.contact-card{
  background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow);
  display:flex;align-items:center;justify-content:space-between;gap:12px
}
.contact-card .title{font-weight:700}
.contact-card .action{border:1px solid var(--line);border-radius:999px;padding:8px 10px;background:var(--surface-2)}
.contact-form{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow)}
.input{width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}
.input:focus{outline:3px solid #eaf1ff;border-color:var(--blue)}
.textarea{min-height:140px;resize:vertical}
.form-row{display:grid;gap:10px;margin-bottom:10px}
.form-actions{display:flex;justify-content:flex-end}
.submit{background:var(--blue);color:#fff;border:none;padding:12px 18px;border-radius:12px;cursor:pointer}

/* FOOTER */
.site-footer{text-align:center;color:#7a7a7a;padding:22px 12px;border-top:1px solid var(--line)}

/* ===== DARK MODE ===== */
html.dark {
  --bg: #111827;
  --surface: #1f2937;
  --surface-2: #283548;
  --ink: #f9fafb;
  --muted: #9ca3af;
  --line: #374151;
  --blue: #60a5fa;
}
html.dark body { background:var(--bg); color:var(--ink); }
html.dark .topbar {
  background:rgba(17,24,39,0.95);
  border-bottom-color:rgba(255,255,255,.05);
}
html.dark .xp-block { background:var(--surface); border-color:var(--line); }
html.dark #contact { background:var(--bg); border-top-color:var(--line); }
html.dark .contact-card { background:var(--surface); }
html.dark .contact-form { background:var(--surface); }
html.dark .form-row input,
html.dark .form-row textarea { background:var(--surface-2); color:var(--ink); border-color:var(--line); }
html.dark .site-footer { color:var(--muted); }
html.dark .edu-card { background:var(--surface); border-color:var(--line); }
html.dark .chip-row li { background:var(--surface); border-color:var(--line); }

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  background:none;
  border:1px solid var(--line);
  border-radius:50%;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:var(--ink);
  transition:background .2s, color .2s;
  padding:0;
  flex-shrink:0;
}
.theme-toggle:hover { background:var(--surface-2); }
.theme-toggle svg { width:16px; height:16px; pointer-events:none; }
/* moon shown in light mode, sun shown in dark mode */
.theme-toggle .sun  { display:none; }
.theme-toggle .moon { display:block; }
html.dark .theme-toggle .sun  { display:block; }
html.dark .theme-toggle .moon { display:none; }

/* RESPONSIVE */
@media (max-width:1100px){
  .shell{
    grid-template-columns:40px 1fr;
    grid-template-areas:
      "rail copy"
      "rail portrait";
    height:auto;padding-top:12px;
  }
  .rail{grid-area:rail}
  .copy{grid-area:copy;padding-top:3vh}
  .hero-portrait{grid-area:portrait}
  .portrait{width:100%;height:auto}
  .title{font-size:clamp(56px,10vw,110px)}
}

@media (max-width:1000px){
  .cert-belt{gap:2rem}
  .cert-badge{padding:16px 64px}
  .cert-badge::before,.cert-badge::after{width:60px}
}

@media (max-width:900px){
  .about-grid{
    grid-template-columns:1fr;
    grid-template-areas:
      "left"
      "edu"
      "certs";
  }
  .fact-list{grid-template-columns:1fr}
  .cert-belt{flex-wrap:wrap;justify-content:center}
}

@media (max-width:640px){
  .nav-left a{font-size:13px}
  .title{font-size:44px}
}

/* ===== PROJECT DETAIL ===== */
.pd-main{
  padding:3.5rem 0 6rem;
  min-height:calc(100vh - 64px - var(--ticker-height));
}
.pd-back{
  display:inline-flex;align-items:center;gap:6px;
  color:var(--blue);font-weight:600;font-size:14px;
  text-decoration:none;margin-bottom:2.5rem;
}
.pd-back:hover{text-decoration:underline}
.pd-title{
  font-size:clamp(36px,6vw,62px);font-weight:800;
  margin:0 0 0.6rem;letter-spacing:-1.5px;line-height:1.05;
}
.pd-subtitle{font-size:clamp(15px,1.6vw,19px);color:var(--muted);margin:0 0 1.25rem;max-width:640px}
.pd-tags{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:1.5rem}
.pd-tag{
  background:var(--surface-2);border:1px solid var(--line);
  border-radius:999px;padding:5px 13px;
  font-size:11px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--blue);
}
.pd-cta{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:3rem}
.pd-btn{
  display:inline-flex;align-items:center;gap:6px;
  padding:11px 26px;border-radius:50px;
  font-weight:600;font-size:14px;text-decoration:none;
  transition:all .18s;border:2px solid transparent;
}
.pd-btn-primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.pd-btn-primary:hover{filter:brightness(.88);text-decoration:none}
.pd-btn-outline{background:transparent;color:var(--ink);border-color:var(--line)}
.pd-btn-outline:hover{border-color:var(--ink);background:var(--ink);color:var(--bg);text-decoration:none}
.pd-media{
  width:100%;max-width:1100px;margin:0 auto 4rem;
  border-radius:18px;overflow:hidden;box-shadow:var(--shadow);
  background:var(--surface);
}
.pd-media video{width:100%;height:auto;display:block}
.pd-body{
  display:grid;grid-template-columns:1fr 300px;
  gap:4rem;align-items:start;
}
.pd-sidebar{position:sticky;top:80px}
.pd-section{margin-bottom:2.5rem}
.pd-section-title{font-size:20px;font-weight:700;margin:0 0 0.875rem;color:var(--blue)}
.pd-section p{font-size:16px;line-height:1.75;color:var(--ink);margin:0 0 0.75rem}
.pd-section p:last-child{margin-bottom:0}
.pd-section ul{margin:.5rem 0 .75rem;padding-left:1.25rem}
.pd-section li{font-size:16px;line-height:1.75;color:var(--ink);margin-bottom:.35rem}
.pd-meta-label{
  font-size:11px;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);margin:0 0 6px;
}
.pd-meta-val{font-size:14px;font-weight:500;color:var(--ink);margin:0 0 1.5rem}
.pd-features{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.25rem;margin:2rem 0 3rem;
}
.pd-card{
  background:var(--surface);border:1px solid var(--line);
  border-radius:14px;padding:1.25rem 1.5rem;
}
.pd-card-title{font-weight:700;font-size:15px;color:var(--ink);margin:0 0 0.4rem}
.pd-card p{font-size:14px;color:var(--muted);line-height:1.55;margin:0}
.pd-tech{display:flex;flex-wrap:wrap;gap:8px;margin-top:0.75rem}
.pd-chip{
  background:var(--surface-2);border:1px solid var(--line);
  border-radius:999px;padding:6px 12px;
  font-size:12px;font-weight:500;color:var(--ink);
}
.pd-section-title-full{
  font-size:20px;font-weight:700;margin:0 0 0.875rem;color:var(--blue);
}
@media(max-width:900px){
  .pd-body{grid-template-columns:1fr;gap:0}
  .pd-sidebar{position:static}
}
