/* 
   ========================================================================
   STYLE.CSS - Premium Minimalist Black & Gold Portfolio Design System
   ========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
  --bg-primary: #060504;
  --bg-secondary: #0c0a07;
  --bg-card: rgba(20, 17, 11, 0.5);
  --border-color: rgba(212, 175, 55, 0.12);
  --border-hover: rgba(212, 175, 55, 0.35);

  --accent-primary: #D4AF37;
  --accent-secondary: #F2CC5C;
  --accent-gradient: linear-gradient(135deg, #F5D67A 0%, #D4AF37 55%, #B8860B 100%);
  --accent-glow: rgba(212, 175, 55, 0.18);

  --text-main: #f7f3ea;
  --text-muted: #a8a196;
  --text-dark: #6e6a60;

  --font-main: 'Inter', sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-mono: 'Courier New', monospace;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-elastic: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Global Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  cursor: none;
}

body { overflow-x: hidden; line-height: 1.6; cursor: none; }

a, button, input, textarea, select, [role="button"], .cursor-interactive, .project-card {
  cursor: none !important;
  -webkit-tap-highlight-color: transparent;
}

body.modal-open { overflow: hidden; padding-right: 8px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible, .console-tab:focus-visible, .filter-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-gradient);
  color: #100c04;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 10px 0;
  z-index: 10001;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(0,0,0,1), rgba(0,0,0,0.15) 85%);
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(0,0,0,1), rgba(0,0,0,0.15) 85%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  #cursor-canvas { display: none; }
  html, body { cursor: auto; }
  a, button, input, textarea, select, [role="button"], .cursor-interactive, .project-card {
    cursor: pointer !important;
  }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.18);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.32); }

#cursor-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999; pointer-events: none;
}
.custom-cursor-dot, .custom-cursor-follower { display: none; }

#ambient-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

section { padding: 10rem 0 5rem; position: relative; overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.02em;
}

p { color: var(--text-muted); font-size: 1.05rem; user-select: text; }

.glow-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition-smooth);
}
.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 40px var(--accent-glow);
}

/* ── Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 100;
  background: rgba(6,5,4,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.navbar.scrolled {
  background: rgba(6,5,4,0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  transition: var(--transition-smooth);
}
.navbar.scrolled .nav-container { height: 76px; }

.logo {
  flex-shrink: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.logo-monogram {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.55));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.logo:hover .logo-monogram {
  filter: drop-shadow(0 0 16px rgba(212,175,55,0.9));
  transform: translateY(-1px) scale(1.05);
}
.logo-monogram svg{
    display:block;
    width:64px;
    height:64px;
    overflow:visible;
}
.logo .logo-dot { display: none; }

/* ── Nav links: pop highlight, no underline ── */
.nav-links { display: flex; list-style: none; gap: 3rem; }

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 1;
  padding: 0.5rem 0;
}
.nav-links a::before {
  content: '';
  position: absolute;
  inset: -8px -16px;
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 100px;
  opacity: 0;
  transform: scale(0.82);
  transition: var(--transition-smooth);
  z-index: -1;
  pointer-events: none;
}
.nav-links a:hover { color: var(--text-main); }
.nav-links a:hover::before,
.nav-links a.active::before { opacity: 1; transform: scale(1); }
.nav-links a.active { color: var(--accent-secondary); }

/* ── Hero ── */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 90px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.22);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 2rem;
}
.badge-dot {
  width: 8px; height: 8px;
  background-color: #3ddc84;
  border-radius: 50%;
  box-shadow: 0 0 10px #3ddc84;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.hero h1 { font-size: clamp(2.4rem, 4.5vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 580px; }
.hero-ctas { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition-elastic);
  cursor: none;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #14100a;
  border: none;
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(212,175,55,0.5); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(212,175,55,0.06); border-color: var(--accent-primary); transform: translateY(-4px); }

