@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text, .about, .skills, .projects, .contact {
  animation: fadeInUp 1s ease forwards;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f9fafc;
  color: #333;
  line-height: 1.6;
}


/* Navbar */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
}

.logo {
  font-weight: 600;
  font-size: 1.5rem;
}
.logo span {
  color: #6c63ff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #6c63ff;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #6c63ff, #a78bfa);
  color: white;
  padding: 100px 5%;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
}
.hero span {
  color: #ffcc70;
}
.btn {
  display: inline-block;
  margin-top: 20px;
  background: white;
  color: #6c63ff;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover {
  background: #ffcc70;
  color: #333;
}

/* Hero Social Links */
.hero .social-links-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-top: 20px; /* distance from "View My Work" button */
}

.hero .social-links-hero .social-thumb {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.hero .social-links-hero .social-thumb img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.hero .social-links-hero .social-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  background: rgba(255, 255, 255, 0.25);
}

/* Responsive - Tablets */
@media (max-width: 768px) {
  .hero .social-links-hero {
    gap: 20px;
    margin-top: 18px;
  }

  .hero .social-links-hero .social-thumb {
    width: 45px;
    height: 45px;
  }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .hero .social-links-hero .social-thumb {
    width: 40px;
    height: 40px;
  }
}

/* About Section */
.about {
  padding: 80px 5%;
  text-align: center;
}

/* Skills */
.skills {
  background: #f0f0ff;
  padding: 80px 5%;
  text-align: center;
}
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.skill {
  background: white;
  border-radius: 25px;
  padding: 10px 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-weight: 500;
}

/* Projects */
.projects {
  padding: 80px 5%;
  text-align: center;
}
.project-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}
.card {
  background: white;
  padding: 25px;
  width: 280px;
  border-radius: 15px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-5px);
}

/* Contact */
.contact {
  background: #6c63ff;
  color: white;
  text-align: center;
  padding: 60px 5%;
}
.contact a {
  color: #ffcc70;
  text-decoration: none;
  font-weight: 500;
}

/* Footer */
footer {
  background: #fff;
  padding: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

/* ========================= */
/* RESPONSIVE DESIGN SECTION */
/* ========================= */

/* For tablets (width ≤ 768px) */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .project-cards {
    flex-direction: column;
    align-items: center;
  }

  .skills-container {
    flex-wrap: wrap;
  }
}


/* For mobile phones (width ≤ 480px) */
@media (max-width: 480px) {
  nav {
    flex-direction: column;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 8px;
  }

  .hero {
    padding: 70px 10px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }

  .about, .skills, .projects, .contact {
    padding: 50px 5%;
  }

  .card {
    width: 90%;
  }

  .skill {
    font-size: 0.9rem;
    padding: 8px 15px;
  }
}


/* Hamburger menu styles */
.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Show menu icon on small screens */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 5%;
    width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }
}


.certificates {
  padding: 80px 5%;
  text-align: center;
  background: #f0f0ff;
}

.cert-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cert-card {
  text-decoration: none;
  color: #333;
  width: 250px;
  flex: 0 0 auto;
}

.cert-thumb {
  width: 100%;  
  height: auto;       /* maintain aspect ratio */
  display: block;     /* remove inline spacing */
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s;
}

.cert-thumb:hover {
  transform: scale(1.05);
}

.cert-card p {
  margin-top: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
}


/* Responsive breakpoints */

  
/* Large screens: prevent huge cards */
@media (min-width: 1025px) {
  .cert-card {
    max-width: 250px;
  }
}

/* Tablets: 768px to 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .cert-card {
    max-width: 200px; /* slightly smaller on tablets */
  }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
  .cert-card {
    max-width: 180px; /* small on mobile */
  }
}






