/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a {
  color: #ff7b00;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #e56d00;
  text-decoration: underline;
}

h1, h2, h3 {
  margin: 0.5em 0;
}

/* Content Box */
.content-box {
  background-color: #fff;
  border: 2px solid #ff7b00;
  border-radius: 10px;
  padding: 30px;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Header & Navbar */
header {
  background-color: #ff7b00;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.logo h2 {
  margin: 0;
  font-size: 1.6rem;
}

.logo p {
  margin: 0;
  font-style: italic;
  font-size: 0.9rem;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.navbar a {
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s, border-bottom 0.3s;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}

.navbar a.active,
.navbar a:hover {
  border-bottom: 2px solid #fff;
  background-color: #ff6600;
  color: #fff;
}

/* Main Content */
main {
  padding: 40px;
}

/* Home Section */
.home-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.home-intro img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ff7b00;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-intro img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.intro-text {
  flex: 1;
  min-width: 250px;
}

.intro-text p {
  margin-bottom: 10px;
  line-height: 1.7;
}

.tagline {
  font-size: 1.2rem;
  font-style: italic;
  color: #ff7b00;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #fff;
  border: 2px solid #ff7b00;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 280px;
  text-align: left;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card h3 {
  margin-top: 0;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #ff6600;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #e65c00;
}

.btn.secondary {
  background-color: #fff;
  color: #ff7b00;
  border: 2px solid #ff7b00;
}

.btn.secondary:hover {
  background-color: #ff7b00;
  color: #fff;
}

/* Skills */
.skills {
  list-style: disc;
  padding-left: 20px;
}

.skills li {
  margin-bottom: 8px;
}

/* Soft Skills Rounded Box */
.soft-skill-box {
  background-color: #fff3e0;
  border: 2px solid #ff6600;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.soft-skill-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.soft-skill-box ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.soft-skill-box li {
  background-color: #fff3e0;
  border: 1px solid #ffa726;
  color: #333;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.soft-skill-box li:hover {
  background-color: #ffa726;
  color: white;
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 25px;
  border-radius: 10px;
  width: 60%;
  position: relative;
  border: 2px solid #ff7b00;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #333;
  font-size: 24px;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 900px) {
  .home-intro {
    flex-direction: column;
    text-align: center;
  }

  .home-intro img {
    width: 160px;
    height: 160px;
  }

  .intro-text {
    text-align: center;
  }

  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }

  .modal-content {
    width: 90%;
  }
}
