/* ========== Global Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* ========== Base Styles ========== */
body {
  font-size: 18px;
  line-height: 1.7;
  background: #0f172a;
  color: #e2e8f0;
}

/* ========== Typography ========== */
h1 {
  font-size: 3rem; /* ~48px */
  font-weight: 800;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.2rem; /* ~36px */
  font-weight: 700;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.6rem; /* ~26px */
  font-weight: 600;
  margin-bottom: 10px;
}

p,
li,
a {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ========== Header & Navigation ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 30px;
  background: #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  color: #00ff99;
  font-weight: 800;
  font-size: 1.4rem;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
  color: #00ff99;
  transform: scale(1.1);
}

.active {
  color: #00ff99;
  border-bottom: 2px solid #00ff99;
}

/* Dark Mode Toggle */
#darkModeToggle {
  position: fixed;
  top: 15px;
  right: 20px;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
  color: #e2e8f0;
  transition: transform 0.3s ease;
}
#darkModeToggle:hover {
  transform: rotate(20deg) scale(1.2);
}

/* ========== Sections ========== */
section {
  min-height: 100vh;
  padding: 100px 20px;
  text-align: center;
  scroll-margin-top: 80px; /* prevent navbar overlap */
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.highlight {
  color: #00ff99;
}

/* ========== About Section Split ========== */
.about-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.about-left,
.about-right {
  flex: 1;
  font-size: 1.3rem;
  line-height: 1.8;
}

.about-left p {
  font-size: 1.4rem;
  font-weight: 500;
}

.about-right ul li {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* ========== Skills List ========== */
.skills-list {
  list-style: none;
}

.skills-list li {
  background: #1e293b;
  margin: 10px auto;
  padding: 12px 20px;
  width: fit-content;
  border-radius: 8px;
}

/* ========== Projects ========== */
.project-card {
  background: #1e293b;
  padding: 20px;
  margin: 15px auto;
  border-radius: 10px;
  max-width: 500px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ========== Contact Section ========== */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 40px auto;
}

.contact-card {
  background: #1e293b;
  padding: 28px 22px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.contact-card h3 {
  margin-bottom: 10px;
  color: #00ff99;
  font-size: 1.4rem;
}

.contact-card a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 1.15rem;
  transition: color 0.2s ease;
  word-break: break-word;
  display: inline-block;
  max-width: 100%;
}

.contact-card a:hover {
  color: #00ff99;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* ========== Dark Mode ========== */
.dark-mode {
  background: #f8fafc;
  color: #0f172a;
}

.dark-mode header {
  background: #e2e8f0;
}

.dark-mode nav ul li a {
  color: #0f172a;
}

.dark-mode .active {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
}

.dark-mode .skills-list li,
.dark-mode .project-card,
.dark-mode .contact-card {
  background: #e2e8f0;
  color: #0f172a;
}

.dark-mode .project-card h3,
.dark-mode .skills-list li,
.dark-mode .contact-card a {
  color: #0f172a;
}

.dark-mode .contact-card a:hover {
  color: #2563eb;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  nav ul li a {
    font-size: 1rem;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-left,
  .about-right {
    font-size: 1.1rem;
  }
}

/* ========== Background Animations ========== */
#gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #0f172a, #1e293b, #0d9488, #00ff99);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  z-index: -3;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.wave-container {
  position: relative;
  bottom: -5px;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: -1;
}

.wave-container svg {
  display: block;
  width: 100%;
  height: 120px;
}
