:root {
  --bg: #0b1020;
  --bg-soft: #111831;
  --card: rgba(17, 24, 49, 0.75);
  --border: rgba(255,255,255,0.10);
  --text: #edf2ff;
  --muted: #b8c1e0;
  --primary: #59a5ff;
  --primary-2: #7d6bff;
  --accent: #21d4b4;
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(89,165,255,.20), transparent 30%),
    radial-gradient(circle at top right, rgba(125,107,255,.18), transparent 35%),
    linear-gradient(180deg, #080c18 0%, #0b1020 40%, #0a0f1d 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8, 12, 24, 0.72);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: .02em;
}

.brand span {
  color: var(--muted);
  font-size: .88rem;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
}

.nav-links a {
  color: var(--muted);
  border-radius: 999px;
  transition: .25s ease;
  font-size: 0.9rem;
  padding: 8px 12px;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255,255,255,.08);
}

.menu-btn {
  display: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: white;
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #8bc6ff 40%, #8b80ff 75%, #61ffd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
  color: white;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stat {
  padding: 18px;
}

.stat strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 4px;
}

.stat span { color: var(--muted); font-size: .95rem; }

.portrait {
  min-height: 520px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.portrait::before,
.portrait::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: .55;
}

.portrait::before {
  width: 180px; height: 180px;
  background: rgba(89,165,255,.45);
  top: -20px; right: -20px;
}

.portrait::after {
  width: 200px; height: 200px;
  background: rgba(33,212,180,.25);
  bottom: -20px; left: -20px;
}

.portrait-box {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.profile-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.portrait h2 {
  font-size: 1.8rem;
  margin: 18px 0 10px;
}

.portrait p {
  color: var(--muted);
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .92rem;
  color: #eaf3ff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

.about-grid,
.project-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.card p,
.card li {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.timeline-top strong { font-size: 1.06rem; }
.timeline-top span { color: var(--accent); font-weight: 600; }
.timeline-subtitle {
  margin: 0 0 10px;
  color: #d8e5ff;
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-card {
  padding: 20px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.skill-card h3 { margin: 0 0 8px; }
.skill-card p { margin: 0 0 14px; color: var(--muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .9rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.project-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(89,165,255,.25), rgba(125,107,255,.25));
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .95rem;
}

.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}

.contact-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.contact-left i {
  width: 18px;
  height: 18px;
  color: #7aa2ff;
  flex-shrink: 0;
}

.contact-label {
  color: var(--muted);
  font-weight: 500;
}

.contact-value {
  margin-left: auto;
  color: white;
  font-weight: 600;
  text-align: right;
  text-decoration: none;
  word-break: break-word;
}

.contact-value:hover {
  color: #9fc2ff;
}

.contact-item span { color: var(--muted); }

.contact-form {
  display: grid;
  gap: 12px;
}

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: 0.95rem;
  color: white;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.5);
  font-family: inherit;
}

.success-msg {
  display: none;
  color: #4ade80;
  font-weight: 500;
  margin-top: 15px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-value {
    margin-left: 0;
    text-align: left;
  }
}

.field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: white;
  outline: none;
}

.field::placeholder { color: #9fb0db; }
textarea.field { min-height: 140px; resize: vertical; }

footer {
  padding: 28px 0 54px;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .project-grid,
  .contact-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(8,12,24,.98);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .hero { padding-top: 34px; }
  .portrait { min-height: auto; }
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.trusted-section {
  padding: 40px 0 70px;
}

.trusted-slider {
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.trusted-slider:active {
  cursor: grabbing;
}

.trusted-slider::-webkit-scrollbar {
  display: none;
}

.trusted-track {
  display: flex;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.trusted-card {
  width: 300px;
  min-height: 360px;
  padding: 22px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  flex-shrink: 0;
}

.trusted-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(89,165,255,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
}

.trusted-logo {
  width: 100%;
  height: 170px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 18px;
  margin-bottom: 18px;
}

.trusted-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trusted-tags span {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  transition: all .2s ease;
}

.trusted-card:hover .trusted-tags span {
  background: rgba(89,165,255,0.12);
  border-color: rgba(89,165,255,0.25);
}

.trusted-tags span:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59,232,195,0.15);
}

.pdf-container {
  width: 100%;
  height: 85vh;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
}

.pdf-viewer {
  width: 100%;
  height: 100%;
  border: none;
}

.feedly-sources {
  margin-top: 32px;
}

.feedly-sources h3 {
  margin-bottom: 10px;
}

.sources-intro {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 70ch;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.source-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 110px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: pointer;
  text-align: center;
}

.source-card:hover {
  transform: translateY(-5px);
  border-color: rgba(89,165,255,.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.source-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.source-card span {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.experience-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.experience-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  padding: 6px;
}

.experience-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.experience-date {
  color: #3be8c3;
  font-weight: 500;
}

.experience-card:hover .experience-logo {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(59,232,195,0.3);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.experience-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.experience-logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.experience-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.experience-date {
  color: #3be8c3;
  font-weight: 500;
  white-space: nowrap;
}
