/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #f8f9fa;
  color: #2c3e50;
}
a {
  transition: color 0.3s ease;
}
a:hover {
  color: #ff6600;
}

/* Header & Navigation */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
nav h1 {
  font-size: 1.5rem;
  color: #ff6600;
}
nav ul {
  display: flex;
  list-style: none;
}
nav ul li {
  margin-left: 1.5rem;
}
nav ul li a, .btn {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

/* Button */
.btn {
  background: #ff6600;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 5px;
}
.btn:hover {
  background: #e55b00;
}

/* Hero Section with Gradient and Shape Overlay */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.1;
}
.hero::before {
  width: 250px;
  height: 250px;
  background: #ff6600;
  top: -50px;
  left: -60px;
}
.hero::after {
  width: 300px;
  height: 300px;
  background: #ff6600;
  bottom: -80px;
  right: -80px;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-img {
  width: 140px;         /* Reduce from 160px to 120px */
  height: 140px;         /* Keeps aspect ratio */
  border-radius:50%;   /* Makes it circular */
  margin-bottom: 1rem;
  border: 3px solid #f2f8f8;
  object-fit: cover;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.hero h3 {
  font-size: 1.2rem;
  color: #555;
}

/* Section Styling */
.about, .skills, .projects, .contact {
  padding: 3rem 2rem;
  max-width: 800px;
  margin: auto;
}
.about h2, .skills h2, .projects h2, .contact h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ff6600;
}

/* Skills */
.skills ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
  padding-left: 0;
}
.skills li {
  background-color: #eee;
  padding: 8px 12px;
  border-radius: 20px;
  list-style: none;
  font-weight: 500;
}

/* Projects */
.project-card {
  background: #f4f4f4;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  border-left: 4px solid #ff6600;
  border-radius: 5px;
}
.project-card h3 {
  margin-bottom: 0.5rem;
}

/* Contact */
.contact p {
  margin: 0.5rem 0;
}
.contact a {
  color: #ff6600;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #222;
  color: #fff;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
  }
  nav ul li {
    margin-left: 0;
    margin-bottom: 0.5rem;
  }
  .skills ul {
    justify-content: flex-start;
  }
}
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .hero-img {
    width: 120px; /* smaller profile picture on mobile */
  }

  .project-card {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  h2, h3 {
    font-size: 1.2rem;
  }

  nav ul li {
    margin-left: 0;
    margin-bottom: 0.5rem;
  }
}
