/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8fafc;
  color: #1f2937;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

body.dark {
  background-color: #111827;
  color:  #979799;
}

/* Navbar */
.navbar {
  background-color: #1e293b;
  padding: 1rem 2rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav-links a, .nav-links button {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links a:hover, .nav-links button:hover {
  color: #38bdf8;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  align-items: center;
  padding: 3rem 1.5rem;
  background: #e0f2fe;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }
}

.hero-text {
  max-width: 600px;
}

.hero-text h2 {
  font-size: 2.5rem;
  color: #0f172a;
  margin-bottom: 1rem;
}

.profile-img {
  width: 200px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1e293b;
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

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

.project {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

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

.project img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

/* Skills */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skills-list li {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background-color: #1e3a8a;
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
}

/* Resume & Contact */
.btn {
  display: inline-block;
  background-color: #2563eb;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  margin-top: 1rem;
}

.btn:hover {
  background-color: #1d4ed8;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  gap: 1rem;
  margin-top: 1rem;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
}

.social-icons {
  margin-top: 1.5rem;
}

.social-icons a {
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  color: #1e40af;
}

footer {
  background-color: #1e293b;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 4rem;
}

/* Dark Mode Specific */
body.dark .navbar,
body.dark footer {
  background: #0f172a;
}

body.dark .btn {
  background: #facc15;
  color: #111827;
}

body.dark .skills-list li {
  background: #facc15;
  color: #1e293b;
}

body.dark .project {
  background: #1e293b;
  color: #f9fafb;
}

body.dark input,
body.dark textarea {
  background: #1f2937;
  color: #f9fafb;
  border: 1px solid #4b5563;
}
