* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f4f6f9;
  color: #333;
  line-height: 1.6;
}

header {
  background: #4b6cb7;
  background: linear-gradient(to right, #4b6cb7, #182848);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
    display: flex;
    flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #ffd700;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.section {
  padding: 4rem 2rem;
  text-align: center;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card a {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #4b6cb7;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

.card a:hover {
  background-color: #182848;
}


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

footer {
  background: #182848;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #182848;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
body.dark {
  background-color: #1e1e2f;
  color: #f1f1f1;
}

body.dark header,
body.dark footer {
  background: #111;
}

body.dark .card {
  background-color: #2c2c3e;
  color: #f1f1f1;
  box-shadow: 0 4px 8px rgba(255,255,255,0.05);
}

body.dark .nav-links li a {
  color: #f1f1f1;
}

body.dark .nav-links li a:hover {
  color: #ffd700;
}

#darkModeToggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  margin-left: 1rem;
}
body.dark .skills-container {
  background-color: #2c2c3e;
  color: #f1f1f1;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.05);
}

body.dark .skills-container h2,
body.dark .skills-container p,
body.dark .skill-name {
  color: #f1f1f1;
}

body.dark .skill-bar {
  background-color: #555;
}

body.dark .skill-fill {
  background-color: #f1f1f1;
  color: #2c2c3e;
}

body.dark #skills-section {
  background-color: #2c2c3e;
  background-image: none
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.about-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
