html{
    scroll-behavior: smooth;
}

body,
.navbar,
.intro-about,
.intro-edu,
.intro-future,
.project-card,
.nav-links a {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body {
    background: linear-gradient(180deg, #DCEDFF 0%, #f7fbff 60%, #DCEDFF 100%);
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.container{
    padding: 0 20px;
}

.intro-name{
    display: flex;
    font-size: 48px;
    font-family: "Momo Trust Display", sans-serif;
    align-items: center;
    height: 100vh;
    justify-content: center;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #0b2a5b, #4f7fd8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-about,
.intro-edu,
.intro-future{
    max-width: 1500px;
    margin: 40px auto;
    border-radius: 12px;
    padding: 28px;
    background: rgba(255,255,255,0.65);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.12);
    backdrop-filter: blur(6px);
    font-size: 18px;
}

.intro-about h2,
.intro-edu h2,
.intro-future h2,
.intro-projects h2{
    font-family: "Oswald", sans-serif;
    margin-bottom: 10px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: #94B0DA;
    position: static;
    top: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.logo {
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 10px;
    transition: 0.2s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.45);
}

.intro-projects {
    max-width: 1500px;
    margin: 50px auto;
    padding: 15px;
}

.projects-grid {
    display: flex;
    gap: 20px;
}

.project-card {
    flex: 1;
    background: #94B0DA;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.25s, box-shadow 0.25s;
}

.project-card h3{
    margin-top: 0;
    font-family: "Oswald", sans-serif;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}
.intro-about,
.intro-edu,
.intro-future,
.intro-projects {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.intro-edu { animation-delay: 0.2s; }
.intro-future { animation-delay: 0.4s; }
.intro-projects { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #0b2a5b;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.intro-about:hover,
.intro-edu:hover,
.intro-future:hover {
  transform: translateY(-4px);
  transition: 0.25s;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.footer{
  max-width: 1500px;
  margin: 60px auto 30px;
  text-align: center;
  opacity: 0.75;
  font-size: 14px;
}

.intro-about,
.intro-edu,
.intro-future{
  transition: transform 0.25s, box-shadow 0.25s;
}

.intro-about:hover,
.intro-edu:hover,
.intro-future:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.14);
}

.theme-toggle{
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: 0.2s;
}

.theme-toggle:hover{
  background: rgba(255,255,255,0.45);
}
.theme-toggle:active{
  transform: scale(0.95);
}
.theme-toggle:hover{
  transform: translateY(-2px);
}

body.dark{
  background: linear-gradient(180deg, #0b1220 0%, #0f1b2e 60%, #0b1220 100%);
  color: rgba(255,255,255,0.9);
}

body.dark .navbar{
  background: rgba(20, 35, 60, 0.75);
}

body.dark .nav-links a{
  color: rgba(255,255,255,0.9);
}

body.dark .nav-links a:hover{
  background: rgba(255,255,255,0.10);
}

body.dark .intro-about,
body.dark .intro-edu,
body.dark .intro-future{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

body.dark .project-card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.nav-links li{
  display: flex;
  align-items: center;
}

.resume{
  color: black  ;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {

  /* NAVBAR */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
  }

  /* NAME SECTION */
  .intro-name {
    font-size: 32px;
    height: 60vh;
    text-align: center;
  }

  /* TEXT SECTIONS */
  .intro-about,
  .intro-edu,
  .intro-future {
    padding: 18px;
    font-size: 16px;
  }

  /* PROJECTS */
 .projects-grid {
  flex-direction: column;
  align-items: center; /* ADD THIS */
}

.project-card {
  width: 100%;
  max-width: 400px; /* ADD THIS */
}

  /* GENERAL SPACING */
  .container {
    padding: 0 12px;
  }

  /* FOOTER */
  .footer {
    font-size: 12px;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {

  .navbar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 10px;

    /* makes it lighter instead of chunky */
    background: rgba(148, 176, 218, 0.9);
    backdrop-filter: blur(8px);
  }

  .logo {
    font-size: 20px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 14px;
  }

  .theme-toggle {
    padding: 6px 10px;
  }
}