:root {
  --bg: #07111f;
  --bg-soft: #0d1b2f;
  --card: rgba(255, 255, 255, 0.09);
  --card-border: rgba(255, 255, 255, 0.16);
  --text: #f6fbff;
  --muted: #b5c3d8;
  --accent: #63e6be;
  --accent-2: #69b7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, 92%); margin: 0 auto; }

.animated-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(circle at top left, #14375f 0, transparent 35%), var(--bg); }
.animated-bg span {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,230,190,.32), rgba(105,183,255,.18));
  filter: blur(10px); animation: float 14s ease-in-out infinite;
}
.animated-bg span:nth-child(1) { top: 8%; left: 5%; }
.animated-bg span:nth-child(2) { top: 20%; right: 8%; animation-delay: -4s; }
.animated-bg span:nth-child(3) { bottom: 12%; left: 20%; animation-delay: -8s; }
.animated-bg span:nth-child(4) { bottom: 8%; right: 18%; animation-delay: -11s; }
@keyframes float { 0%,100% { transform: translateY(0) scale(1); opacity: .55; } 50% { transform: translateY(-40px) scale(1.12); opacity: .85; } }

.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); background: rgba(7,17,31,.72); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06111f; }
.nav-links { display: flex; gap: 28px; list-style: none; color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; color: var(--text); border: 0; font-size: 1.8rem; }

.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding: 70px 0; }
.eyebrow { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 12px; }
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); line-height: .98; margin-bottom: 24px; }
h1 span, h2 span { color: var(--accent); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; margin-bottom: 18px; }
.hero-text, .section p { color: var(--muted); font-size: 1.04rem; }
.hero-actions { display: flex; gap: 16px; margin: 34px 0; flex-wrap: wrap; }
.btn { padding: 14px 22px; border-radius: 999px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-3px); }
.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06111f; }
.secondary { border: 1px solid var(--card-border); background: var(--card); }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-stats div, .glass-card, .skill-card, .timeline-item, .project-card, .contact-card, .cert-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 26px; box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.quick-stats div { padding: 18px; }
.quick-stats strong { display: block; font-size: 1.45rem; color: var(--accent); }
.quick-stats span { color: var(--muted); font-size: .87rem; }
.hero-card { position: relative; padding: 30px; border-radius: 36px; background: rgba(255,255,255,.07); border: 1px solid var(--card-border); box-shadow: var(--shadow); }
.profile-card { max-width: 460px; justify-self: center; }
.profile-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30px; }
.floating-card { position: absolute; left: 10%; right: 10%; bottom: -28px; padding: 18px; border-radius: 20px; background: rgba(8,20,36,.9); border: 1px solid var(--card-border); }
.floating-card strong { display: block; color: var(--accent); }
.floating-card span { color: var(--muted); }

.section { padding: 92px 0; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.centered { text-align: center; margin-inline: auto; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.glass-card, .info-list, .skill-card, .timeline-item, .project-card, .contact-card, .cert-card { padding: 28px; }
.info-list { border-left: 3px solid var(--accent); background: rgba(255,255,255,.045); border-radius: 22px; }
.info-list p + p { margin-top: 14px; }
.skills-grid, .projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-card h3, .project-card h3, .timeline-item h3 { margin-bottom: 10px; }
.skill-card:hover, .project-card:hover { transform: translateY(-6px); border-color: rgba(99,230,190,.5); }
.skill-card, .project-card { transition: .25s ease; }
.timeline { position: relative; display: grid; gap: 20px; }
.timeline-item { position: relative; padding-left: 34px; }
.timeline-item:before { content: ""; position: absolute; left: 16px; top: 34px; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.date { color: var(--accent-2); font-weight: 800; font-size: .9rem; }
.projects-grid { grid-template-columns: repeat(3, 1fr); }
.project-card img { height: 190px; width: 100%; object-fit: cover; border-radius: 18px; margin: 0 auto 20px; }
.cert-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 22px; margin-bottom: 24px; }
.cert-card h3 { margin-bottom: 10px; }
.cert-card img { width: 100%; max-height: 340px; object-fit: cover; object-position: center; border-radius: 18px; margin-bottom: 18px; }
.featured-cert { display: grid; grid-template-columns: .85fr 1fr; gap: 22px; align-items: center; }
.text-link { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 800; }
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-row span { padding: 12px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--card-border); color: var(--muted); }
.contact-section { display: grid; grid-template-columns: 1fr .9fr; gap: 28px; align-items: center; }
.contact-card { display: grid; gap: 14px; }
.contact-card a { color: var(--accent); font-weight: 800; }
.footer { text-align: center; padding: 34px 16px; color: var(--muted); border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 76px; right: 4%; left: 4%; padding: 20px; border-radius: 20px; background: rgba(7,17,31,.96); flex-direction: column; display: none; }
  .nav-links.open { display: flex; }
  .hero, .about-grid, .contact-section { grid-template-columns: 1fr; }
  .skills-grid, .projects-grid, .cert-grid, .featured-cert { grid-template-columns: 1fr; }
  .quick-stats { grid-template-columns: 1fr; }
  .hero-card { margin-bottom: 28px; }
}
.section, .hero-content, .hero-card { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.section.show, .hero-content.show, .hero-card.show { opacity: 1; transform: translateY(0); }
