﻿/* ============================================================
   ALVY TOMS PORTFOLIO — MONOCHROME THEME
   ============================================================ */

:root {
  --bg:          #000000;
  --surface:     #0a0a0a;
  --card:        #0f0f0f;
  --card-hover:  #151515;
  --border:      #222222;
  --border-soft: rgba(255,255,255,0.08);
  --border-hover:#444444;
  --text:        #ffffff;
  --text-soft:   #d0d0d0;
  --muted:       #888888;
  --muted-dark:  #666666;
  --input-bg:    #111111;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: min(1150px, 92vw);
  margin: 0 auto;
}

/* ── Section labels & titles ── */
.section-label {
  font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 14px; display: block;
}
.section-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; letter-spacing: -1px; line-height: 1;
  color: var(--text); margin-bottom: 60px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block; background: var(--text); color: #000;
  padding: 14px 32px; border: 1.5px solid var(--text);
  text-decoration: none; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 2px; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.btn-primary:hover { background: transparent; color: var(--text); }

.btn-ghost {
  display: inline-block; background: transparent; color: var(--muted);
  padding: 14px 32px; border: 1.5px solid var(--border-hover);
  text-decoration: none; font-weight: 500; font-size: 0.78rem;
  letter-spacing: 2px; text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }


/* ============================================================
   NAV
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; padding: 0 5vw;
}
.nav-logo {
  font-size: 1.2rem; font-weight: 800; letter-spacing: 4px;
  text-transform: uppercase; color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--muted); }

#primary-menu { list-style: none; display: flex; gap: 40px; }
#primary-menu li a {
  color: var(--muted); text-decoration: none;
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  position: relative; transition: color 0.3s;
}
#primary-menu li a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 1px; background: var(--text); transition: width 0.3s;
}
#primary-menu li a:hover { color: var(--text); }
#primary-menu li a:hover::after { width: 100%; }

.nav-toggle {
  display: none; background: transparent; border: 0;
  cursor: pointer; padding: 8px; flex-direction: column; gap: 5px;
}
.bar { display: block; width: 26px; height: 2px; background: #fff; transition: 0.3s; }


/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 5vw 60px;
}

/* Centered name banner on top */
.hero-name-banner {
  width: min(1150px, 92vw); margin: 0 auto 50px;
  text-align: center;
}
.hero-name-banner .hero-role { margin-top: 6px; }
.hero-inner {
  width: min(1150px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 70px; align-items: center;
}

/* Photo column (left) */
.hero-photo-col {
  display: flex; align-items: flex-start; justify-content: center;
}
.hero-photo-col .hero-photo {
  width: 400px; height: 500px;
}
.hero-photo-col .photo-frame {
  border-radius: 20px;
}

.hero-left {
  display: flex; flex-direction: column;
  gap: 28px; max-width: 100%;
  padding-left: 48px;
}

/* Photo on top of name */
.hero-photo { position: relative; width: 150px; height: 150px; }
.photo-frame {
  width: 100%; height: 100%; border-radius: 18px;
  background: #111; border: 1px solid var(--border);
  overflow: hidden; position: relative;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.photo-fallback::after {
  content: 'Photo'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-dark); font-size: 0.8rem; letter-spacing: 1px;
}


/* Name */
.name-block { line-height: 1; }
.hero-name {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800; letter-spacing: -2px;
  color: var(--text); margin-bottom: 14px;
}
.hero-role {
  font-size: 0.85rem; color: var(--muted);
  letter-spacing: 3px; text-transform: uppercase;
}

/* About intro */
.hero-about {
  font-size: 0.98rem; color: var(--text-soft);
  line-height: 1.8; max-width: 540px;
}
.hero-about strong { color: var(--text); font-weight: 600; }

.hero-divider { width: 60px; height: 1px; background: var(--border); }

.hero-headline {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 300; line-height: 1.4; color: var(--text); max-width: 540px;
}
.hero-headline strong { font-weight: 700; }

.hero-tagline {
  font-size: 0.9rem; color: var(--muted);
  line-height: 1.8; max-width: 480px;
}

.hero-ctas { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }

/* Right side: social + scroll */
.hero-side {
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
}
.social-circle {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--muted);
  text-decoration: none; font-size: 0.9rem; font-weight: 600;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.social-circle:hover {
  border-color: var(--text); color: var(--text);
  background: rgba(255,255,255,0.05);
}
.side-divider { width: 1px; height: 80px; background: var(--border); }
.scroll-text {
  writing-mode: vertical-rl; font-size: 0.68rem;
  color: var(--muted-dark); letter-spacing: 2px; text-transform: uppercase;
}


/* ============================================================
   ABOUT
   ============================================================ */
#about { padding: 110px 0; }

.about-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 70px; align-items: start;
}
.about-col-title {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin-bottom: 28px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* Skills — two-column compact list */
.skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}
.skill-row { padding: 0 0 16px; border-bottom: 1px solid var(--border); }
.skill-row-title { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.skill-row-items { font-size: 0.82rem; color: var(--text-soft); line-height: 1.65; }

/* Education */
.edu-list { display: flex; flex-direction: column; gap: 0; }
.edu-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.edu-item:first-child { padding-top: 0; }
.edu-degree { font-size: 0.98rem; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.edu-school { font-size: 0.84rem; color: var(--muted); margin-bottom: 8px; }
.edu-detail { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }

.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.fact {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 22px; background: var(--card);
}
.fact-num { font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 8px; }
.fact-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }


/* ============================================================
   PROJECTS
   ============================================================ */
#projects { padding: 110px 0; }

.projects-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.project-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 34px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.project-card:hover {
  border-color: var(--border-hover); background: var(--card-hover);
  transform: translateY(-4px);
}
.project-top { display: flex; align-items: center; justify-content: space-between; }
.project-index {
  font-size: 1.6rem; font-weight: 800;
  color: rgba(255,255,255,0.12); letter-spacing: -1px;
}
.project-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.project-link:hover { border-color: var(--text); color: var(--text); background: rgba(255,255,255,0.05); }

.project-title { font-size: 1.4rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.project-summary { font-size: 0.9rem; color: var(--text-soft); line-height: 1.7; flex-grow: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.project-tag {
  font-size: 0.72rem; padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--muted);
  background: rgba(255,255,255,0.02);
}


/* ============================================================
   EXPERIENCE
   ============================================================ */
#experience { padding: 110px 0; }

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 50px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute; left: -32px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--text); border: 2px solid var(--bg);
}
.timeline-date {
  font-size: 0.72rem; color: var(--muted); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px;
}
.timeline-role { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.timeline-company { font-size: 0.86rem; color: var(--muted); margin-bottom: 16px; }
.timeline-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.timeline-points li {
  font-size: 0.88rem; color: var(--text-soft); line-height: 1.65;
  padding-left: 18px; position: relative;
}
.timeline-points li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 7px; height: 1px; background: var(--muted);
}


