/* Reset & Font Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #2e2e2e;
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
nav {
  background-color: #1f2a38;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #f1c40f;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #f1c40f;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1f2a38, #3b4c5c);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #f1c40f;
  color: #000;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.button:hover {
  background-color: #d4ac0d;
  transform: translateY(-3px);
}

/* General Section Styling */
section {
  padding: 4rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

#skills {
  padding: 3rem 2rem;
  background-color: #fff;
  color: #2c3e50;
  max-width: 960px;
  margin: auto;
}

#skills h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #111;
  font-weight: bold;
}

.skills-category {
  margin-bottom: 2.5rem;
}

.skills-category h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #f39c12;
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 0.5rem 1rem;
}

.skills-grid div {
  background: #f8f8f8;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease;
}

.skills-grid div i {
  font-size: 1.3rem;
  color: #f39c12;
}

.skills-grid div:hover {
  transform: translateY(-3px);
  background-color: #fef9f2;
}


/* About Section */
#about p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  font-size: 1.1rem;
}

.skills-grid i {
  margin-right: 0.5rem;
  color: #f1c40f;
}

/* Projects */
.project {
  background-color: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Projects */
.selflearning {
  background-color: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
}

.selflearning:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.selflearning h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Contact Icons */
.contact-icons {
  margin-top: 1.5rem;  
}

/* Individual contact items */
.contact-icons p {
  margin-bottom: 0.8rem;      
  font-size: 16px;
  color: #1f2a38;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Hover animation on contact row */
.contact-icons p:hover {
  transform: translateX(5px);
}

/* Icon styling */
.contact-icons i {
  margin-right: 0.75rem;
  color: #1f2a38;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

/* Icon color on hover */
.contact-icons p:hover i {
  color: #f1c40f;
}

/* Link styles inside contact */
.contact-icons a {
  color: #1f2a38;
  font-weight: 500;
  text-decoration: none;
}

/* Link hover underline */
.contact-icons a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #1f2a38;
  color: #ccc;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
