/* ========================= */
/* ===== BASE / FONTS ===== */
/* ========================= */

body {
  margin: 0;
  padding-top: 60px;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  background-color: #fff;
  position: relative;
}

h1,
h2,
h3 {
  font-family: "Inter", sans-serif;
  letter-spacing: -0.3px;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.05rem;
}

p {
  line-height: 1.6;
  font-size: 0.95rem;
  color: #3b4752;
}

li {
  list-style: none;
}

/* ========================= */
/* ===== NAVIGATION ===== */
/* ========================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0px 0.5px 2.5px rgba(0, 0, 0, 0.18);
  z-index: 1000;
}

.nav-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-link ul {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}
li a {
  color: #3b4752;
  text-decoration: none;
}
li a:hover {
  color: #2f4d6a;
}

/* ========================= */
/* ===== HERO ===== */
/* ========================= */

.hero {
  margin-top: 24px;
  min-height: 550px;
  padding: 24px 0;
}

.hero-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  padding: 20px;
}
.hero-text h1 {
  color: #2f4d6a;
}
.hero-text p {
  color: #3b4752;
}

.hero-grade {
  font-weight: 700;
}

.hero-description {
  text-align: left;
}

.hero-img img {
  width: 300px;
  border-radius: 8px;
  box-shadow: 15px 30px 0px 5px #2f4d6a;
}
.hero-img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-img:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

/* ========================= */
/* ===== ABOUT ===== */
/* ========================= */

.about {
  background-color: #f2f2f2;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  width: 800px;
  background-color: #fff;
  padding: 24px 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-container img {
  width: 50px;
  margin-top: 16px;
}

.about-container p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.status-container {
  margin-top: 16px;
  padding: 8px;
  width: 100%;
  background-color: #f2f2f2;
  border-left: 4px solid #2f4d6a;
}

/* ========================= */
/* ===== SKILLS ===== */
/* ========================= */

.skills {
  background-color: #fff;
  padding: 60px 0;
}

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

.skills-container p {
  margin-bottom: 32px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 20px;
}

.card-skill {
  background-color: #f2f2f2;
  padding: 24px;
  width: 200px;
  height: 200px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-skill:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.card-skill img {
  width: 90px;
}

.card-skill p {
  font-size: 0.85rem;
  line-height: 1.5;
}

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

.project {
  background-color: #f2f2f2;
  padding: 60px 0;
}

.project-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 20px;
  max-width: 1100px;
}

.project-card {
  background-color: #fff;
  width: 300px;
  border-radius: 8px;
  overflow: hidden;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-text {
  padding: 24px;
  text-align: left;
}

.project-text p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-langage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tag-langage {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  color: #2f4d6a;
  background-color: rgba(47, 77, 106, 0.12);
  border: 1px solid rgba(47, 77, 106, 0.25);
}

/* ========================= */
/* ===== GALLERY ===== */
/* ========================= */

.gallery {
  background-color: #fff;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 20px;
  max-width: 900px;
  width: 100%;
}

.grid-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.contact {
  background-color: #f2f2f2;
  padding: 80px 0;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  gap: 40px;
}

.contact-container p {
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 900px;
  width: 100%;
}

.contact-card {
  background-color: #fff;
  padding: 32px 24px;
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  align-items: center;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.contact-card img {
  width: 80px;
  height: 80px;
  padding: 16px;
  background-color: #2f4d6a;
  border-radius: 50%;
  margin-bottom: 16px;
}

.contact-btn {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  background-color: #2f4d6a;
  color: #fff;
  font-size: 0.9rem;
}

/* ========================= */
/* ===== FOOTER ===== */
/* ========================= */

.footer {
  background-color: #1f2937;
  color: #e5e7eb;
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
}

.footer a {
  color: #60a5fa;
  text-decoration: none;
}

/* ========================= */
/* ===== RESPONSIVE ===== */
/* ========================= */

@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-description {
    text-align: center;
  }
  .about {
    padding: 24px;
  }
  .about-container {
    width: 90%;
    padding: 24px;
  }

  .card-container {
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    /* grid-template-columns: 1fr; */
  }
  .skills-container {
    padding: 0 24px;
  }
  .card-skill {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .grid-gallery {
    grid-template-columns: 1fr;
  }

  .grid-gallery img {
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-grid {
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    /* grid-template-columns: 1fr; */
  }

  .contact-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-container {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    flex-direction: column;
  }


  .hero-img img {
    width: 220px;
  }

  .grid-gallery img {
    height: 140px;
  }
}
