/* need to pick our colorscheme*/
/* color:  #0B2D72; for text*/
/* background-color: #FFFBDE; */

.nunito-<uniquifier> {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}


html {
  scroll-behavior: smooth;
}

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

/* --- NAVIGATION BAR --- */
header {
  position: sticky;
  top: 0; 
  z-index: 1000;
  background-color: #ffffff; 
  opacity: 95%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

nav {
  max-width: 900px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

nav h1 a {
  text-decoration: none;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px; 
  transition: color 0.3s ease;
}

nav h1 a:hover {
  color: #555; /* Subtle change on hover */
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #0B2D72;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #666;
  transform: translateY(-1px);
}

/* --- GENERAL SECTION --- */
section {
  max-width: 900px;
  margin: 4rem auto;
  /* display: flex; */
}

/* --- TYPOGRAPHY --- */

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

h3 {
  margin-top: 1rem;
}

p {
  margin-bottom: 1rem;
}

body {
  font-family: "Nunito", sans-serif;
  line-height: 1.6;
  background: #FFFBDE;
}

/* --- HERO --- */
#hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 900px;
  margin: 5rem auto;
}

#hero h1 {
  font-size: 2.8rem;
  line-height: 2;
}

#hero p{
  margin-top: 1.2rem;
}

#hero .hero-text {
  max-width: 500px;
}

.hero-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
}

#typing::after {
  content: "|";
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- SKILL PILL --- */
.skills-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #0B2D72;
}

/* container for the tags */
.skills-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 0.8rem;
  padding: 0;
}

/* skill Pill */
.skills-container span {
  background: #0B2D72;
  color: #FFFBDE;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  cursor: default;
}

/* Hover effect to make it interactive */
.skills-container span:hover {
  background: grey;
  color: #0B2D72;
  border-color: grey;
  transform: translateY(-2px);
}

/* --- VIEW PROJECT BUTTONS --- */
.view-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background-color: #0B2D72;
  color: #FFFBDE;
  text-decoration: none;
  border-radius: 50px;
  border: 1px solid #0B2D72;
  transition: all 0.3s ease;
  text-align: center;
}

.view-btn:hover {
  background-color: #FFFBDE;
  color: #0B2D72;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(11, 45, 114, 0.2);
}

/* --- PROJECT SECTION --- */
/* filtering buttons */
.filters {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  height: 100%;
  padding: 1.2rem;

  border: 1px solid grey;
  border-radius: 12px;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

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

.project-card h3 {
  margin-top: 1rem;
}

.project-card p {
  flex-grow: 1;
}

.project-card:hover {
  transform: translateY(-10px); 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: #333;
}

button {
  border: none;
  background: none;
  margin-right: 1rem;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  color: black;
}

/* --- HOBBY SECTION --- */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border: grey;
}

/* The Carousel for travel*/
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 180px;
  border-bottom: 1px solid #eee;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel-track { display: flex; width: 100%; }

.carousel-item {
  position: relative;
  flex: 0 0 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Button Controls */
.carousel-controls {
  display: flex;
  gap: 10px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #0B2D72;
  color: #FFFBDE;
  border: 1px solid #0B2D72;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.nav-btn:hover {
  background-color: #FFFBDE;
  color: #0B2D72;
  transform: translateY(-2px);
}

/* country labels */
.country-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(11, 45, 114, 0.8);
  color: #FFFBDE;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

footer {
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

footer p {
  color: #0B2D72; 
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- MEDIA QUERIES --- */
/* for tablets */
@media (max-width: 768px) {
  
  /* Hero: stack everything*/
  #hero {
    flex-direction: column-reverse;
    text-align: center;
    margin: 3rem auto;
    gap: 2rem;
  }

  #hero h1 {
    font-size: 2.2rem;
    line-height: 1.4;
  }

  .hero-pic {
    width: 200px;
    height: 200px;
  }

  /* navigation bar position */
  nav {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.85rem;
  }

  /* only 1 or 2 */
  .hobby-grid {
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }

  section {
    margin: 2rem auto;
    padding: 0 1.5rem;
  }
}

/* for phone */
@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.8rem;
  }

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

  nav h1 a {
    font-size: 1.8rem;
  }
}