/* Hero Visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.visual-sphere {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(212,175,55,0.22) 0%, rgba(184,134,11,0.06) 50%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  position: absolute;
  filter: blur(20px);
  animation: float 8s ease-in-out infinite;
}

.visual-card {
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(212,175,55,0.10), rgba(15,13,9,0.6));
  border: 1px solid rgba(212,175,55,0.25);
  font-family: var(--font-mono);
  padding: 2rem;
  z-index: 2;
  position: relative;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  transform: perspective(1000px) rotateX(10deg) rotateY(-10deg);
  transition: transform 0.5s ease;
}
.visual-card:hover { transform: perspective(1000px) rotateX(0deg) rotateY(0deg); }

.card-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: var(--accent-primary);
  filter: blur(90px); opacity: 0.35; border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.terminal-bar, .console-panel, .console-terminal, .card-bottom { position: relative; z-index: 1; }

.terminal-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(212,175,55,0.08);
  margin-bottom: 1.5rem;
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-title { margin-left: 0.8rem; font-size: 0.75rem; color: var(--text-dark); font-family: var(--font-main); }

.console-tabs {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
  max-width: 65%;
  overflow-x: auto;
  scrollbar-width: none;
}
.console-tabs::-webkit-scrollbar { display: none; }
.console-tab {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px 6px 0 0;
  white-space: nowrap;
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
}
.console-tab:hover { color: var(--text-muted); }
.console-tab.active {
  color: var(--accent-secondary);
  border-bottom-color: var(--accent-primary);
  background: rgba(212,175,55,0.08);
}

.console-panel { display: none; }
.console-panel.active { display: block; animation: fadeInPanel 0.4s ease; }
@keyframes fadeInPanel { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.card-middle h3 { font-family: var(--font-heading); font-size: 1.7rem; margin: 0.3rem 0 1rem; }
.card-role { color: var(--accent-secondary); font-size: 0.8rem; font-family: var(--font-mono); margin-bottom: 0.4rem; opacity: 0.85; }
.card-desc {
  font-size: 0.8rem; line-height: 1.8;
  font-family: var(--font-mono);
  background: rgba(0,0,0,0.3);
  border-radius: 10px; padding: 1rem 1.2rem;
  border: 1px solid rgba(212,175,55,0.06);
  white-space: pre; overflow-x: auto;
  margin: 0;
}
.code-kw { color: #d8a6f0; }
.code-var { color: #f2cc5c; }
.code-key { color: #f0b48a; }
.code-str { color: #8be08f; }
.code-num { color: #f5d67a; }

.console-terminal {
  margin-top: 1.2rem;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(212,175,55,0.08);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4em;
  overflow: hidden;
}
.terminal-prompt { color: var(--accent-secondary); flex-shrink: 0; }
.terminal-log { color: #8be08f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.terminal-cursor { display: inline-block; color: var(--accent-primary); animation: blink 1s step-end infinite; flex-shrink: 0; }

.card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(212,175,55,0.08);
  padding-top: 1.5rem; margin-top: 1.5rem;
  flex-wrap: wrap;
}
.stat-item .stat-num { font-family: var(--font-heading); font-size: 1.5rem; display: block; }
.stat-item .stat-lbl { font-size: 0.75rem; color: var(--text-dark); }
.card-status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-main); margin-left: auto; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; animation: pulse 2s infinite; flex-shrink: 0; }

/* ── Section Titles ── */
.section-title { margin-bottom: 3rem; }
.title-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--accent-primary);
  opacity: 0.95;
  display: block;
  margin-bottom: 0.6rem;
}
.section-title h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; }
.about-left { display: flex; flex-direction: column; justify-content: flex-start; }
.about-left p { margin-bottom: 2rem; font-size: 1.1rem; }
.about-left p:last-child { margin-bottom: 0; }
.about-right-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.info-card { padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; }
.info-card svg { width: 28px; height: 28px; stroke: var(--accent-primary); margin-bottom: 1.5rem; flex-shrink: 0; }
.card-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-secondary);
  opacity: 0.8;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.info-card h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.9rem; }

/* About grid now holds 5 cards (2+2+1); let the odd one out span the row
   so it doesn't sit awkwardly alone in a half-empty row. */
