/* ---------- Base ---------- */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  line-height: 1.6;
  transition: background 0.5s, color 0.5s;
  
  /* Animated gradient background */
  background: linear-gradient(-45deg, #e0e0f0, #d0f0e0, #f0e0d0, #e0d0f0);
  background-size: 400% 400%;
  animation: gradientBG 18s ease infinite;
}

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

/* Dark Mode background */
body.dark-theme {
  background: linear-gradient(-45deg, #0f0f1a, #1a1f2f, #222833, #141414);
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  color: #eee;
}
body.dark-theme a {
  color: #90caf9;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(34, 34, 34, 0.9);
  color: #fff;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.site-title {
  font-weight: 700;
  font-size: 20px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-links li {
  margin: 0 10px;
  position: relative;
}

.nav-links a,
#theme-toggle {
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  padding: 5px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-links a:hover,
#theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Submenu */
.submenu ul {
  display: none;
  position: absolute;
  background: #333;
  top: 100%;
  left: 0;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 4px;
  min-width: 140px;
}
.submenu:hover ul {
  display: block;
}
.submenu ul li {
  margin: 0;
}
.submenu ul li a {
  display: block;
  padding: 8px 15px;
  color: #fff;
}
.submenu ul li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- Content Layout ---------- */
.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

body.dark-theme .content {
  background: rgba(18, 18, 18, 0.85);
  color: #eee;
}

/* Two-column layout for About */
.two-column {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.two-column .left {
  flex: 1 1 60%;
}

.two-column .right {
  flex: 1 1 35%;
  text-align: center;
}

.profile-pic {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #444;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ---------- Sections ---------- */
section {
  margin-bottom: 50px;
}

section h2 {
  font-size: 25px;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

ul {
  padding-left: 20px;
}

/* ---------- Footer ---------- */
footer {
  background: rgba(34,34,34,0.9);
  color: #ccc;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  font-size: 18px;
  border-radius: 8px 8px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .two-column {
    flex-direction: column;
    text-align: center;
  }
  .two-column .left,
  .two-column .right {
    flex: 1 1 100%;
  }
  .profile-pic {
    width: 180px;
    height: 180px;
  }
  .nav-links {
    flex-direction: column;
    background: rgba(34,34,34,0.95);
    padding: 10px 0;
  }
  .nav-links li {
    margin: 5px 0;
  }
}
