:root {
  --bg: #08111f;
  --panel: rgba(12, 21, 38, 0.82);
  --panel-solid: #0f1b31;
  --text: #edf3ff;
  --muted: #b7c4df;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #62b0ff;
  --secondary: #9b7bff;
  --accent: #56f3d6;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(98, 176, 255, 0.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(155, 123, 255, 0.12), transparent 35%),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.bg-blur {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.blur-1 {
  background: var(--primary);
  top: -80px;
  left: -80px;
}

.blur-2 {
  background: var(--secondary);
  right: -80px;
  bottom: 50px;
}

.section {
  scroll-margin-top: 95px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  background: rgba(8, 17, 31, 0.68);
  box-shadow: var(--shadow);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
  transition: 0.3s ease;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 110px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.subtitle {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 25px rgba(98, 176, 255, 0.35);
}

.btn-primary:hover,
.btn-secondary:hover,
.project-link:hover,
.contact-item:hover {
  transform: translateY(-3px);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.stat-card,
.card,
.project-card,
.contact-item {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.stat-card {
  border-radius: 18px;
  padding: 18px;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-ring {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 8px;
  background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  animation: spin 5s linear infinite;
  box-shadow: 0 0 45px rgba(98, 176, 255, 0.25);
}

.photo-ring::before {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.photo-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 12px;
  background: linear-gradient(145deg, rgba(8, 17, 31, 0.95), rgba(19, 31, 54, 0.9));
}

.foto {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 40px;
}

.card {
  padding: 32px;
  border-radius: 26px;
  margin-bottom: 26px;
}

.section-title {
  margin-bottom: 22px;
}

.section-title span {
  color: var(--accent);
  font-size: 0.9rem;
}

.section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-top: 6px;
}

.card p {
  color: var(--muted);
  line-height: 1.85;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item strong {
  color: var(--text);
}

.info-item span {
  color: var(--muted);
  line-height: 1.7;
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--primary), transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 20px;
  align-items: start;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 18px rgba(98, 176, 255, 0.55);
}

.timeline-content h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.timeline-content p {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content span {
  color: var(--muted);
  line-height: 1.8;
}

.skill-list {
  display: grid;
  gap: 22px;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.skill-head p,
.skill-head span {
  color: var(--text);
  font-weight: 500;
}

.bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transition: width 1.6s ease;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  border-radius: 22px;
  padding: 24px;
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(98, 176, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(98, 176, 255, 0.14);
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.project-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.project-card p {
  min-height: 108px;
}

.project-link {
  margin-top: 18px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.contact-card p {
  max-width: 720px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  padding: 22px;
  border-radius: 18px;
  transition: 0.3s ease;
}

.contact-item span {
  color: var(--muted);
  word-break: break-word;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(8, 17, 31, 0.7);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer h3 {
  margin-bottom: 8px;
}

.footer p {
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  25% {
    background-position: 50% 100%;
    filter: brightness(1.05);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.1);
  }
  75% {
    background-position: 50% 0%;
    filter: brightness(1.05);
  }
  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
}
@media (max-width: 980px) {
  .hero,
  .portfolio-grid,
  .contact-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-photo-wrap {
    order: -1;
  }

  .project-card p {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .navbar {
    padding: 14px 18px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(8, 17, 31, 0.96);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-bottom: 6px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .card,
  .footer {
    padding: 24px 20px;
  }

  .photo-ring {
    width: min(300px, 84vw);
  }
}
