:root {
  --bg: #08111f;
  --bg-soft: #0d1830;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #eaf2ff;
  --muted: #a8b5d1;
  --primary: #7c9bff;
  --primary-2: #4be1c5;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 155, 255, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(75, 225, 197, 0.10), transparent 25%),
    linear-gradient(180deg, #07101d 0%, #08111f 60%, #0b1322 100%);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }

.background-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -2;
}
.orb-1 {
  width: 360px; height: 360px; left: -100px; top: 80px;
  background: rgba(124, 155, 255, 0.35);
}
.orb-2 {
  width: 320px; height: 320px; right: -80px; top: 240px;
  background: rgba(75, 225, 197, 0.22);
}
.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 90%);
  pointer-events: none;
  z-index: -3;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(8, 17, 31, 0.62);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 82px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.9rem; }
.brand-logo {
  width: 50px; height: 50px; border-radius: 14px;
  box-shadow: var(--shadow);
}
.brand-name, .brand-subtitle { display: block; }
.brand-name { font-weight: 700; letter-spacing: -0.02em; }
.brand-subtitle { font-size: 0.9rem; color: var(--muted); }

.nav-links {
  display: flex; align-items: center; gap: 1.25rem;
}
.nav-links a {
  color: var(--muted);
  transition: 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 12px;
  font-size: 1.15rem;
  padding: 0.65rem 0.8rem;
}

.hero {
  padding: 4rem 0 2.5rem; /* slightly reduced vertical space */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr; /* give text more room */
  gap: 1.5rem; /* tighter spacing between columns */
  align-items: center;
}

.eyebrow, .section-label, .card-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-2);
}

.hero h1 {
  margin: 0.75rem 0 0.9rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 14ch; /* less squeezed */
}

.hero-text, .section-intro, .timeline-item li, .project-card p, .skill-card p, .contact-card p, .about-pills span {
  color: var(--muted);
}

.hero-text {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 58ch; /* slightly wider */
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #06111d;
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  color: var(--text);
}

.quick-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem; /* tighter pills */
  padding: 0;
  margin: 1.2rem 0 0;
}

.quick-stats li {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  color: var(--muted);
}

.quick-stats span {
  color: var(--text);
  font-weight: 800;
  margin-right: 0.3rem;
}

/* KEY FIX — prevent left squeeze */
.hero-copy {
  max-width: 640px;
}

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.profile-shell { padding: 1rem; }
.profile-art {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 1rem;
}
.profile-meta { padding: 0.4rem; }
.profile-meta h2 { margin: 0.5rem 0 0.8rem; font-size: 1.65rem; }
.profile-meta p { color: var(--muted); line-height: 1.7; }
.hero-tags, .tag-row, .about-pills {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
}
.hero-tags span, .tag-row span, .about-pills span {
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  font-size: 0.92rem;
}

.section, .section-small { padding: 5rem 0; }
.section-small { padding-top: 1rem; padding-bottom: 1.5rem; }
.section-grid.two-col {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 2rem; align-items: start;
}
.section h2, .section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0.5rem 0 0;
}
.section-grid p, .contact-copy p {
  line-height: 1.85;
  font-size: 1.03rem;
}
.section-illustration {
  margin-top: 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
}
.logo-strip-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}
.logo-strip-inner span {
  display: flex; align-items: center; justify-content: center;
  min-height: 64px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
}

.logo-item:hover {
  transform: translateY(-6px) scale(1.03);
  background: linear-gradient(135deg, rgba(124,155,255,0.2), rgba(75,225,197,0.2));
  border-color: rgba(255,255,255,0.2);
  color: #ffffff;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

.section-heading {
  display: flex; justify-content: space-between; gap: 2rem; align-items: end;
  margin-bottom: 2rem;
}
.section-intro { max-width: 46ch; line-height: 1.8; }

.timeline-item:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255,255,255,0.2);
  background: linear-gradient(135deg, rgba(124,155,255,0.12), rgba(75,225,197,0.10));
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.timeline {
  display: grid; gap: 1.2rem;
}
.timeline-item { padding: 1.5rem; }
.timeline-date {
  display: inline-flex;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 155, 255, 0.12);
  color: #bfd0ff;
  font-size: 0.88rem;
  font-weight: 700;
}
.timeline-item h3 { margin: 1rem 0 0.35rem; font-size: 1.3rem; }
.timeline-company { margin: 0 0 0.9rem; color: #c9d6ef; font-weight: 600; }
.timeline-item ul { margin: 0; padding-left: 1.2rem; }
.timeline-item li { line-height: 1.7; margin-bottom: 0.55rem; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}
.project-card {
  grid-column: span 4;
  overflow: hidden;
}
.project-card.featured { grid-column: span 6; }
.project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.project-body { padding: 1.25rem; }
.project-badge {
  display: inline-flex; margin-bottom: 0.7rem;
  padding: 0.42rem 0.7rem; border-radius: 999px;
  background: rgba(75, 225, 197, 0.12); color: #8ef1e0; font-size: 0.82rem; font-weight: 700;
}
.project-card h3 { margin: 0 0 0.7rem; font-size: 1.25rem; }
.project-card p { line-height: 1.75; margin: 0 0 1rem; }

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(124,155,255,0.12), rgba(75,225,197,0.10));
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.skill-card { padding: 1.35rem; }
.skill-card h3 { margin-top: 0; }
.skill-card p { line-height: 1.8; }

.contact-card {
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.3rem; }
.contact-visual {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
}
.site-footer {
  padding: 1.8rem 0 3rem;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.4rem;
}
.footer-inner a { color: var(--text); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.12s; }

@media (max-width: 1040px) {
  .hero-grid, .section-grid.two-col, .contact-card, .skills-grid { grid-template-columns: 1fr; }
  .logo-strip-inner { grid-template-columns: repeat(3, 1fr); }
  .project-card, .project-card.featured { grid-column: span 6; }
  .section-heading { flex-direction: column; align-items: start; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(8,17,31,0.96);
    border: 1px solid rgba(255,255,255,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .hero { padding-top: 3rem; }
  .hero h1 { max-width: 100%; }
  .logo-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card.featured { grid-column: auto; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: start; }
}