.about-right-grid .info-card:last-child { grid-column: 1 / -1; }
.about-right-grid .info-card:last-child p { max-width: 60ch; }

/* ── Projects ── */
.projects-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; }
.projects-header .section-title { margin-bottom: 0; }

.filter-menu {
  display: flex; gap: 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.4rem; border-radius: 100px;
}
.filter-btn {
  padding: 0.6rem 1.5rem; border-radius: 100px;
  border: none; background: transparent;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: var(--transition-smooth);
}
.filter-btn:hover { color: var(--text-main); }
.filter-btn.active {
  background: var(--bg-card); color: var(--accent-secondary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
}

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

.project-card {
  position: relative; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex; flex-direction: column;
  transition: var(--transition-smooth);
  height: 100%;
}
.project-card.hidden { display: none; }
.project-card:hover { transform: translateY(-8px); border-color: var(--border-hover); box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 30px var(--accent-glow); }

.project-img-wrapper { 
  position: relative; 
  width: 100%; 
  overflow: hidden; 
  background: var(--bg-secondary);
  flex-shrink: 0; 
}
.project-img-wrapper img { 
  width: 100%; 
  height: auto; 
  display: block;
  object-fit: contain; 
  transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); 
}
.project-card:hover .project-img-wrapper img { transform: scale(1.03); }

.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6,5,4,0) 40%, rgba(6,5,4,0.88) 100%);
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.project-tag { background: rgba(212,175,55,0.08); border: 1px solid rgba(212,175,55,0.15); padding: 0.3rem 0.8rem; font-size: 0.75rem; border-radius: 100px; color: var(--text-main); }

.project-info { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }

.project-info h3 {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  margin-bottom: 0.5rem;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.project-info p { 
  font-size: 0.95rem; 
  margin-bottom: 1.5rem; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
}

.project-link { 
  align-self: flex-start; 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  font-size: 0.85rem; 
  font-weight: 600; 
  color: var(--accent-primary); 
  text-decoration: none; 
  transition: var(--transition-smooth); 
  margin-top: auto;
}
.project-link svg { width: 16px; height: 16px; stroke: var(--accent-primary); transition: transform 0.3s; flex-shrink: 0; }
.project-card:hover .project-link svg { transform: translateX(4px); }

/* ── Timeline (shared: Experience + Education) ── */
.timeline { max-width: 800px; margin: 0 auto; position: relative; padding-left: 2rem; border-left: 1px solid var(--border-color); }
.timeline-glow-line { position: absolute; left: -1px; top: 0; width: 2px; height: 0%; background: var(--accent-gradient); transition: height 1s ease; }
.timeline-item { position: relative; margin-bottom: 4rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: calc(-2rem - 6px); top: 0.5rem; width: 12px; height: 12px; background-color: var(--bg-primary); border: 2px solid var(--text-dark); border-radius: 50%; z-index: 2; transition: var(--transition-smooth); }
.timeline-item.active .timeline-dot { border-color: var(--accent-primary); background-color: var(--accent-primary); box-shadow: 0 0 10px var(--accent-primary); }
.timeline-content { padding: 2rem; }
.timeline-date { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--accent-primary); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.timeline-content h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.timeline-company { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.2rem; display: block; }
.timeline-content p { font-size: 0.95rem; }

/* ── Experience-specific meta row (company header + badges) ── */
.exp-header { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.exp-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.25);
  font-family: var(--font-heading); font-weight: 800; font-size: 0.95rem;
  color: var(--accent-secondary);
}
.exp-title-group { display: flex; flex-direction: column; }
.exp-title-group h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }
.exp-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.exp-badge {
  font-size: 0.72rem; font-family: var(--font-mono);
  padding: 0.3rem 0.75rem; border-radius: 100px;
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.18);
  color: var(--text-muted);
}

