:root {
  --bg: #090c14;
  --card: rgba(255, 255, 255, 0.08);
  --text: #e9eefb;
  --muted: #9fb1d8;
  --accent: #73d6ff;
  --accent-2: #9f7bff;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, #1d2b50 0%, transparent 45%),
              radial-gradient(circle at 80% 20%, #352a65 0%, transparent 40%),
              radial-gradient(circle at 50% 80%, #123b53 0%, transparent 40%);
  z-index: -2;
}

.container { width: min(1120px, 92vw); margin: 0 auto; }
.section { padding: 6rem 0; }
h1, h2, h3 { line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); margin-bottom: 1.2rem; }
.lead { color: var(--muted); max-width: 70ch; }

.glass {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  margin: 1rem auto 0;
  width: min(1120px, 92vw);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
}
.logo { color: white; font-weight: 800; text-decoration: none; letter-spacing: 1px; }
.nav-links { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a.active, .nav-links a:hover { color: #fff; }
.menu-toggle { display: none; background: transparent; color: white; border: 0; font-size: 1.3rem; }

.hero { min-height: 90vh; display: grid; place-items: center; position: relative; overflow: hidden; }
.eyebrow { text-transform: uppercase; color: var(--accent); letter-spacing: 1.6px; font-size: 0.85rem; }
.tagline { color: var(--muted); max-width: 58ch; }
.hero-cta { display: flex; gap: 0.8rem; margin-top: 1.3rem; flex-wrap: wrap; }
.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.74rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
  display: inline-flex;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #051018;
  background: linear-gradient(135deg, var(--accent), #a6eeff);
  box-shadow: 0 0 25px rgba(115, 214, 255, .35);
}
.btn-secondary {
  color: white;
  background: linear-gradient(135deg, rgba(159, 123, 255, .35), rgba(115, 214, 255, .3));
  border: 1px solid rgba(255,255,255,.24);
}

.hero-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-parallax span {
  position: absolute;
  color: rgba(255,255,255,.2);
  font-weight: 700;
  animation: float 8s ease-in-out infinite;
}
.hero-parallax span:nth-child(1){ top: 24%; left: 8%; font-size: 2.2rem; }
.hero-parallax span:nth-child(2){ top: 18%; right: 11%; font-size: 2rem; animation-delay: .8s; }
.hero-parallax span:nth-child(3){ bottom: 24%; left: 14%; font-size: 1.8rem; animation-delay: 1.5s; }
.hero-parallax span:nth-child(4){ bottom: 17%; right: 15%; font-size: 2.1rem; animation-delay: .5s; }
.hero-parallax span:nth-child(5){ top: 50%; left: 45%; font-size: 1.7rem; animation-delay: 2.1s; }

@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card { padding: 1.25rem; transition: transform .2s ease, border-color .2s ease; }
.card:hover, .timeline-item:hover, .project:hover { transform: translateY(-5px); border-color: rgba(115, 214, 255, .6); }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.skill { padding: .95rem 1rem; }
.skill span { display: block; margin-bottom: .5rem; }
.bar { height: 8px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1s ease; }

.timeline { position: relative; display: grid; gap: 1rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: .75rem;
  top: .8rem;
  bottom: .8rem;
  width: 2px;
  background: rgba(255,255,255,.25);
}
.timeline-item { padding: 1rem 1rem 1rem 2rem; position: relative; transition: all .2s ease; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: .4rem;
  top: 1.2rem;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(115,214,255,.5);
}
.timeline-item h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: 1.05rem; }
.timeline-item h3 span { color: var(--muted); font-size: .9rem; font-weight: 500; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.project { padding: 1rem; }
.project-media {
  border-radius: 12px;
  height: 165px;
  display: grid;
  place-items: center;
  margin-bottom: .85rem;
  background: linear-gradient(135deg, rgba(115,214,255,.24), rgba(159,123,255,.24));
  font-weight: 700;
  overflow: hidden;
}
.image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-fallback { color: #e7f0ff; font-size: .9rem; }
.stack { color: var(--muted); font-size: .9rem; }

.testimonial-slider { padding: 2rem; text-align: center; max-width: 780px; margin: 0 auto; }
blockquote { font-size: clamp(1.05rem, 1.6vw, 1.35rem); margin: 0 0 1rem; color: #f3f7ff; }
.author { color: var(--muted); }
.controls { display: flex; justify-content: center; gap: .6rem; }
.slide-btn { border: 0; border-radius: 10px; padding: .5rem .7rem; background: rgba(255,255,255,.15); color: white; cursor: pointer; }

.contact-layout { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.contact-form { display: grid; gap: .8rem; }
.form-success {
  margin: 0;
  min-height: 1.25rem;
  color: #95ffd5;
  font-size: .92rem;
}
label { display: grid; gap: .35rem; font-size: .95rem; color: var(--muted); }
input, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8, 12, 20, 0.7);
  color: #fff;
  padding: .7rem;
}
a { color: var(--accent); }
.footer { text-align: center; color: var(--muted); padding: 2rem 0 2.5rem; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .grid-3, .project-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 54px;
    right: 0;
    flex-direction: column;
    padding: .8rem;
    background: #0f1527;
    border-radius: 12px;
    transform: scale(.95);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
  }
  .hero {
    min-height: 65vh;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: scale(1); }
  .skills-grid, .grid-3, .project-grid, .contact-layout { grid-template-columns: 1fr; }
  .section { padding: 2.2rem 0; }
}
