:root {
  --bg: #08121e;
  --bg-soft: #0d1f33;
  --surface: rgba(15, 33, 55, 0.72);
  --surface-2: rgba(15, 26, 43, 0.94);
  --text: #eff7ff;
  --muted: #a3bad1;
  --primary: #3ad0ff;
  --secondary: #45f0b2;
  --line: rgba(171, 210, 255, 0.16);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Sora, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 18% 0%, #103761, transparent 35%),
    radial-gradient(circle at 78% 16%, #07434d, transparent 40%), var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.35;
  z-index: -2;
}

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 208, 255, 0.2), transparent 62%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: opacity 0.2s ease;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.main-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(7, 14, 26, 0.55);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.brand span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
}

.hero {
  padding: 6.5rem 0 4rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.2rem;
  align-items: center;
}

.eyebrow {
  color: var(--secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

h1 {
  margin-top: 0.7rem;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.12;
  max-width: 16ch;
}

h1 span {
  color: var(--primary);
}

.hero-copy {
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.7;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-card img {
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid rgba(58, 208, 255, 0.35);
}

.profile-card h3 {
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

.profile-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-actions {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.8rem 1.15rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn-primary {
  color: #062030;
  background: linear-gradient(100deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 30px rgba(58, 208, 255, 0.35);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.metrics {
  margin-top: 3.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 1rem;
}

.metric-card {
  padding: 1.05rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.metric-card h3 {
  font-size: 2rem;
  color: var(--primary);
}

.metric-card p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

section {
  padding: 2.8rem 0;
}

.about,
.projects,
.contact {
  display: grid;
  gap: 1.2rem;
}

.panel,
.skills,
.project-card,
.timeline-item,
.contact {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem;
}

.panel p,
.skills p,
.timeline-item p,
.project-card p,
.contact p {
  color: var(--muted);
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.contact-form label {
  font-size: 0.9rem;
  color: #d5e8ff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(5, 14, 24, 0.72);
  color: var(--text);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(58, 208, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(58, 208, 255, 0.2);
}

.form-note {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.linkedin-link {
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
  border: 1px solid rgba(69, 240, 178, 0.55);
  background: linear-gradient(120deg, rgba(58, 208, 255, 0.15), rgba(69, 240, 178, 0.12));
  border-radius: 14px;
  padding: 1rem 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.linkedin-link:hover {
  transform: translateY(-2px);
  border-color: rgba(58, 208, 255, 0.8);
  box-shadow: 0 10px 28px rgba(58, 208, 255, 0.22);
}

.linkedin-label {
  color: #eff7ff;
  font-weight: 700;
}

.linkedin-url {
  color: #9ed8ff;
  font-size: 0.9rem;
  word-break: break-word;
}

.panel p + p {
  margin-top: 0.8rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.chips span {
  font-size: 0.86rem;
  border: 1px solid rgba(68, 193, 235, 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: #c0ddff;
  background: rgba(33, 84, 129, 0.33);
}

.timeline {
  position: relative;
}

.timeline h2,
.projects h2,
.contact h2 {
  margin-bottom: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 67px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(var(--secondary), transparent);
}

.timeline-item {
  margin-left: 1.25rem;
  margin-bottom: 0.9rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.66rem;
  top: 1.15rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--secondary);
}

.meta {
  font-size: 0.85rem;
}

.company-gallery {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
}

.company-gallery img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: zoom-in;
}

.company-gallery img:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(69, 240, 178, 0.7);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}

.project-card {
  transform-style: preserve-3d;
}

.project-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.tag {
  color: var(--secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer {
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 14, 0.92);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(171, 210, 255, 0.24);
  box-shadow: var(--shadow);
}

.lightbox-btn {
  position: absolute;
  border: 1px solid rgba(171, 210, 255, 0.35);
  background: rgba(7, 18, 31, 0.8);
  color: var(--text);
  border-radius: 10px;
  padding: 0.35rem 0.7rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 330px;
  }

  .metrics,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 4vw;
    flex-direction: column;
    background: rgba(5, 12, 22, 0.94);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem;
    min-width: 180px;
    transform: scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
  }

  .hero {
    padding-top: 4.3rem;
  }

  .profile-card {
    max-width: 100%;
  }

  .metrics,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    margin-left: 0;
  }

  .timeline-item::before {
    display: none;
  }
}