/* ── Skills ── */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; }
.skills-category h3 { font-size: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.8rem; }
.skills-list { display: flex; flex-direction: column; gap: 1.8rem; }
.skill-bar-wrapper { display: flex; flex-direction: column; gap: 0.6rem; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.95rem; font-weight: 500; }
.skill-name { color: var(--text-main); }
.skill-percent { color: var(--text-muted); flex-shrink: 0; margin-left: 0.5rem; }
.skill-bar-bg { width: 100%; height: 6px; background: var(--bg-secondary); border-radius: 10px; overflow: hidden; position: relative; }
.skill-bar-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--accent-gradient); width: 0%; border-radius: 10px; transition: width 1.5s cubic-bezier(0.16,1,0.3,1); box-shadow: 0 0 10px var(--accent-primary); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
.contact-info { display: flex; flex-direction: column; gap: 3rem; }

.contact-card { display: flex; align-items: flex-start; gap: 1.5rem; }
.contact-icon-wrapper { width: 50px; height: 50px; border-radius: 12px; background: var(--bg-secondary); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth); flex-shrink: 0; }
.contact-icon-wrapper svg { width: 22px; height: 22px; stroke: var(--text-muted); transition: var(--transition-smooth); }
.contact-card:hover .contact-icon-wrapper { border-color: var(--accent-primary); background: rgba(212,175,55,0.05); }
.contact-card:hover .contact-icon-wrapper svg { stroke: var(--accent-primary); }
.contact-card-info h4 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.contact-card-info p { font-size: 0.95rem; color: var(--text-muted); word-break: break-all; }

.social-links { display: flex; gap: 1rem; }
.social-btn { width: 45px; height: 45px; border-radius: 10px; background: var(--bg-secondary); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition-smooth); flex-shrink: 0; }
.social-btn svg { width: 18px; height: 18px; stroke: var(--text-muted); fill: none; }
.social-btn:hover { border-color: var(--accent-primary); background: rgba(212,175,55,0.05); transform: translateY(-3px); }
.social-btn:hover svg { stroke: var(--accent-primary); }

.contact-form { padding: 3rem; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { position: relative; margin-bottom: 1.5rem; }
.form-group:last-child { margin-bottom: 0; }
.form-input { width: 100%; background: rgba(212,175,55,0.02); border: 1px solid var(--border-color); border-radius: 10px; padding: 1.1rem 1.2rem; font-family: var(--font-main); font-size: 0.95rem; color: var(--text-main); outline: none; transition: var(--transition-smooth); }
.form-input:focus { border-color: var(--accent-primary); background: rgba(212,175,55,0.03); box-shadow: 0 0 20px rgba(212,175,55,0.06); }
.form-label { position: absolute; top: 1.1rem; left: 1.2rem; color: var(--text-dark); font-size: 0.95rem; transition: var(--transition-smooth); pointer-events: none; }
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label { top: -0.6rem; left: 0.8rem; font-size: 0.75rem; color: var(--accent-primary); background: #0e0c08; padding: 0 0.4rem; }
textarea.form-input { resize: none; min-height: 150px; }

.btn-submit { border: none; cursor: none; width: 100%; margin-top: 1rem; }

/* ── Toast ── */
.submit-success-toast, .submit-error-toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid rgba(61,220,132,0.3);
  border-radius: 12px; padding: 1rem 2rem;
  display: flex; align-items: center; gap: 1rem;
  z-index: 10000; box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: translateY(150%); transition: var(--transition-elastic);
  max-width: calc(100vw - 2rem);
}
.submit-error-toast { border-color: rgba(239,68,68,0.3); }
.submit-success-toast.active, .submit-error-toast.active { transform: translateY(0); }
.toast-icon { width: 20px; height: 20px; background: #3ddc84; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-icon svg { width: 12px; height: 12px; stroke: #100c04; stroke-width: 3; }
.toast-icon-error { background: #ef4444; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6,5,4,0.88);
  backdrop-filter: blur(16px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1);
  padding: 1rem;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-window { width: 90%; max-width: 900px; max-height: 85vh; border-radius: 20px; border: 1px solid var(--border-hover); background: #0d0b07; box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 60px rgba(212,175,55,0.05); overflow-y: auto; transform: scale(0.92) translateY(20px); transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); position: relative; }
.modal-overlay.active .modal-window { transform: scale(1) translateY(0); }
.modal-close-btn { position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; border-radius: 50%; background: rgba(212,175,55,0.04); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; z-index: 10; cursor: none; transition: var(--transition-smooth); }
.modal-close-btn svg { width: 18px; height: 18px; stroke: var(--text-muted); }
.modal-close-btn:hover { background: rgba(212,175,55,0.12); border-color: var(--accent-primary); transform: rotate(90deg); }
.modal-close-btn:hover svg { stroke: var(--accent-primary); }
.modal-hero-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--border-color); }
.modal-body { padding: 3rem; }
.modal-header-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; gap: 1.5rem; }
.modal-header-left h2 { font-size: 2.2rem; margin-bottom: 0.5rem; word-break: break-word; }
.modal-details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 1.5rem 0; }
.meta-col-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dark); display: block; margin-bottom: 0.3rem; }
.meta-col-value { font-size: 0.95rem; color: var(--text-main); font-weight: 500; }
.modal-description { margin-bottom: 3rem; }
.modal-description p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; color: var(--text-muted); user-select: text; }
.modal-actions { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border-color); padding: 2.5rem 0; background: #050403; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand {
  display: flex; align-items: center; gap: 0.85rem;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-smooth);
}
.footer-brand:hover { transform: translateY(-2px); }
.footer-logo {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.4));
}
.footer-logo svg { display: block; width: 44px; height: 44px; }
.footer-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
.copyright { font-size: 0.9rem; color: var(--text-dark); }

