* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fafafa;
  scroll-behavior: smooth;
}
section {
  padding: 50px 10%;
  text-align: center;
}
h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #222;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

.site-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: black;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #0070f3;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #fff;
  padding: 100px 10%;
}
.hero-content {
  max-width: 500px;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.hero-content h1 span {
  color: #0070f3;
}
.hero-content p {
  margin-bottom: 20px;
  color: #555;
}
.hero-img img {
  width: 350px;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.btn {
  background-color: #0070f3;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn:hover {
  background-color: #005dc1;
}

/* ABOUT */
.what-i-do {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  font-style: italic;
  color: #444;
  line-height: 1.7;
}

.what-i-do h2 {
  font-size: 2rem;
  color: #0070f3;
  margin-bottom: 1.5rem;
  font-style: normal; /* keep heading non-italic */
}

.what-i-do p {
  margin: 0 auto;
  max-width: 700px;
}

.about {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 18px;
  color: #444;
  line-height: 1.7;
}

.about h2 {
  font-size: 2rem;
  color: #0070f3;
  margin-bottom: 1.5rem;
  font-style: normal; /* keep heading non-italic */
}

.about p {
  /* margin: 0 auto; */
  max-width: 1000px;
}

/* SKILLS */
.skills .skill-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}

/* === PROJECTS SECTION (FLIP CARDS WITH ZOOM EFFECT) === */
.projects {
  text-align: center;
  padding: 4rem 2rem;
}

.projects h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Card Container */
.project-card {
  perspective: 1000px;
}

/* Inner Wrapper (handles flipping) */
.card-inner {
  position: relative;
  width: 100%;
  height: 300px;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Flip on hover */
.project-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* FRONT SIDE */
.card-front {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}

/* Add zoom-in effect on hover */
.project-card:hover .card-front {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.card-front img {
  width: 100%;
  height: 75%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Slight image zoom when hovered */
.project-card:hover .card-front img {
  transform: scale(1.1);
}

.card-front h3 {
  margin: 1rem 0;
  color: #333;
  transition: color 0.3s ease;
}

.project-card:hover .card-front h3 {
  color: #0070f3;
}

/* BACK SIDE */
.card-back {
  background-color: #0070f3;
  color: #fff;
  transform: rotateY(180deg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-back h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.card-back p {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 90%;
  text-align: center;
}

/* === EXPERIENCE TIMELINE SECTION === */
.experience {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.experience h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 3rem;
}

/* Timeline container */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 20px;
  border-left: 3px solid #0070f3;
}

/* Timeline item */
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 40px;
}

/* Dots on the timeline */
.timeline-dot {
  position: absolute;
  left: -10px;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background-color: #0070f3;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #0070f3;
}

/* Content box */
.timeline-content {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
  color: #0070f3;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.timeline-date {
  display: block;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.8rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  .timeline {
    border-left: none;
    padding-left: 0;
  }

  .timeline-dot {
    display: none;
  }

  .timeline-content {
    text-align: center;
  }
}



/* === CONTACT SECTION === */
.contact {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #fff;
}

.contact h2 {
  font-size: 2rem;
  color: #0070f3;
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

/* Contact links container */
.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Each contact item */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  background: #f5f9ff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #0070f3;
  color: #fff;
  transform: translateY(-4px);
}

.contact-item img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.contact-item:hover img {
  transform: scale(1.1);
}

.contact-item span {
  font-size: 1rem;
  color: inherit;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 600px) {
  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}


/* FOOTER */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-img img {
    margin-top: 30px;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* === HAMBURGER MENU === */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
  height: 20px;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Menu Hidden by Default */
@media (max-width: 768px) {
  .site-name {
    display: none; /* hide site name on mobile */
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
    padding: 1.5rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;

    /* hide menu initially */
    display: none;
  }

  /* Show menu when active */
  .nav-links.active {
    display: flex;
  }

  /* Animate hamburger icon to X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

