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

body {
  color: #222;
  background-color: #f9f9f9;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

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

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(120deg, #007bff, #00bcd4);
  color: white;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem;
}

.hero-portrait {
  width: 180px;
  height: 180px;
  max-width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.hero-content h1 {
  font-size: 2.4rem;
}

.hero-content p {
  font-size: 1.05rem;
  margin: 0.8rem 0 1.2rem 0;
}

.btn {
  background-color: white;
  color: #007bff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background-color: #007bff;
  color: white;
}

/* About Section */
.about, .projects, .contact {
  padding: 5rem 10%;
  text-align: center;
}

.about h2, .projects h2, .contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #007bff;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

/* Contact Form */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.contact input, .contact textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  resize: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.2rem;
  background: #007bff;
  color: white;
  margin-top: 3rem;
}

/* Contact details in About */
.contact-details {
  margin-top: 1rem;
  color: #333;
  display: inline-block;
  text-align: left;
}
.contact-details p {
  margin: 0.25rem 0;
}

/* Experience */
.experience, .skills {
  padding: 3rem 10%;
  background: #fff;
  color: #222;
}
.experience-card {
  max-width: 900px;
  margin: 0.5rem auto;
  text-align: left;
}
.experience-card ul {
  margin-top: 0.5rem;
  list-style: disc;
  margin-left: 1.2rem;
}

/* Skills list */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}
.skill-list span {
  background: #f1f7ff;
  color: #007bff;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Responsive hero layout */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-portrait {
    width: 140px;
    height: 140px;
  }
}