/* ── Animations ── */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,220,132,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.reveal-active { opacity: 1; transform: translateY(0); }

/* ── Typewriter ── */
.cursor-blink { display: inline-block; color: var(--accent-primary); font-weight: 400; animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent; border: none;
  padding: 0;
  cursor: pointer;
  z-index: 200; flex-shrink: 0;
}
.ham-line {
  display: block;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  width: 24px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.25s ease,
              background 0.3s ease;
  transform-origin: center center;
}
.hamburger:hover .ham-line { background: var(--accent-primary); }

.hamburger.open .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Menu Overlay ── */
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(6,5,4,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  will-change: opacity;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: all; }
.mobile-menu { display: flex; flex-direction: column; align-items: center; gap: 3rem; width: 100%; padding: 2rem; }
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 100%; }
.mobile-nav-links li {
  width: 100%; text-align: center;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s ease calc(var(--i) * 0.05s),
              transform 0.35s cubic-bezier(0.16,1,0.3,1) calc(var(--i) * 0.05s);
}
.mobile-menu-overlay.open .mobile-nav-links li { opacity: 1; transform: translateY(0); }
.mobile-nav-link {
  display: block; padding: 0.9rem 2rem;
  font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
  color: var(--text-muted); text-decoration: none;
  letter-spacing: -0.02em; transition: color 0.3s ease; border-radius: 12px;
}
.mobile-nav-link:hover { color: var(--accent-secondary); background: rgba(212,175,55,0.05); }
.mobile-menu-footer {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease 0.32s, transform 0.3s ease 0.32s;
}
.mobile-menu-overlay.open .mobile-menu-footer { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════════════════════════════════ */

/* Large tablet */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 2rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-content { align-items: center; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
  .skills-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
}

/* Mobile */
@media (max-width: 768px) {

  html, body { cursor: auto; }
  #cursor-canvas { display: none; }
  
  a, button, input, textarea, select,
  [role="button"], .cursor-interactive, .project-card { 
    cursor: pointer !important; 
    -webkit-tap-highlight-color: transparent;
  }

  .nav-links { display: none !important; }
  .hamburger { display: flex; }
  .nav-container { height: 72px; }
  .navbar.scrolled .nav-container { height: 64px; }

  .logo { width: 48px; height: 48px; }
  .logo-monogram { width: 48px; height: 48px; }
  .logo-monogram svg { width: 48px !important; height: 48px !important; }

  .hero { padding-top: 90px; min-height: 100svh; }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding-bottom: 3rem;
  }
  .hero-content { align-items: center; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.15; }
  .hero p { font-size: 1rem; }
  .hero-ctas { justify-content: center; gap: 1rem; }
  .availability-badge { font-size: 0.78rem; padding: 0.4rem 0.8rem; text-align: center; }

  .visual-card {
    max-width: 100%;
    transform: none !important;
    padding: 1.5rem;
  }
  .visual-card:hover { transform: none !important; }
  .card-desc { white-space: pre-wrap; overflow-x: hidden; font-size: 0.72rem; }
  .card-middle h3 { font-size: 1.35rem; }
  .visual-sphere { width: 220px; height: 220px; }
  .console-tabs { max-width: 58%; }
  .console-tab { font-size: 0.64rem; padding: 0.3rem 0.5rem; }
  .console-terminal { font-size: 0.7rem; padding: 0.6rem 0.8rem; }
  .terminal-log { max-width: 70vw; }

  section { padding: 5rem 0 3rem; }
  .container { padding: 0 1.25rem; }
  .section-title h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .section-title { margin-bottom: 2.5rem; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-right-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .about-right-grid .info-card:last-child { grid-column: 1 / -1; }
  .info-card { padding: 1.25rem; min-height: auto; }
  .info-card h4 { font-size: 1rem; }
  .info-card p { font-size: 0.85rem; }
  .about-left p { font-size: 1rem; }

  .projects-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .filter-menu { flex-wrap: wrap; border-radius: 12px; gap: 0.4rem; }
  .filter-btn { padding: 0.5rem 1rem; font-size: 0.82rem; }
  .project-info { padding: 1.25rem; }
  .project-info h3 { font-size: 1.1rem; }

  .skills-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .skills-category { padding: 1.75rem !important; }
  .skills-category h3 { font-size: 1.2rem; }
  .skill-info { font-size: 0.85rem; }

  .timeline { padding-left: 1.25rem; }
  .timeline-dot { left: calc(-1.25rem - 6px); }
  .timeline-content { padding: 1.25rem; }
  .timeline-content h3 { font-size: 1.1rem; }
  .timeline-company { font-size: 0.85rem; }
  .timeline-content p { font-size: 0.88rem; }
  .exp-header { gap: 0.7rem; }
  .exp-icon { width: 34px; height: 34px; font-size: 0.8rem; }
  .exp-title-group h3 { font-size: 1.05rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-info { gap: 2rem; }
  .contact-card-info p { font-size: 0.85rem; }

  .modal-overlay { padding: 0.75rem; align-items: flex-end; }
  .modal-window { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .modal-body { padding: 1.5rem; }
  .modal-details-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .modal-actions { flex-direction: column; }
  .modal-header-left h2 { font-size: 1.5rem; }
  .modal-close-btn { top: 1rem; right: 1rem; }

  .footer-content { flex-direction: column; text-align: center; }

  .submit-success-toast, .submit-error-toast { bottom: 1rem; right: 1rem; left: 1rem; padding: 0.85rem 1.25rem; }

  .mobile-nav-link { font-size: 1.75rem; }
}

/* Small phones */
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.88rem; }
  .mobile-nav-link { font-size: 1.4rem; padding: 0.75rem 1.5rem; }
  .about-right-grid { grid-template-columns: 1fr; }
  
  .logo { width: 40px; height: 40px; }
  .logo-monogram { width: 40px; height: 40px; }
  .logo-monogram svg { width: 40px !important; height: 40px !important; }
  
  .nav-container { height: 64px; }
  .modal-details-grid { grid-template-columns: 1fr; }
  .filter-menu { padding: 0.3rem; }
  .filter-btn { padding: 0.45rem 0.85rem; font-size: 0.78rem; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .contact-card { gap: 1rem; }
  .contact-icon-wrapper { width: 42px; height: 42px; }
  .console-tabs { max-width: 50%; }
  .console-tab { font-size: 0.6rem; padding: 0.25rem 0.4rem; }
}