/* =============== GLOBAL =============== */
html {
  scroll-behavior: smooth;
  cursor: default;
}

body {
  margin: 0;
  padding-top: 60px;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #d7f0f8, #fce2f0, #e0f7e7, #f9f6d9);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #111827;
}

/* Background animation */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fade-up animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section underline animation */
@keyframes lineExpand {
  to {
    transform: scaleX(1);
  }
}

/* Project cards entrance */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.navbar {
  min-height: 60px;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 60px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

.navbar ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0 40px 0 0;
}

.navbar ul li a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 5px 0;
}

.navbar ul li a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%; height: 2px;
  background-color: #0077ff;
  transition: width 0.4s ease;
}

.navbar ul li a:hover {
  color: #0077ff;
}

.navbar ul li a:hover::after {
  width: 100%;
}

/* =============================== */
/* 🌙 NAVBAR THEME TOGGLE BUTTON */
/* =============================== */

.navbar ul li button.theme-toggle {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(8px);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
  margin-left: 10px;
}

.navbar ul li button.theme-toggle:hover {
  transform: scale(1.12);
  background: rgba(255,255,255,0.7);
}

.theme-toggle {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.8);
}

.toggle-icon {
  font-size: 18px;
  color: #2d2d2d;
}

/* =============================== */
/* 🌑 DARK MODE OVERRIDES */
/* =============================== */

body.dark-mode {
  background: #0f172a !important;
  color: #f1f5f9 !important;
}

body.dark-mode .navbar {
  background-color: rgba(15,23,42,0.85);
}

body.dark-mode .navbar ul li a {
  color: #f1f5f9 !important;
}

body.dark-mode .about-info,
body.dark-mode .skills-box,
body.dark-mode .project-card {
  background: rgba(255,255,255,0.05) !important;
  color: #f1f5f9 !important;
}

body.dark-mode .footer {
  background: #0b1120 !important;
}

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

.profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 60px 60px;
  background: rgba(0, 0, 0, 0.03);
  perspective: 1000px;
}

