/* ================================================================
   PORTFOLIO — STYLES.CSS
   Luxury Editorial Dark Theme | Alex Morgan Portfolio
   ================================================================ */

/* ================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ================================================================ */

:root {
  /* --- Dark Theme (default) --- */
  --bg-primary:    #060606;
  --bg-secondary:  #0d0d0d;
  --bg-card:       #111111;
  --bg-card-hover: #161616;
  --text-primary:  #f0ece4;
  --text-secondary:#a09a92;
  --text-muted:    #555050;
  --accent:        #c9a448;        /* warm gold */
  --accent-light:  #e2c06e;
  --accent-rgb:    201, 164, 72;
  --border:        rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.10);
  --nav-bg:        rgba(6,6,6,0.90);
  --shadow-card:   0 4px 30px rgba(0,0,0,0.4);
  --shadow-hover:  0 8px 50px rgba(0,0,0,0.6);
  --radius:        10px;
  --radius-sm:     6px;

  /* --- Typography --- */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Archivo', sans-serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;

  /* --- Transitions --- */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Light Theme Overrides --- */
[data-theme="light"] {
  --bg-primary:    #faf8f5;
  --bg-secondary:  #f2eeea;
  --bg-card:       #ffffff;
  --bg-card-hover: #f7f4f0;
  --text-primary:  #1a1714;
  --text-secondary:#6b6560;
  --text-muted:    #b0a9a4;
  --accent:        #a8832a;
  --accent-light:  #c9a448;
  --accent-rgb:    168, 131, 42;
  --border:        rgba(0,0,0,0.06);
  --border-strong: rgba(0,0,0,0.10);
  --nav-bg:        rgba(250,248,245,0.92);
  --shadow-card:   0 4px 30px rgba(0,0,0,0.08);
  --shadow-hover:  0 8px 50px rgba(0,0,0,0.14);
}

/* ================================================================
   2. RESET & BASE
   ================================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  /* Subtle noise texture overlay */
  position: relative;
}

/* Noise texture via SVG URI */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ================================================================
   3. UTILITY CLASSES
   ================================================================ */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }

/* ================================================================
   4. CUSTOM CURSOR (desktop only)
   ================================================================ */

@media (pointer: fine) {
  body { cursor: none; }

  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s var(--ease), opacity 0.3s;
  }

  .cursor-ring {
    width: 30px; height: 30px;
    border: 1.5px solid rgba(var(--accent-rgb), 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.15s var(--ease), width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), border-color 0.3s;
  }

  .cursor-ring.hover {
    width: 50px; height: 50px;
    border-color: var(--accent);
  }

  a, button { cursor: none; }
}

/* ================================================================
   5. NAVIGATION
   ================================================================ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.navbar.hidden { transform: translateY(-100%); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--accent); }
.logo-bracket { color: var(--accent); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  margin-right: 4px;
}

/* Nav controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* Show/hide sun/moon icons based on theme */
[data-theme="dark"] .sun-icon  { display: flex; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon  { display: none; }
[data-theme="light"] .moon-icon { display: flex; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s, width 0.3s var(--ease);
}
.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); }

/* ================================================================
   6. BUTTONS
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #090806;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.35);
}

.btn-ghost {
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 0.8rem;
  padding: 8px 18px;
}
.btn-outline:hover {
  background: var(--accent);
  color: #090806;
}

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ================================================================
   7. SECTION SHARED STYLES
   ================================================================ */

.section {
  padding: clamp(80px, 12vw, 140px) 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.section-num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
  max-width: 300px;
}

/* ================================================================
   8. SCROLL REVEAL ANIMATION
   ================================================================ */

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: none;
}
.scroll-reveal.delay-1 { transition-delay: 0.12s; }
.scroll-reveal.delay-2 { transition-delay: 0.24s; }
.scroll-reveal.delay-3 { transition-delay: 0.36s; }

/* Hero reveal animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s var(--ease-out) forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }
.delay-5 { animation-delay: 0.90s; }

@keyframes revealUp {
  to { opacity: 1; transform: none; }
}

/* ================================================================
   9. HERO SECTION
   ================================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 5% 80px;
}

/* Dot-grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

/* Floating ambient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
  top: -100px; right: 10%;
  animation-duration: 15s;
}
.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(100, 150, 255, 0.07) 0%, transparent 70%);
  bottom: 10%; left: 5%;
  animation-duration: 10s;
  animation-direction: alternate-reverse;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.08); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-greeting {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 600;
  line-height: 0.9;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-role {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  height: 2em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.role-prefix { color: var(--text-secondary); }
.typewriter-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--text-primary);
  font-weight: 500;
}
.cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll-line {
  width: 50px; height: 1px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
}
.scroll-dot {
  position: absolute;
  top: -2px; left: -8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: scroll-move 1.8s ease-in-out infinite;
}
@keyframes scroll-move {
  0%   { left: -8px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 53px; opacity: 0; }
}

/* Big background text */
.hero-bg-text {
  position: absolute;
  right: -2%;
  bottom: -5%;
  font-family: var(--font-display);
  font-size: clamp(180px, 30vw, 360px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.06);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ================================================================
   10. MARQUEE / TICKER
   ================================================================ */

.marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 14px 0;
}

