/* ====== GLOBAL ====== */
html {
  margin: 0;
  padding: 0;
  font-size: 20px;           /* was 19px */
  scroll-behavior: smooth;
  overflow-y: auto;
}
body { margin: 0; padding: 0; height: 100%; }

/* ====== NAVBAR ====== */
/* Default (desktop/tablet) = your current styles */
.navbar {
  z-index: 1000;
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: 15px;
  margin: 20px auto;
  width: 90%;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease;
}



/* ====== SECTIONS ====== */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 5%;
}
.section-title {
  font-size: 2.6rem;         /* was 2.4rem */
  font-weight: 600;
  margin-bottom: 25px;
  text-align: center;
}
.section p { font-size: 1.2rem; line-height: 1.6; font-weight: 400; } /* was 1.1rem */

/* ====== HERO ====== */
.hero-text { padding-left: 2%; }
.hero-photo { display: flex; justify-content: flex-end; align-items: center; }
.hero-img {
  width: 80%;           /* takes up 80% of its column */
  max-width: 400px;     /* but never bigger than 400px */
  border-radius: 50%;
  object-fit: cover;
  height: auto;         /* keeps aspect ratio */
}

#typewriter { border-right: 2px solid #000; animation: blink 0.8s step-end infinite; white-space: pre-wrap; }
@keyframes blink { from, to { border-color: transparent } 50% { border-color: black; } }

/* ====== PROJECTS ====== */
#projects {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  
  padding-top: 80px;
  box-sizing: border-box;
}

#projects .section-title {
  flex: 0 0 auto;
  margin-bottom: 25px;
  text-align: center;
  
  position: relative;
  top: 10vh;
}

#projects .project-section:first-of-type {
  flex: 1;
  min-height: 80vh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
    padding: 40px;
  
}

#projects .project-section:not(:first-of-type) {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px;
  
}

.project-text h3 { font-size: 1.8rem; margin-bottom: 15px; }  /* was 1.6rem */
.project-text p { font-size: 1.1rem; margin-bottom: 12px; }   /* was 1rem */

/* ====== SKILLS ====== */
.skills-grid {
  display: flex;              /* use flexbox instead of grid */
  flex-wrap: wrap;            /* wrap into multiple rows */
  justify-content: center;    /* center icons in each row */
  gap: 30px;                  /* spacing between icons */
  padding: 20px;
}

.skill {
  width: 140px;                /* fixed width */
  height: 140px;               /* fixed height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;     /* true vertical centering */
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.skill img {
  width: 60px;
  height: 60px;                /* consistent icon box */
  margin-bottom: 8px;
  object-fit: contain;         /* prevents stretching */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.skill p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

/* Hover effect */
.skill:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  background: rgba(76, 175, 239, 0.08);
}

.skill:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px rgba(76, 175, 239, 0.7));
}



/* ====== CONTACT + FOOTER ====== */
.contact-footer-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#contact {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  min-height: 0;
}
.site-footer {
  flex: 0 0 5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1.1rem;         /* was 1rem */
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .project-section { padding: 20px 0; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  /* Shrink text on mobile */
  html { font-size: 16px; }

  .navbar { font-size: 1rem; margin: 0; width: 100%; border-radius: 0; }
  .section-title { font-size: 2rem;  }
  .section p { font-size: 1rem; }

  .hero-container {
    margin-top: 30px;
  }
  .project-text h3 { font-size: 1.4rem; }
  .project-text p { font-size: 0.9rem; }

  .skill p { font-size: 0.9rem; }
  .site-footer { font-size: 0.9rem; }

  /* === Navbar + Hero together = 100vh === */
  .hero-section {
    min-height: calc(100vh - var(--navbar-height, 60px));
    padding-top: 0;
  }
  .navbar {
    --navbar-height: 60px; /* adjust if your mobile navbar is taller/shorter */
  }
}
