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

h1, h2, h3, h4 {
  margin-top: 0;
}

/* ================================
   Header & Navigation
================================ */
header {
  background: #222;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}

header.scrolled {
  background: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f4b400;
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s, border-bottom 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f4b400;
  border-bottom: 2px solid #f4b400;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

/* ================================
   Hero Sections (Home, Contact, etc.)
================================ */
.hero, 
.contact-hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(to right, #f4b400, #ffdd57);
  color: #fff;
}

.hero h1, 
.contact-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p, 
.contact-hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ================================
   About Page
================================ */
.content {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
  text-align: center;
}

.content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: justify;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

ul li i {
  margin-right: 10px;
  color: #f4b400;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.skill {
  background: #f4b400;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
}

.skills-title {
  margin-top: 2rem;
  font-size: 1.8rem;
  color: #333;
}

/* ================================
   Projects Page
================================ */
.projects {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.projects h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #222;
}

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

.project {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project h3 {
  margin-top: 0;
  color: #f4b400;
}

.project p {
  font-size: 1rem;
  margin: 1rem 0;
}

.project a {
  display: inline-block;
  color: #f4b400;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.project a:hover {
  color: #222;
}

/* ================================
   Certificates Page
================================ */
.certificates {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.certificates h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #222;
}

.certificate-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.certificate {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.certificate:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.certificate h3 {
  margin-top: 0;
  color: #f4b400;
}

.certificate p {
  font-size: 1rem;
  margin: 1rem 0;
}

/* ================================
   Contact Page
================================ */
.contact {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #222;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.contact-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #f4b400;
}

.contact-item h3 {
  margin: 0.5rem 0;
  color: #222;
}

.contact-item p, 
.contact-item a {
  color: #555;
  font-size: 1rem;
  text-decoration: none;
}

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

/* ================================
   Responsive Styles
================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #222;
    width: 200px;
    border-radius: 8px;
    padding: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1, 
  .contact-hero h2 {
    font-size: 1.8rem;
  }

  .hero p, 
  .contact-hero p {
    font-size: 1rem;
  }

  .content h2,
  .projects h2,
  .certificates h2,
  .contact h2 {
    font-size: 2rem;
  }
}