.marquee-track {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  animation: marquee-scroll 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.marquee-content span:not(.dot) {
  transition: color 0.3s;
}

.marquee-content:hover { animation-play-state: paused; }

.dot { color: var(--accent); font-size: 0.6rem; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   11. ABOUT SECTION
   ================================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

/* Left column */
.about-photo-wrap {
  position: relative;
  margin-bottom: 2.5rem;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  font-family: var(--font-mono);
  /* Replace with your photo: */
  /* overflow: hidden; */
}

/* Decorative offset frame */
.photo-frame {
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: var(--radius);
  pointer-events: none;
  z-index: -1;
}

/* Quick facts row */
.quick-facts {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.fact {
  text-align: center;
}
.fact-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}
.fact-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* Right column */
.about-intro {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.about-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Skills */
.skills-block { margin-top: 2.5rem; }
.skills-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.skill-bars { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.skill-bar-item { width: 100%; }
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.skill-pct { font-size: 0.7rem; color: var(--text-muted); }

.skill-track {
  height: 3px;
  background: var(--border-strong);
  border-radius: 2px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 2px;
  transition: width 1.2s var(--ease-out);
}

/* Tech tags */
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag-sm { font-size: 0.65rem; padding: 3px 9px; }

/* ================================================================
   12. PROJECTS SECTION
   ================================================================ */

.projects { background: var(--bg-secondary); }

/* Filter buttons */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Card */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(var(--accent-rgb), 0.25);
}
.project-card.hidden { display: none; }

.project-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%; height: 100%;
  /* Creates a unique tinted gradient per project using CSS --hue variable */
  background: linear-gradient(
    135deg,
    hsl(var(--hue), 30%, 12%) 0%,
    hsl(var(--hue), 50%, 18%) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: hsl(var(--hue), 60%, 55%);
  transition: transform 0.5s var(--ease);
}
/* Replace placeholder with this when you have screenshots:
.project-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
*/

.project-card:hover .project-img-placeholder { transform: scale(1.04); }
.project-card:hover .project-img-wrap img    { transform: scale(1.04); }

/* Overlay on hover */
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.project-card:hover .project-overlay { opacity: 1; }

.overlay-link {
  padding: 9px 18px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.3s, background 0.3s;
}
.overlay-link:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }

.project-body { padding: 1.4rem; }
.project-num {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
  display: block;
  margin-bottom: 6px;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ================================================================
   13. UPCOMING / TIMELINE
   ================================================================ */

.upcoming-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border-strong);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

/* Status dot on the line */
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  z-index: 1;
}
.timeline-dot.active   { background: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.5); }
.timeline-dot.planning { background: var(--bg-card); border-color: var(--accent); }
.timeline-dot.concept  { background: var(--bg-card); border-color: var(--border-strong); }

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.timeline-content:hover { border-color: rgba(var(--accent-rgb), 0.3); box-shadow: var(--shadow-card); }

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Status badges */
.timeline-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.badge-active   { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.3); }
.badge-planning { background: rgba(100, 150, 255, 0.1); color: #7aa3ff; border: 1px solid rgba(100, 150, 255, 0.25); }
.badge-concept  { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border-strong); }

.timeline-date { font-size: 0.7rem; color: var(--text-muted); }

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.timeline-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.2rem; }

/* Progress bar */
.timeline-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tp-bar {
  flex: 1;
  height: 3px;
  background: var(--border-strong);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.tp-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--progress);
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 2px;
  animation: bar-fill 1.2s var(--ease-out) forwards;
}
@keyframes bar-fill {
  from { width: 0; }
  to   { width: var(--progress); }
}
.tp-label { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

/* ================================================================
   14. CONTACT SECTION
   ================================================================ */

.contact { background: var(--bg-secondary); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 2.5rem;
}
.contact-tagline em { color: var(--accent); font-style: italic; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s, transform 0.3s;
}
a.contact-item:hover { border-color: rgba(var(--accent-rgb), 0.35); transform: translateX(4px); }

.contact-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.contact-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-value { font-size: 0.9rem; color: var(--text-primary); }

/* Social links */
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease);
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.2);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; position: relative; }

.form-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  padding: 12px 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  resize: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.form-textarea { min-height: 130px; resize: vertical; }

.form-error {
  font-size: 0.72rem;
  color: #e07070;
  display: none;
  font-family: var(--font-mono);
}
.form-group.error .form-input { border-color: #e07070; }
.form-group.error .form-error { display: block; }

/* Toast notification */
.form-toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
  border: 1px solid transparent;
}
.form-toast.success {
  display: block;
  background: rgba(100, 200, 130, 0.1);
  border-color: rgba(100, 200, 130, 0.3);
  color: #78d49e;
}
.form-toast.error {
  display: block;
  background: rgba(224, 112, 112, 0.1);
  border-color: rgba(224, 112, 112, 0.3);
  color: #e07070;
}

/* ================================================================
   15. FOOTER
   ================================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo { font-size: 1.2rem; display: inline-block; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

.footer-col-title {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy, .footer-made { font-size: 0.75rem; color: var(--text-muted); }

/* ================================================================
   16. BACK TO TOP BUTTON
   ================================================================ */

.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s var(--ease);
  z-index: 800;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: all; }
.back-to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* ================================================================
   17. MOBILE MENU OVERLAY
   ================================================================ */

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    z-index: 850;
  }
  .nav-links.open { opacity: 1; pointer-events: all; }

  .nav-link {
    font-size: 1.5rem;
    color: var(--text-secondary);
  }
  .nav-link:hover, .nav-link.active { color: var(--text-primary); }

  .nav-num { font-size: 0.85rem; }
}

/* ================================================================
   18. RESPONSIVE — TABLET & MOBILE
   ================================================================ */

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 260px 1fr; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-left { max-width: 320px; margin: 0 auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .scroll-indicator { display: none; }
  .hero-bg-text { font-size: 120px; }
  .section-line { display: none; }
  .quick-facts { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-cta  { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .back-to-top { bottom: 20px; right: 20px; }
}
