@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --bg: #ffffff;
  --text: #444444;
  --primary: #52caba;
  --card-bg: #f9f9f9;
  --line-color: #ddd;
}

body {
  background: var(--bg);
  color: var(--text);
  transition: .3s;
}

/* DARK MODE */
body.dark-mode {
  --bg: #111111;
  --text: #e1e1e1;
  --card-bg: #1c1c1c;
  --line-color: #444;
}

/* BUTTONS */
.btn {
  padding: 10px 25px;
  border: none;
  font-size: 20px;
  border-radius: 52px;
  background: #f2f2f2;
  cursor: pointer;
  transition: .3s;
}

.btn:hover {
  background: var(--primary);
  color: #fff;
}

/* NAVBAR */
nav {
  position: fixed;
  width: 100%;
  height: 90px;
  font-size: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 9vw;
  background: var(--bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
  z-index: 100;
}

.navlogo {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

.navlogo .dot {
  font-size: 34px;
  color: #555;
  margin-top: 4px;
}

.navmenu ul {
  display: flex;
  list-style: none;
}

.navmenu li {
  margin-inline: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: color .3s;
}

.nav-link:hover {
  color: var(--primary);
  width: 100%;
}

.nav-link:hover::after {
  width: 100%;
}

.theme-toggle {
  cursor: pointer;
}

/* HERO */
.h1 {
  font-size: 50px;
  color: var(--text);
}

p {
  display: flex;
  justify-content: center;
  font-style: poppins;

  font-size: 25px;

}

.wrapper {
  padding-inline: 10vw;
  padding-top: 120px;
}

.featured-box {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: large;
}

.featured-text {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tag {
  align-self: flex-start;
  font-size: 35px;
  background: #eaf9f7;
  padding: 6px 18px;
  border-radius: 25px;
  color: var(--primary);
  font-weight: 500;
}

.typedtext {
  color: var(--primary);
}

.featured-image img {
  width: 330px;
  height: 330px;

  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 50%;
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  gap: 30px;
  
  margin-top: 10px;
  
}

.social-icons i {
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
  padding-left: 100px;
  padding-top: 5px;
  padding: 5px;
  border-radius: 85px;
  transition: .3s;
  color: var(--text);
  justify-content: space-between 0px;
}

.social-icons i:hover {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  transition: 0.3s;

}

/* ABOUT */

.about-text {
  justify-content: center;
  font-size: 20px;
  line-height: 1.8;
  margin-top: 20px;
  color: var(--text);

}


.about-section {
  background: var(--card-bg);
   padding: 80px 40px;
   border-radius: 50px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  text-align: center;
  position: relative;
  margin-bottom: 25px;
  color: var(--text);
}

.underline::after {
  content: '';
  width: 60px;
  height: 3px;
  background: var(--primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  animation: grow 1s ease;
}

@keyframes grow {
  from {
    width: 0;
  }

  to {
    width: 60px;
  }
}

/* ====================== EDUCATION ====================== */

.education-section {
  padding: 80px 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--line-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 100px;
}

.timeline-dot {
  width: 70px;
  height: 70px;
  background: var();
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: -20px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;

}

.timeline-dot img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
}

.timeline-card {
  background: var(--card-bg);
  width: 75%;
  margin: 0 auto;
  margin-top: 50px;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: .3s;
}

.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .35);
}

.edu-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 12px;
}

/* ====================== PROJECTS ====================== */

.projects-section {
  padding: 80px 0;
}

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

.project-card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: .3s;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .35);
}

.project-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 18px;
  border-radius: 30px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 14px;
}

/* ====================== REVEAL ANIMATION ====================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media(max-width:800px) {
  .featured-box {
    flex-direction: column;
    text-align: center;
  }

  .featured-text {
    width: 100%;
    align-items: center;
  }

  .tag {
    align-self: center;
  }

  .timeline-card {
    width: 90%;
  }
}

/* ===================== HEADING HOVER ANIMATION ===================== */

.section-title {
  transition: 0.3s ease;
  cursor: pointer;
}

.section-title:hover {
  color: var(--primary);
  transform: scale(1.05);
}

.section-title.underline::after {
  transition: width 0.3s ease;
}

.section-title.underline:hover::after {
  width: 110px;
  /* underline grows on hover */
}

/* ===================== CONTACT SECTION ===================== */

.contact-section {
  padding: 80px 0;
  text-align: center;
}

.contact-subtext {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text);
}

.contact-container {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* CONTACT FORM */
.contact-form {
  width: 48%;
  min-width: 280px;
  background: var(--card-bg);
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: var(--bg);
  color: var(--text);
  resize: none;
}

.contact-form textarea {
  height: 120px;
}

/* CONTACT INFO */
.contact-info {
  width: 48%;
  min-width: 280px;
  background: var(--card-bg);
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.contact-info h3 {
  margin-bottom: 15px;
  font-weight: 600;
}

.contact-icons {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 20px 0;
}

.contact-icons i {
  font-size: 28px;
  color: var(--text);
  transition: 0.3s;
}

.contact-icons i:hover {
  color: var(--primary);
  transform: translateY(-4px);
}

/* EMAIL BUTTON */
.email-btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 30px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.email-btn:hover {
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }
}
.footer {
  text-align: center;
  padding: 100px;
  background: var(--card-bg);
  color: var(--line-color);
  margin-top: 90px;
  
}