html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f4f4f9;
  color: #333;
}

header {
  background: #4CAF50;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

header .highlight {
  color: yellow;
}

nav {
  display: flex;
  justify-content: center;
  background: #333;
}

nav a {
  color: white;
  padding: 1rem;
  text-decoration: none;
}

nav a:hover {
  background: #4CAF50;
}

section {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #333;
  color: white;
  margin-top: 2rem;
}
.about-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 1rem;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #4CAF50;
  object-fit: cover;
}
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}

.project-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease-in-out;
}

.project-card:hover {
  transform: translateY(-5px);
}
.about-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.about-container {
  text-align: center;
  padding: 40px;
  max-width: 700px;
  margin: auto;
}

#projects {
  padding: 50px;
  background: #fff;
  text-align: center;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.project-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.project-card p {
  color: #666;
}

/* Skills Section */
#skills {
  padding: 50px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

#skills h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.skill {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.skill:hover {
  transform: translateY(-5px);
}

.skill h3 {
  color: #007bff;
  margin-bottom: 10px;
}

.skill p {
  color: #555;
  font-size: 0.95rem;
}
#skills {
  padding: 50px;
  background: #f9f9f9;
  text-align: center;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.skill-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #333;
}

.skill-card p {
  color: #666;
}
/* Project Link Styles */
.project-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #0077b6;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.project-link:hover {
  background: #023e8a;
}
.project-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease-in-out;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-thumb {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.project-link:hover {
  background: #0056b3;
}

.project-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.project-thumb:hover {
  transform: scale(1.05);
}

/* Contact Section */
#contact {
  padding: 50px 20px;
  text-align: center;
  background: #f5f5f5;
}

#contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 1.1rem;
  margin: 10px 0;
}

.contact-info a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}
.contact-info i {
  color: #0077b5; /* blue for LinkedIn */
  margin-right: 10px;
}

.contact-info a {
  color: #333;
  text-decoration: none;
}

.contact-info a:hover {
  color: #0077b5; /* hover effect */
}
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 2rem;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00bcd4; /* light blue hover effect */
}
/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets (screens ≤ 768px) */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }

  .skills-container {
    flex-direction: column;
    align-items: center;
  }

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

/* Phones (screens ≤ 480px) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .project-card, .skill-card {
    width: 100%;
    margin: 0.5rem 0;
  }

  footer {
    font-size: 0.8rem;
  }
}

/* Default nav (desktop) */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #333;
  color: white;
}

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

.nav-links li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00bcd4;
}

/* Hamburger icon (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile view */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #333;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }

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

  .hamburger {
    display: flex;
  }
}

footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: #ccc;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00bcd4;
}
#backToTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #00bcd4;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 1000;                /* make sure it's on top */
  opacity: 0;                   /* hidden by default */
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .3s ease;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover { background: #0097a7; }
html {
  scroll-behavior: smooth;
}


