/* ================= DEFAULT = LIGHT MODE ================= */
:root {
  --primary: #2563eb;
  --primary-light: #3675fc;

  --bg-main: #f8fafc;
  --bg-navbar: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.9),
    rgba(99, 102, 241, 0.9)
  );
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-menu: #ffffff;
  --bg-toggle: rgba(15, 23, 42, 0.08);

  --text-main: #0f172a;
  --text-soft: #475569;
  --text-border: #cbd5e1;

  --shadow-dark: rgba(0, 0, 0, 0.08);
}

/* DARK MODE */
body.dark {
  --bg-main: #0f172a;
  --bg-navbar: rgba(15, 23, 42, 0.85);
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-menu: #1e293b;
  --bg-toggle: rgba(255, 255, 255, 0.12);

  --text-main: #ffffff;
  --text-soft: #cbd5e1;
  --text-border: #475569;

  --shadow-dark: rgba(0, 0, 0, 0.3);
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  transition: all 0.3s ease;
}

/* ================= NAVBAR ================= */
.navbar {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 2%;
  backdrop-filter: blur(18px);
  background: var(--bg-navbar);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ================= LOGO ================= */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
}
.logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #c7d2fe);
}
.logo-text {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  color: #ffffff;
}

/* ================= NAV LINKS (DESKTOP) ================= */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

/* underline */
.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: 0.3s;
}
.nav-links li a:hover::after {
  width: 100%;
}
.nav-links li a:hover {
  color: #e0e7ff;
}

/* ================= ACTIONS ================= */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2000;
}

/* ================= HAMBURGER ================= */
.menu-btn {
  width: 32px;
  height: 24px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.menu-btn span {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 10px;
  transition: 0.35s ease;
}

/* animation */
.menu-btn.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ================= DROPDOWN (DESKTOP) ================= */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-menu);
  padding: 10px 0;
  border-radius: 10px;
  min-width: 250px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px var(--shadow-dark);
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu li {
  list-style: none;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: #0f172a;
}

/* ================= MOBILE ================= */
@media (max-width: 1200px) {
  .menu-btn {
    display: flex;
    z-index: 9999;
  }

  /* 🔥 MAIN MENU (SCROLLABLE + FIXED) */
  .nav-links {
    display: none;
    position: fixed; /* 🔥 important change */
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;

    background: #ffffff;
    border-radius: 20px;

    flex-direction: column;

    /* ✅ SCROLL FIX */
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    /* smooth open */
    animation: menuFade 0.25s ease;

    /* shadow */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);

    z-index: 9998;
  }

  .nav-links.show {
    display: flex;
  }

  /* 🔥 ITEMS */
  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 20px;
    font-size: 16px;
    font-weight: 500;

    color: #0f172a;
    background: #ffffff;

    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.2s;
  }

  .nav-links li a:active {
    background: rgba(0, 0, 0, 0.06);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  /* 🔥 DROPDOWN (push content down) */
  .dropdown-menu {
    position: static !important;
    display: none;
    background: #f1f5f9;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 12px 40px;
    font-size: 14px;
    color: #334155;
    background: #f1f5f9;
  }

  .dropdown-menu li a:active {
    background: rgba(0, 0, 0, 0.05);
  }
}

/* 🔥 SMOOTH ANIMATION */
@keyframes menuFade {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
/* ================= EXTRA SMALL ================= */
@media (max-width: 480px) {
  .logo-text {
    font-size: 14px;
  }
}

.nav-links li a.active {
  /* color: var(--primary); */
  border-bottom: 2px solid var(--primary);
  font-weight: 600;
}

/* 👉 Dropdown parent underline fix */
.dropdown.active > a::after {
  width: 100%;
}
.nav-links li a.active::after {
  width: 100%;
}
.dropdown.active > a {
  color: #ffe0e0;
}

/* Dropdown parent highlight */
.dropdown.active > a {
  color: #e0e7ff;
  font-weight: 600;
}
/* ================= MOBILE ================= */
@media (max-width: 1200px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 90px 5% 40px;
    gap: 30px;
  }
  .left h1 {
    font-size: 38px;
  }
  .desc {
    font-size: 16px;
  }
  .hero-buttons,
  .stats {
    justify-content: center;
  }
  .glass-card {
    max-width: 280px;
    height: 360px;
  }
}
/* ================= EXTRA SMALL ================= */
@media (max-width: 480px) {
  .left h1 {
    font-size: 30px;
  }
  .desc {
    font-size: 14px;
  }
  .btn {
    width: 100%;
    min-width: auto;
  }
  .glass-card {
    max-width: 240px;
    height: 300px;
  }
  .stats {
    gap: 18px;
  }
}
/* ================= HERO ================= */
/* ================= TABLET ================= */
@media (max-width: 992px) {
  .hero {
    gap: 30px;
  }
  .left h1 {
    font-size: 48px;
  }
  .glass-card {
    max-width: 320px;
    height: 420px;
  }
}
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 90px 8%;
  gap: 60px;
  background: linear-gradient(135deg, var(--bg-main), var(--bg-menu));
  color: var(--text-main);
}

.left {
  flex: 1;
}

.right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.tag {
  display: inline-block;
  background: var(--bg-toggle);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 25px;
  border: 1px solid var(--text-border);
}

.hero h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.hero h1 span {
  color: var(--primary);
}

.desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 650px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 35px;
}

