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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: #f4f8ff;
  color: #172033;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  width: calc(100% - 48px);
  margin: 18px 24px 0;
  padding: 16px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 28, 73, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 24, 80, 0.22);
  transition: transform 0.35s ease;
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

.navbar nav {
  display: flex;
  gap: 28px;
}

.navbar a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 0.95rem;
}

.navbar a:hover {
  color: #dbeafe;
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 150px 8% 90px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  overflow: hidden;
  background: url("bg.jpeg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.22), rgba(8, 42, 105, 0.38) 34%, rgba(2, 12, 35, 0.82) 100%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 45%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 28%, rgba(0, 0, 0, 0.42) 78%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(135deg, rgba(0, 86, 255, 0.35), rgba(0, 20, 80, 0.65));
  z-index: 1;
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.badge,
.section-heading span,
.about-text span,
.github-section span {
  display: inline-block;
  color: #0b5cff;
  background: #e8f0ff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero .badge {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero h1 {
  color: white;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.98;
  margin-bottom: 24px;
  letter-spacing: -2px;
  text-shadow: 0 12px 35px rgba(0, 0, 0, 0.38);
}

.hero p {
  max-width: 720px;
  color: #eaf2ff;
  font-size: 1.16rem;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn.primary {
  background: #0b5cff;
  color: white;
  box-shadow: 0 12px 30px rgba(11, 92, 255, 0.35);
}

.btn.primary:hover {
  transform: translateY(-3px);
  background: #004bd6;
}

.btn.secondary {
  border: 2px solid #0b5cff;
  color: #0b5cff;
}

.btn.secondary:hover {
  background: #0b5cff;
  color: white;
}

.hero .btn.secondary {
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.hero .btn.secondary:hover {
  background: white;
  color: #0b5cff;
}

.hero-card {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  padding: 36px;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.hero-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.hero-card p {
  color: #dbeafe;
  margin-bottom: 0;
}

/* GENERAL SECTIONS */
.section {
  padding: 90px 8%;
}

.section-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
}

.section-heading h2,
.about-text h2,
.github-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-heading p,
.about-text p,
.github-section p {
  color: #64748b;
  font-size: 1.05rem;
}

/* VIDEO */
.video-wrapper {
  max-width: 335px;
  margin: auto;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(145deg, #0b5cff55, #002b7f);
  box-shadow: 0 35px 80px rgba(0, 40, 130, 0.35);
}

.video-wrapper video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  background: #020617;
}

/* ABOUT */
.about-section {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
  padding: 90px 8%;
  overflow: hidden;
}

/* SAME BG AS HERO, LIGHTER */
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("bg.jpeg") center / cover no-repeat;
  opacity: 0.28;
  filter: blur(2px) brightness(1);
  transform: scale(1.06);
  z-index: 0;
}

/* LIGHT BLUR + SOFT VIGNETTE OVERLAY */
.about-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.82), rgba(238, 246, 255, 0.9) 45%, rgba(9, 72, 189, 0.339) 100%),
    radial-gradient(circle at center, transparent 35%, rgba(0, 24, 80, 0.2) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
}

.about-text,
.stats-grid {
  position: relative;
  z-index: 2;
}

.about-text p {
  margin-bottom: 18px;
}

.stats-grid {
  display: grid;
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(11, 92, 255, 0.16);
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(11, 92, 255, 0.12);
}

.stat-card h3 {
  color: #0b5cff;
  font-size: 2rem;
  margin-bottom: 8px;
}

/* FLIP FEATURES */
.features-grid,
.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.flip-card {
  height: 310px;
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.flip-front {
  background: #0b5cff;
}

.flip-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 32, 96, 0.88),
    rgba(0, 102, 255, 0.12)
  );
}

.flip-front h3 {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: white;
  font-size: 1.35rem;
  z-index: 2;
}

.flip-back {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #0b5cff, #003b95);
  color: white;
  padding: 30px;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-back h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.flip-back p {
  color: #eaf2ff;
  font-size: 0.98rem;
}

/* TECH */
.tech-section {
  background:
    radial-gradient(circle at center, rgba(11, 92, 255, 0.1), transparent 35%),
    #ffffff;
}

.tech-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.tech-tags span {
  background: #eff6ff;
  color: #0b5cff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

/* GITHUB */
.github-section {
  margin: 90px 8%;
  padding: 60px;
  border-radius: 32px;
  color: white;
  background:
    linear-gradient(135deg, rgba(11, 92, 255, 0.94), rgba(0, 38, 120, 0.96)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-shadow: 0 30px 70px rgba(0, 40, 120, 0.25);
}

.github-section span {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.github-section p {
  color: #e0e7ff;
  max-width: 680px;
}

.github-section .btn.primary {
  background: white;
  color: #0b5cff;
  white-space: nowrap;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 32px 8%;
  color: #93a4bd;
  background: #061327;
}

footer p:first-child {
  color: white;
  font-weight: 700;
}

/* ANIMATIONS */
.hidden {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* TABLET */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 145px 7% 80px;
  }

  .hero-card {
    max-width: 520px;
  }

  .features-grid,
  .flip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-section {
    grid-template-columns: 1fr;
  }
}

/* SMALL TABLET / PHONE */
@media (max-width: 768px) {
  .navbar {
    width: calc(100% - 28px);
    margin: 14px;
    padding: 14px 18px;
    flex-direction: column;
    gap: 12px;
  }

  .navbar nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar a {
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    padding: 165px 6% 70px;
    text-align: center;
  }

  .hero p {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-card {
    margin: 0 auto;
    padding: 28px;
  }

  .features-grid,
  .flip-grid {
    grid-template-columns: 1fr;
  }

  .tech-tags {
    justify-content: center;
  }

  .github-section {
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin: 60px 6%;
    padding: 38px 24px;
  }
}

/* PHONE */
@media (max-width: 480px) {
  .logo {
    font-size: 0.98rem;
  }

  .navbar nav {
    gap: 10px;
  }

  .navbar a {
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 175px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 65px 6%;
  }

  .video-wrapper {
    max-width: 285px;
  }

  .flip-card {
    height: 260px;
  }
}