* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f8fafc;
  color: #1f2937;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* NAVBAR */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 8%;
  background: #c1c1c1;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo a {
  font-size: 1rem;
  color: #0051ff;
  text-decoration: none;
}

.logo:hover a {
  color: #ffffff;
  transition: 0.3s;
}

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

.nav-links a {
  text-decoration: none;
  color: #1e3a8a;
  font-size: 1rem;
  font-weight: 500;
  transition: 0.3s;
}

/* .nav-links a */

.nav-links a:hover {
  color: #0051ff;
  background: #ffc900;
}

.menu-toggle {
  display: none;
  font-size: 1rem;
  cursor: pointer;
}

/* HERO */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 80px 10%;
  flex-wrap: wrap;
}

.hero-image img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 10%;
  border: 9px solid #c1c1c1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-content {
  max-width: 650px;
}

.hero-content h1 {
  font-size: 2rem;
  color: #1e3a8a;
}

.hero-content h2 {
  margin-top: 10px;
  font-size: 1rem;
  color: #0051ff;
}

.hero-description {
  margin: 20px 0;
  font-size: 1rem;
}

blockquote {
  font-style: italic;
  font-weight: bold;
  color: #1e3a8a;
  margin: 20px 0;
}

/* BUTTONS */

.hero-buttons,
.project-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: #0051ff;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  padding: 10px 20px;
  border-radius: 8px;
  transition: 0.3s;
  border: 4px solid #c1c1c1;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  background: #c1c1c1;
  border: 4px solid #0051ff;
  color: #0051ff;
  font-size: 1rem;
  font-weight: 400;
}

.btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  border: 4px solid #0051ff;
  color: #0051ff;
  background: #c1c1c1;
  transition: 0.3s;
  cursor: pointer;
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: #0051ff;
  border: 4px solid #c1c1c1;
  color: white;
  font-size: 1rem;
  font-weight: 400;
}

.btn-2 {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  background: #0051ff;
  color: white;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  transition: 0.3s;
  border: 4px solid #c1c1c1;
  cursor: pointer;
}

.btn-2:hover {
  transform: translateY(-2px);
  background: #c1c1c1;
  border: 4px solid #0051ff;
  color: #0051ff;
  font-size: 1rem;
  font-weight: 400;
}

/* SECTION */

.section {
  padding: 80px 10%;
}

.section-title {
  color: #0051ff;
}
/* CARDS */

.card,
.project-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* SKILLS */

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

.card ul {
  margin-top: 15px;
  padding-left: 20px;
}

/* PROJECT */

.project-card {
  max-width: 900px;
  margin: auto;
}

.project-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

/* TIMELINE */

.timeline {
  max-width: 900px;
  margin: auto;
}

.timeline-item {
  background: white;
  margin-bottom: 25px;
  padding: 25px;
  border-left: 5px solid #0051ff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

h3,
strong {
  color: #1e3a8a;
}

.timeline-item h4 {
  margin: 5px 0;
}

.timeline-item span {
  color: #6b7280;
  font-size: 0.9rem;
}

/* EDUCATION */

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

/* CONTACT */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0051ff;
}

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

.custom-underline {
  text-decoration: underline;
}

a:hover .custom-underline {
  background-color: #ffc900;
}

/* FOOTER */

footer {
  background: #c1c1c1;
  color: #1e3a8a;
  font-size: 1rem;
  text-align: center;
  padding: 2px;
}

/* Scroll to Top Btn */
.scroll-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 25%;
  background: #ffc900;
  color: #0051ff;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 2px 4px 12px rgba(0, 0, 0.25, 0.25);
  transition: all 0.3s ease;
  display: none;
}

.scroll-btn:hover {
  background: #0051ff;
  color: #ffc900;
  transform: translateY(-3px);
}

/* MOBILE */

@media (max-width: 768px) {
  .navbar {
    padding: 5px 5%;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    background: white;
    width: 100%;
    flex-direction: column;
    text-align: center;
    padding: 5px;
    display: none;
  }

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

  .nav-links a:hover {
    color: #0051ff;
    background: #ffc900;
  }

  .menu-toggle {
    display: block;
    color: #0051ff;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero {
    text-align: center;
  }

  .hero-image img {
    width: 250px;
    height: auto;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  footer {
    background: #c1c1c1;
    color: #1e3a8a;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
  }

  .scroll-btn {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 25%;
    background: #ffc900;
    color: #0051ff;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
  }

  .scroll-btn:hover {
    background: #0051ff;
    color: #ffc900;
    transform: translateY(-3px);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .navbar {
    padding: 15px 3%;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .logo a {
    font-size: 1.1rem;
  }
}
