* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: hidden;
}

/* ================= NAVBAR ================= */

header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-weight: 900;
  font-size: 1.2rem;
  color: #38bdf8;
}

nav a {
  color: #cbd5e1;
  margin-left: 2rem;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #38bdf8;
}

/* ================= HERO ================= */

/* HERO SECTION */

.hero {
  min-height: 100vh;
  background: radial-gradient(circle at 30% 30%, #1e293b, #0f172a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.15),
    transparent 70%
  );
  top: -150px;
  right: -150px;
  filter: blur(120px);
  animation: floatGlow 6s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(40px);
  }
}

.hero-content {
  z-index: 2;
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PROFILE IMAGE */

.profile-wrapper {
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem auto;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
  transition: 0.4s ease;
}

.profile-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-wrapper:hover {
  transform: scale(1.05);
}

/* NAME */

.hero-name {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ROLE */

.hero-role {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

/* BUTTON */

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: 0.4s ease;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.5);
}

/* ================= SECTION ================= */

section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: center;
}

/* ================= TIMELINE ================= */

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #38bdf8;
  transform: translateX(-50%);
}

.timeline-item {
  width: 50%;
  padding: 2rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: 16px;
  transition: 0.4s;
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(56, 189, 248, 0.15);
}

/* ================= SYSTEMS ================= */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.impact-card {
  position: relative;
  background: #1e293b;
  padding: 2rem;
  border-radius: 20px;
  overflow: hidden;
  transition: 0.4s ease;
}

.impact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(56, 189, 248, 0.15);
}

.impact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  opacity: 0;
  transform: scale(0.9);
  transition: 0.4s ease;
}

.impact-card:hover .impact-overlay {
  opacity: 1;
  transform: scale(1);
}

/* Animated Circle */

.circle {
  --percent: 0;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(#38bdf8 calc(var(--percent) * 1%), #1e293b 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  transition: background 1s ease;
}

.impact-text {
  text-align: center;
  padding: 0 1rem;
  color: #94a3b8;
}

/* ================= TECH ================= */

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.tech-item {
  padding: 0.7rem 1.4rem;
  background: #1e293b;
  border-radius: 30px;
  transition: 0.3s;
}

.tech-item:hover {
  background: #38bdf8;
  color: #0f172a;
  transform: scale(1.1);
}

/* ================= CONTACT ================= */

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

.contact-box a {
  color: #38bdf8;
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 2rem;
  background: #0b1220;
  margin-top: 4rem;
  color: #64748b;
}

/* ================= SCROLL ANIMATION ================= */

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .timeline::before {
    display: none;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
  }
}