.profile-img img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
  border: 1px solid rgba(255,255,255,0.2);
  transition: 0.6s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.profile-info h1 {
  font-size: 48px;
  margin: 0;
  background: linear-gradient(250deg, #000, #1a1a2e, #3a0ca3);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 1s ease forwards;
}

.profile-info h2 {
  font-size: 22px;
  font-weight: 700;
  padding: 12px 26px;
  margin-top: 10px;

  /* GLASS */
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(16px);
  border-radius: 16px;

  /* GRADIENT TEXT */
  background-image: linear-gradient(90deg, #0077ff, #8b5cf6, #ec4899);
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Stronger depth */
  box-shadow: 
      0 6px 20px rgba(0,0,0,0.25),
      inset 0 0 25px rgba(255,255,255,0.25);

  transform: translateZ(20px);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Hover effect 3D lift */
.profile-info h2:hover {
  transform: translateZ(45px) scale(1.06);
  box-shadow:
      0 12px 35px rgba(0,0,0,0.35),
      inset 0 0 30px rgba(255,255,255,0.35);
}

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

.About {
  padding: 50px 12%;
  text-align: left;
}

.About h1 {
  font-size: 2.4rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  color: #222;
}

.About h1::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #0077ff, #ff7eb3);
  bottom: -10px; left: 20%;
}

.about-info {
  margin-top: 20px;
  padding: 40px;
  border-radius: 20px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  line-height: 1.7;
  font-size: 1.1rem;
}

.about-info strong {
  color: #0077ff;
}
.about-info b {
  color: #ff4f81;
}

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

/* =============== PROJECTS (Original Clean Style) =============== */

.projects {
  padding: 50px 12%;
}

.section-title {
  font-size: 2.2rem;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 3px;
  left: 20%;
  bottom: -10px;
  background: linear-gradient(90deg, #0077ff, #ff4f81);
}

/* Simple horizontal scrolling area (NO 3D, NO glass, NO custom scrollbar) */
.my-projects {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;   /* hide scrollbar on Firefox */
}

.my-projects::-webkit-scrollbar {
  display: none;  /* hide scrollbar on Chrome */
}

/* Basic clean project card (NO 3D) */
.project-card {
  min-width: 280px;
  max-width: 300px;
  height: 420px;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.project-img img {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  object-fit: cover;
}

.project-details h3 {
  margin: 10px 0;
  color: #222;
  font-size: 1.3rem;
  font-weight: 600;
}

.project-details p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.project-details .tech {
  margin-top: 8px;
  font-weight: 600;
  background: linear-gradient(250deg, #1554d1, #4f9ce4, #de39c6);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}



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

.skills {
  padding: 50px 12%;
  text-align: center;
}

.skills-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 25px;
}

.skills-box {
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.12);
}

.skill-card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s;
}

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

.skill-card img {
  width: 50px;
  height: 50px;
}

.skill-card p {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}

/* =============== FOOTER =============== */

.footer {
  margin: 50px 150px 10px 150px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 40px;
  border-radius: 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li a {
  color: #ccc;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #00b4ff;
}

.social-icons a {
  color: white;
  margin-right: 15px;
  font-size: 22px;
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 12px;
  text-align: center;
}

/* Center the scroll menu */
.scrollmenu {
  width: fit-content;
  margin: 0 auto 25px auto !important;
  padding: 10px 24px;
  border-radius: 14px;

  /* 3D glass effect */
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.45);

  /* shadow */
  box-shadow:
      0 8px 20px rgba(0,0,0,0.12),
      inset 0 0 12px rgba(255,255,255,0.25);

  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

/* Hover 3D lift */
.scrollmenu:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
      0 12px 28px rgba(0,0,0,0.25),
      inset 0 0 16px rgba(255,255,255,0.35);
}

/* Text & arrow styling */
.scrollmenu span {
  font-size: 1.1rem;
  background: linear-gradient(90deg, #0077ff, #8b5cf6, #ec4899);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scrollmenu i {
  font-size: 1.2rem;
  color: #0077ff;
  transition: 0.3s ease;
}

.scrollmenu:hover i {
  transform: translateX(4px);
}

/* ================= MOBILE RESPONSIVE FIXES ================= */
@media (max-width: 768px) {

  body {
    padding-top: 20px !important;
  }

  .navbar {
    min-height: auto;
    padding: 10px 15px;
    justify-content: center;
  }

  .navbar ul {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }

  /* Hide toggle on very small nav */
  .theme-toggle,
  .navbar ul li button.theme-toggle {
    display: none !important;
  }

  .profile {
    flex-direction: column;
    padding: 28px 15px !important;
    gap: 20px !important;
    text-align: center;
  }

  .profile-img {
    width: 150px !important;
    height: 150px !important;
    margin: 0 auto;
  }

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

  .profile-info h1 {
    font-size: 2rem !important;
    margin-top: 0;
  }

  .profile-info h2 {
    font-size: 1rem !important;
    padding: 8px 12px !important;
    margin-top: 5px !important;
  }

  .About {
    padding: 35px 8%;
  }

  .about-info {
    padding: 30px;
  }

  .projects-scroll-wrapper::after {
    width: 90%;
  }

  .my-projects {
    width: 90%;
    gap: 18px;
    padding: 15px 5px 8px 5px;
  }

  .project-card {
    min-width: 230px;
    max-width: 240px;
    height: auto;
  }

  .skills {
    padding: 35px 8%;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 18px;
  }

  .footer {
    margin: 25px 12px 10px 12px;
    padding: 28px 12px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* ================= SMALLER PHONES ================= */
@media (max-width: 480px) {

  .profile-img {
    width: 130px !important;
    height: 130px !important;
  }

  .profile-info h1 {
    font-size: 1.6rem !important;
  }

  .profile-info h2 {
    font-size: 0.9rem !important;
  }

  .project-card {
    min-width: 200px;
  }
}
