* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.7;
}

header {
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #ffde59;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-section {
  background: linear-gradient(135deg, #00b4db, #0083b0);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 5px solid #fff;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

.hero-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-section h2 span {
  color: #ffe94a;
}

.hero-section p {
  font-size: 18px;
  opacity: 0.95;
}

.section {
  padding: 80px 10%;
  background-color: #fff;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
  position: relative;
}

.section h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #00bcd4;
  display: block;
  margin: 8px auto 0;
  border-radius: 4px;
}

#about p {
  margin-bottom: 15px;
  text-align: justify;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

.skills-list li {
  background: #e0f7fa;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: #00796b;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.skills-list li:hover {
  background: #00bcd4;
  color: #fff;
  transform: translateY(-3px);
}

.project {
  background: #f1f1f1;
  padding: 20px 25px;
  border-left: 5px solid #00bcd4;
  border-radius: 5px;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

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

.project h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0077b6;
}

.project p {
  font-size: 16px;
  text-align: justify;
}

#contact p {
  font-size: 17px;
  margin-bottom: 10px;
  text-align: center;
}

#contact a {
  color: #00bcd4;
  text-decoration: none;
  font-weight: 600;
}

#contact a:hover {
  text-decoration: underline;
}

footer {
  background: #1f1c2c;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section h2 {
    font-size: 26px;
  }
}