.btn {
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.primary {
  background: var(--primary);
  color: var(--text-main);
  /* box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25); */
}

.secondary {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn:hover {
  transform: translateY(-3px);
}

.primary:hover {
  background: var(--primary-light);
}

.secondary:hover {
  background: var(--primary);
  color: var(--text-main);
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  text-align: center;
}

.stats h2 {
  font-size: 40px;
  color: var(--primary);
  font-weight: 700;
}

.stats p {
  color: var(--text-soft);
}

.stat-card {
  background: var(--bg-card);
  padding: 20px 25px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  min-width: 150px;
  text-align: center;
  border: 1px solid var(--text-border);
  box-shadow: 0 8px 20px var(--shadow-dark);
}

.stat-card h2 {
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 6px;
}

.stat-card p {
  color: var(--text-soft);
}

.profile-details {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 16px;
  line-height: 2;
  backdrop-filter: blur(10px);
  border: 1px solid var(--text-border);
  box-shadow: 0 8px 20px var(--shadow-dark);
  color: var(--text-soft);
}

.profile-details strong {
  color: var(--primary);
}

.glass-card {
  width: 380px;
  padding: 20px;
  border-radius: 25px;
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px var(--shadow-dark);
  border: 1px solid var(--text-border);
}

.glass-card img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* ================= TABLET ================= */
@media (max-width: 992px) {
  .hero {
    gap: 30px;
  }

  .left h1 {
    font-size: 48px;
  }

  .glass-card {
    max-width: 320px;
    height: 420px;
  }
}

/* ================= EXTRA SMALL ================= */
@media (max-width: 480px) {
  .logo-text {
    font-size: 15px;
  }

  .left h1 {
    font-size: 30px;
  }

  .desc {
    font-size: 14px;
  }

  .btn {
    width: 100%;
    min-width: auto;
  }

  .glass-card {
    max-width: 240px;
    height: 300px;
  }

  .stats {
    gap: 18px;
  }
}

/* Education Page Here =========================================================================== */

.education-section {
  max-width: 1200px;
  margin: auto;
  margin-top: 10px;
}

.section-title {
  text-align: center;
  font-size: 44px;
  margin-bottom: 60px;
  color: var(--primary);
  font-weight: 700;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
}

.timeline {
  position: relative;
  border-left: 3px solid var(--primary);
  padding-left: 35px;
}
.edu-card {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  border: 1px solid var(--text-border);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px var(--shadow-dark);

  /* 🔥 Animation Initial State */
  opacity: 0;
  transform: translateY(60px);

  transition: all 0.6s ease;
}

/* 🔥 Visible Animation */
.edu-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hover same rakha */
.edu-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.25);
}
.edu-link a,
.edu-pdf a {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #00bcd4;
  text-decoration: none;
  font-weight: 500;
}

.edu-link a:hover,
.edu-pdf a:hover {
  text-decoration: underline;
  color: #fff;
}
.edu-card::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 35px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid white;
}

.edu-image {
  width: 70px;
  min-width: 70px;
  height: 70px;
}

.edu-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 4px;
}

.edu-content {
  flex: 1;
}

.year {
  color: var(--primary-light);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.degree {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.institute {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 10px;
  line-height: 1.6;
}

.details {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .edu-card {
    flex-direction: column;
  }

  .edu-image {
    width: 70px;
    height: 70px;
  }

  .degree {
    font-size: 20px;
  }
}

/* Academic Section Here =========================================================== */
.academic-section {
  padding: 100px 8%;
}

.academic-header {
  text-align: center;
  margin-bottom: 70px;
}

.academic-header .tag {
  color: var(--primary);
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 15px;
}

.academic-header h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}

.academic-header h2 span {
  color: var(--primary);
}

.academic-desc {
  max-width: 700px;
  margin: auto;
  color: var(--text-soft);
  line-height: 1.8;
}

.academic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.academic-card {
  background: var(--bg-card);
  border: 1px solid var(--text-border);
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px var(--shadow-dark);
  transition: 0.3s ease;
}

.academic-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.18);
}

.academic-icon {
  font-size: 40px;
  margin-bottom: 18px;
}

.academic-card h3 {
  font-size: 24px;
  margin-bottom: 18px;
}

.academic-card p {
  color: var(--text-soft);
  margin: 12px 0;
}

.academic-card ul {
  padding-left: 18px;
}

.academic-card ul li {
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .academic-header h2 {
    font-size: 36px;
  }
}
/* #############################33 footer Part Here========================= */
/* ================= FOOTER ================= */
.footer {
  background: var(--bg-navbar);
  color: white;
  padding-top: 50px;
  margin-top: 60px;
  backdrop-filter: blur(15px);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 0 6%;
}

/* Headings */
.footer h2 {
  font-size: 22px;
  margin-bottom: 15px;
}

.footer h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

/* Text */
.footer p {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.7;
}

/* Links */
.footer-links a {
  display: block;
  text-decoration: none;
  color: #e2e8f0;
  margin-bottom: 8px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  font-size: 13px;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: underline;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links a:hover {
    transform: none;
  }
}

/* ===== Loader part here ==================== */

/* ================= LOADER ================= */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--text-border);
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* theme wala part here day or night mode */
/* THEME TOGGLE BUTTON */
.theme-toggle {
  font-size: 20px;
  cursor: pointer;
  background: var(--bg-toggle);
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.3s;
  user-select: none;
}

.theme-toggle:hover {
  transform: scale(1.1);
}
