/* ============================================================
   ABOUT ME WEBSITE — styles.css
   Theme: Editorial Bold | Dark base + Vivid amber accent
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0d0d;
  --bg-2:        #141414;
  --bg-card:     #1a1a1a;
  --accent:      #1e90ff;
  --accent-2:    #005cb3;
  --text:        #f0ece4;
  --text-muted:  #a0a0a0;
  --border:      #2a2a2a;

  --font-display: 'Bebas Neue', sans-serif;
  --font-serif:   'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --max-w: 1100px;
  --section-pad: 120px 5%;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

/* ── NOISE TEXTURE ── */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAVIGATION ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 5%;
  transition: background 0.3s, padding 0.3s;
}

#navbar.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  padding: 14px 5%;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-links a.nav-cta {
  background: var(--accent);
  color: #0d0d0d;
  padding: 8px 20px;
  border-radius: 2px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.nav-links a.nav-cta:hover {
  background: #1874CD;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 36px; height: 2px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 14rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.hero-name .line { display: block; }
.hero-name .italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}

.hero-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero-role {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
}
.hero-location {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  animation: bounce 2.5s infinite;
}
.scroll-hint:hover { color: var(--accent); }
.scroll-arrow { font-size: 1.2rem; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-accent-block {
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30,144,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* ── SECTION SHARED ── */
section {
  padding: var(--section-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 3rem;
}
.section-heading em {
  font-style: italic;
  color: var(--accent);
}

/* ── ABOUT ── */
#about { padding-top: 140px; }

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 5rem;
  align-items: start;
}

.portrait-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}
.portrait-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.portrait-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.about-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.about-body strong { color: var(--text); }

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── WORK ── */
#work { background: var(--bg-2); max-width: 100%; padding: var(--section-pad); }
#work > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.45rem; top: 8px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 0 4px rgba(245,166,35,0.15);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.8rem 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.timeline-content:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.timeline-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem auto;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.2;
}
.timeline-company {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.timeline-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 4px;
  text-align: right;
}
.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}
.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.timeline-tags span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(30,144,255,0.08);
  border: 1px solid rgba(30,144,255,0.2);
  padding: 3px 10px;
  border-radius: 2px;
}
/* Collapse behavior */
.timeline-header {
  cursor: pointer;
  margin-bottom: 0; /* remove gap when collapsed */
}

.timeline-desc,
.timeline-tags {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
}

.timeline-content.expanded .timeline-desc {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 1.2rem;
  margin-top: 1rem;
}

.timeline-content.expanded .timeline-tags {
  max-height: 100px;
  opacity: 1;
}

/* Optional: rotate a toggle icon */
.toggle-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  padding-top: 6px;
  flex-shrink: 0;
  justify-self: end;
}
.timeline-content.expanded .toggle-icon {
  transform: rotate(180deg);
}

/* ── EDUCATION ── */
#education { padding-top: 120px; }

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s;
}
.edu-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.edu-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.edu-degree {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.edu-school {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2px;
}
.edu-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.edu-detail {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CONTACT ── */
#contact {
  text-align: center;
  background: var(--bg-2);
  max-width: 100%;
  padding: 140px 5%;
}
#contact > * {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.contact-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}
.contact-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-btn {
  text-decoration: none;
  padding: 14px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-btn.primary {
  background: var(--accent);
  color: #0d0d0d;
}
.contact-btn.primary:hover {
  background: #007df6;
  transform: translateY(-2px);
}
.contact-btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.contact-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2.5rem 5%;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
}

/* ── MOBILE MENU ── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    background: rgba(13, 13, 13, 0.97);
    backdrop-filter: blur(6px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 10% calc(20px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    overflow: hidden;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(.77,0,.18,1), visibility 0s linear 0.35s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transition-delay: 0s;
  }
  .nav-links.open::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portrait-placeholder { aspect-ratio: 4/3; }
  .about-stats { gap: 2rem; }

  .hero-name { font-size: clamp(4.5rem, 18vw, 7rem); }

  .timeline { padding-left: 1.5rem; }
  .timeline-dot { left: -1.95rem; }
  .timeline-header {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .timeline-date { text-align: left; }
  .toggle-icon {
    justify-self: start;
    padding-top: 0;
  }
}