/* ============================================================
   RESUME
   ============================================================ */
#resume { padding: 110px 0; }

.resume-wrapper {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 64px; align-items: center;
}
.resume-left { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.resume-mock {
  background: #141414; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  width: 100%; aspect-ratio: 3/4;
  display: flex; flex-direction: column; position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  cursor: pointer; text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.resume-mock:hover { transform: translateY(-6px); box-shadow: 0 40px 100px rgba(255,255,255,0.06); }

.mock-header { background: var(--text); padding: 28px 24px 20px; }
.mock-name { font-size: 1.5rem; font-weight: 800; color: #000; letter-spacing: -0.5px; line-height: 1; }
.mock-role { font-size: 0.66rem; color: #555; text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }
.mock-contact { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.mock-contact span { font-size: 0.62rem; color: #777; }

.mock-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.mock-bar { height: 6px; width: 56px; background: var(--text); border-radius: 2px; margin-bottom: 8px; }
.mock-block { display: flex; flex-direction: column; gap: 7px; }
.mock-line { height: 5px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.mock-line.w80 { width: 80%; } .mock-line.w70 { width: 70%; }
.mock-line.w60 { width: 60%; } .mock-line.w50 { width: 50%; } .mock-line.w40 { width: 40%; }

.mock-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.resume-mock:hover .mock-overlay { opacity: 1; }
.eye-circle {
  width: 60px; height: 60px; border-radius: 50%; background: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.resume-mock:hover .eye-circle { transform: scale(1.08); }

.btn-download {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  background: transparent; color: var(--text); width: 100%;
  padding: 13px 28px; border: 1px solid var(--border-hover);
  text-decoration: none; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  transition: border-color 0.3s, transform 0.2s;
}
.btn-download:hover { border-color: var(--text); transform: translateY(-1px); }

.resume-info { display: flex; flex-direction: column; gap: 26px; }
.resume-heading { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--text); line-height: 1.15; letter-spacing: -0.5px; }
.resume-heading span { color: var(--muted); }
.resume-desc { font-size: 0.95rem; color: var(--text-soft); line-height: 1.8; }
.resume-highlights { display: flex; flex-direction: column; gap: 12px; }
.highlight-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px;
}
.highlight-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); flex-shrink: 0; margin-top: 7px; }
.highlight-text { font-size: 0.86rem; color: var(--text-soft); line-height: 1.55; }
.highlight-text strong { color: var(--text); font-weight: 600; }


/* ============================================================
   CONTACT
   ============================================================ */
#contact { padding: 110px 0; }

.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: start;
}
.contact-left { display: flex; flex-direction: column; gap: 40px; }
.contact-tagline {
  font-size: 1rem; color: var(--text-soft); line-height: 1.8;
  border-left: 2px solid var(--border-hover); padding-left: 20px;
}
.contact-tagline strong { color: var(--text); font-weight: 600; }

.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.social-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--muted); transition: color 0.3s; }
.social-link:hover { color: var(--text); }
.social-link:hover .social-icon { background: rgba(255,255,255,0.06); border-color: var(--text); }
.social-link:hover .social-icon svg { fill: var(--text); }
.social-icon {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.social-icon svg { fill: var(--muted); transition: fill 0.3s; }
.social-text { display: flex; flex-direction: column; }
.social-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.social-value { font-size: 0.85rem; color: var(--text-soft); font-weight: 500; margin-top: 1px; }

.contact-form-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 38px;
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.form-input, .form-textarea {
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  padding: 14px 16px; outline: none; width: 100%;
  transition: border-color 0.3s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--text); }
.form-input::placeholder, .form-textarea::placeholder { color: #555; }
.form-textarea { resize: vertical; min-height: 140px; }
.btn-submit {
  background: var(--text); color: #000; border: 1.5px solid var(--text);
  border-radius: 10px; padding: 15px 32px;
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; width: 100%; transition: background 0.3s, color 0.3s;
}
.btn-submit:hover { background: transparent; color: var(--text); }
.form-msg { font-size: 0.84rem; text-align: center; min-height: 20px; }
.form-msg.ok  { color: #6ee7a8; }
.form-msg.err { color: #f87171; }


/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  text-align: center; padding: 30px;
  color: var(--muted); font-size: 0.8rem;
}
#site-footer span { color: var(--text); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-left { padding-left: 0; }
  .hero-name-banner { margin-bottom: 36px; }
  .hero-photo-col .hero-photo { width: 100%; max-width: 320px; height: 380px; }
  .hero-side { flex-direction: row; justify-content: flex-start; }
  .side-divider, .scroll-text { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .projects-grid { grid-template-columns: 1fr; }
  .resume-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .resume-left { max-width: 340px; margin: 0 auto; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  #primary-menu {
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    flex-direction: column; max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease; padding: 0 5vw; gap: 0;
  }
  #primary-menu li { display: block; }
  #primary-menu li a { display: block; padding: 16px 0; font-size: 0.9rem; }
  .nav-toggle[aria-expanded="true"] + #primary-menu { max-height: 70vh; }

  .skills-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  #about, #projects, #experience, #resume, #contact { padding: 70px 0; }
  .section-title { margin-bottom: 40px; }
  .project-card { padding: 26px; }
  .contact-form-wrap { padding: 26px; }
  .hero-name { letter-spacing: -1px; }
}