/* Base */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f8fafc;
  color: #1e293b;
  transition: background 0.3s, color 0.3s;
}

header {
  background: #0f172a;
  color: white;
  padding: 15px;
  text-align: center;
}

header nav a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

header nav a:hover {
  color: #38bdf8;
}

#darkToggle {
  margin-left: 15px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: #38bdf8;
  color: #0f172a;
  cursor: pointer;
}

#darkToggle:hover {
  background: #0ea5e9;
  color: white;
}

/* Hero */
.hero {
  padding: 60px;
  text-align: center;
  background: linear-gradient(to right, #0f172a, #1e40af);
  color: white;
}

.hero span {
  color: #38bdf8;
  font-weight: bold;
}

.hero .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: #38bdf8;
  color: #0f172a;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
}

.hero .btn:hover {
  background: #0ea5e9;
  color: white;
}

/* Profile Picture */
.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #38bdf8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}

/* Sections */
section {
  padding: 30px;
  max-width: 900px;
  margin: auto;
}

.project {
  background: white;
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: background 0.3s, color 0.3s;
}

.project a {
  color: #1d4ed8;
  font-weight: bold;
  text-decoration: none;
}

.project a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #0f172a;
  color: white;
}

/* Dark Mode */
body.dark {
  background: #0f172a;
  color: #f1f5f9;
}

body.dark header {
  background: #1e293b;
}

body.dark .project {
  background: #1e293b;
  color: #f1f5f9;
}

body.dark #darkToggle {
  background: #f1f5f9;
  color: #0f172a;
}
#typing {
  font-size: 24px;
  font-weight: bold;
  color: #38bdf8;
  border-right: 3px solid #38bdf8;
  display: inline-block;
  padding-right: 5px;
  white-space: nowrap;
  overflow: hidden;
}
/* --- Skills Section --- */
#skills {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

#skills h2 {
  color: #007acc;
  font-size: 2rem;
  margin-bottom: 30px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.skill-box {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.skill-box img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.skill-box h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.skill-box p {
  color: #555;
  font-size: 0.95rem;
}

/* --- Responsive design for smaller screens --- */
@media (max-width: 600px) {
  .skill-box img {
    width: 40px;
    height: auto;
  }

  .skill-box h3 {
    font-size: 1rem;
  }

  .skill-box p {
    font-size: 0.85rem;
  }
}
