:root {
  --bg: #0b1220;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #e8eefc;
  --muted: #aab7cf;
  --primary: #38bdf8;
  --primary-dark: #0284c7;
  --white: #ffffff;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 35%),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 24px;
  font-weight: 800;
}

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

nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: var(--muted);
  font-size: 15px;
  transition: 0.2s;
}

nav a:hover {
  color: var(--primary);
}

main {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 45px;
  align-items: center;
  padding: 40px 0 80px;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  margin-bottom: 24px;
}

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

.hero-description {
  max-width: 680px;
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 13px 20px;
  font-weight: 700;
  transition: 0.25s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
}

.btn.secondary {
  border: 1px solid var(--card-border);
  color: var(--text);
  background: var(--card);
}

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

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--primary);
  font-size: 20px;
  transition: 0.2s;
}

.socials a:hover {
  transform: translateY(-4px);
  background: rgba(56, 189, 248, 0.15);
}

.hero-card,
.glass-card,
.project-card,
.cert-card,
.skill-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 28px;
  padding: 28px;
  text-align: center;
  animation: float 5s ease-in-out infinite;
}

.hero-card img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(56, 189, 248, 0.35);
  margin-bottom: 20px;
}

.hero-card h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.hero-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.card-tags,
.tech-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card-tags span,
.tech-stack span {
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.section {
  padding: 35px 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-title span {
  color: var(--primary);
  font-weight: 800;
}

.section-title h2 {
  font-size: 32px;
}

.glass-card {
  border-radius: 22px;
  padding: 28px;
}

.glass-card p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 14px;
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(56, 189, 248, 0.35);
}

.timeline-item {
  position: relative;
}

.dot {
  position: absolute;
  left: -24px;
  top: 10px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.12);
}

.timeline-content {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
}

.timeline-content h3,
.project-card h3,
.cert-card h3,
.skill-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.meta {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-content p,
.project-card p,
.skill-card p {
  color: var(--muted);
}

.project-grid,
.cert-grid,
.skills-grid {
  display: grid;
  gap: 18px;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
  border-radius: 24px;
  padding: 26px;
  transition: 0.25s;
}

.project-card:hover,
.cert-card:hover,
.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
}

.project-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.14);
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 18px;
}

.tech-stack {
  justify-content: flex-start;
  margin: 18px 0;
}

.project-card a {
  color: var(--primary);
  font-weight: 700;
}

.cert-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cert-card {
  border-radius: 20px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: 0.25s;
}

.cert-card i {
  color: var(--primary);
  font-size: 24px;
  margin-top: 4px;
}

.cert-card p {
  color: var(--muted);
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.skill-card {
  border-radius: 20px;
  padding: 22px;
  transition: 0.25s;
}

.contact-section {
  padding-bottom: 70px;
}

.contact-card {
  text-align: center;
}

.contact-card h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.contact-card .btn {
  margin-top: 12px;
}

footer {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--card-border);
  text-align: center;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 850px) {
  .topbar {
    flex-direction: column;
    gap: 16px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .socials {
    justify-content: center;
  }

  .section-title {
    justify-content: center;
  }

  .timeline {
    padding-left: 18px;
  }
}
