/* =========================
   GLOBAL RESET
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0b0f19;
  color: #ffffff;
}

a {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  min-height: 44px;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 40px;
  background: #0b0f19;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid #1f2937;
}

.logo a {
  text-decoration: none;
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
}

.logo a:hover {
  color: #38bdf8;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li a {
  margin: 0 15px;
  text-decoration: none;
  color: #cbd5e1;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #38bdf8;
}

.social-icons a {
  color: #cbd5e1;
  margin-left: 15px;
  font-size: 18px;
  transition: transform 0.2s, color 0.2s;
}

.social-icons a:hover {
  color: #38bdf8;
  transform: translateY(-3px);
}

.resume-btn {
  margin-left: 20px;
  padding: 8px 14px;
  border: 1px solid #38bdf8;
  border-radius: 6px;
  text-decoration: none;
  color: #38bdf8;
}

/* =========================
   HERO SECTION (DESKTOP)
   ========================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 80px 40px;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 42px;
}

.hero-text h1 span {
  color: #38bdf8;
}

.hero-text h2 {
  margin: 15px 0;
  color: #a5f3fc;
}

.hero-text p {
  color: #cbd5e1;
  margin-bottom: 30px;
}

.buttons .btn {
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  margin-right: 15px;
}

.primary {
  background: #38bdf8;
  color: #000;
}

.secondary {
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

/* PHOTO */
.hero-image img {
  width: 220px;
  border-radius: 50%;
  border: 4px solid #38bdf8;
  animation: float 4s ease-in-out infinite;
}

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

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

  100% {
    transform: translateY(0);
  }
}

/* =========================
   PAGE COMMON
   ========================= */
.page {
  padding: 120px 80px 60px;
}

.page h1 {
  font-size: 36px;
  margin-bottom: 30px;
  color: #38bdf8;
}

/* =========================
   ABOUT
   ========================= */
.about-text {
  max-width: 900px;
  margin-bottom: 20px;
  color: #cbd5e1;
  line-height: 1.7;
}

.about-text span {
  color: #a5f3fc;
}

.about-cards {
  display: flex;
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: #111827;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  transition: transform 0.3s;
}

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

.card i {
  font-size: 30px;
  color: #38bdf8;
  margin-bottom: 15px;
}

/* =========================
   SKILLS
   ========================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.skill-box {
  background: #111827;
  padding: 25px;
  border-radius: 12px;
  transition: transform 0.3s;
}

.skill-box:hover {
  transform: translateY(-6px);
}

.skill-box h3 {
  color: #38bdf8;
  margin-bottom: 15px;
}

.skill-box p {
  color: #cbd5e1;
  margin-bottom: 8px;
}

/* =========================
   PROJECTS
   ========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: #111827;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s;
}

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

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  color: #38bdf8;
  margin-bottom: 10px;
}

.project-content p {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 15px;
}

.tech span {
  display: inline-block;
  background: #0b1220;
  color: #38bdf8;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.project-links a {
  margin-right: 15px;
  text-decoration: none;
  color: #a5f3fc;
}

/* =========================
   CERTIFICATES
   ========================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.cert-card {
  background: #111827;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  transition: transform 0.3s;
}

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

.cert-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.cert-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #38bdf8;
}

.cert-card a {
  color: #a5f3fc;
  text-decoration: none;
}

/* =========================
   CONTACT
   ========================= */
.contact-intro {
  max-width: 700px;
  margin-bottom: 40px;
  color: #cbd5e1;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.contact-card {
  background: #111827;
  padding: 30px 20px;
  border-radius: 14px;
  text-align: center;
  color: #e5e7eb;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.contact-card i {
  font-size: 32px;
  color: #38bdf8;
  margin-bottom: 15px;
}

.contact-card h3 {
  margin-bottom: 8px;
  color: #38bdf8;
}

.contact-card p {
  font-size: 14px;
  color: #cbd5e1;
}

.contact-cta {
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(135deg, #020617, #0b1220);
  border-radius: 14px;
  text-align: center;
}

.contact-cta p {
  color: #cbd5e1;
  margin-bottom: 15px;
}

/* =========================
   MOBILE ONLY (PHONES)
   ========================= */
@media (max-width: 600px) {

  .page {
    padding: 90px 16px 40px;
  }

  .navbar {
    padding: 10px 16px;
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
  }

  .nav-links li {
    margin: 4px 8px;
  }

  .social-icons {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 110px 16px 40px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text h2 {
    font-size: 18px;
  }

  .hero-image img {
    width: 150px;
    margin-bottom: 20px;
  }

  .about-cards,
  .skills-grid,
  .projects-grid,
  .cert-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .buttons .btn {
    padding: 12px 18px;
    margin: 8px 4px;
  }
}

/* =========================
   AI BACKGROUND (GLOBAL)
   ========================= */
#ai-bg {
  position: fixed;
  /* 🔑 THIS IS THE FIX */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Dark overlay for readability */
#ai-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left,
      rgba(56, 189, 248, 0.12),
      rgba(11, 15, 25, 0.92) 65%);
}

.hero,
.page,
.navbar {
  position: relative;
  z-index: 2;
}

html,
body {
  min-height: 100%;
}