/*
  box-sizing making layout spacing easier to control.
*/
* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #eaf4fb;
  color: #1b2a3a;
  line-height: 1.6;
}

h1, h2, h3 {
  color: #04233a;
}

a {
  color: #1e6091;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 
   HEADER + NAVIGATION
*/

.site-header {
  background: #0a3d62;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.logo:hover {
  text-decoration: none;
  color: #3ab7c4;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  gap: 10px;
}

.nav-list a {
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  display: block;
  transition: background 0.3s ease-in-out;
}

.nav-list a:hover {
  background: #1e6091;
  text-decoration: none;
}

/*
   hamburger button is hidden by default and only shown on small
  screens on media queries.
*/
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

/* 
   HERO SECTION
   */

.hero {
  background: #0a3d62;
  color: white;
  text-align: center;
  padding: 70px 20px;
}

.hero h1 {
  color: white;
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.hero-tagline {
  font-size: 1.2rem;
  color: #cfe8f5;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.hero-subtext {
  max-width: 600px;
  margin: 0 auto 25px auto;
  color: #e9f3ff;
}

.avatar-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #3ab7c4;
  color: #04233a;
  font-size: 28px;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.btn-primary {
  background: #3ab7c4;
  color: #04233a;
}

.btn-primary:hover {
  background: #2a939e;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #0a3d62;
  text-decoration: none;
}


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

.card {
  margin-bottom: 40px;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 
   ABOUT SECTION
 */

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.about-content p {
  flex: 2;
  min-width: 250px;
}

.quick-facts {
  flex: 1;
  min-width: 200px;
  list-style: none;
  padding: 15px;
  margin: 0;
  background: #eaf4fb;
  border-radius: 6px;
}

.quick-facts li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* 
   SKILLS SECTION. FLEXBOX: badges wrap naturally with flex-wrap.
*/

.skill-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-badge {
  background: #eaf4fb;
  color: #0a3d62;
  border: 1px solid #3ab7c4;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/*
   PROJECTS SECTION
   CSS GRID: a responsive grid of project cards.
   auto-fit + minmax lets the grid reflow columns automatically
   depending on how much screen width is available.
*/

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

.project-card {
  background: #eaf4fb;
  border-radius: 8px;
  padding: 20px;
  border-top: 4px solid #3ab7c4;
}

.project-card-link {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease-in-out;
}

.project-card-link:hover {
  text-decoration: none;
  transform: translateY(-4px);
}

.project-card-link:hover .project-card {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.project-link-label {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1e6091;
}

.project-card h3 {
  margin-top: 0;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tech-tags span {
  background: #0a3d62;
  color: white;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
}

/* 
   CONTACT FORM
*/

#contactForm {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: #04233a;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 2px solid #d0d7de;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Poppins', Arial, sans-serif;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3ab7c4;
  box-shadow: 0 0 0 3px rgba(58, 183, 196, 0.25);
}

.char-counter {
  font-size: 13px;
  color: #6c757d;
}

.char-counter.near-limit {
  color: #b35c00;
  font-weight: 600;
}

#contactForm button {
  background: #0a3d62;
  color: white;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Poppins', Arial, sans-serif;
  transition: background 0.3s ease-in-out;
}

#contactForm button:hover {
  background: #1e6091;
}

.form-status {
  margin-top: 15px;
  padding: 12px;
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  border-radius: 6px;
  font-weight: 600;
}

.form-status.complete {
  background: #d1e7dd;
  border-left-color: #198754;
  color: #0f5132;
}

.form-status.error {
  background: #f8d7da;
  border-left-color: #dc3545;
  color: #842029;
}

/* 
   FOOTER
*/

.site-footer {
  background: #04233a;
  color: white;
  text-align: center;
  padding: 25px 20px;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: #3ab7c4;
}

/* 
   RESPONSIVE DESIGN
   Tablet and mobile breakpoints
*/

@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a3d62;
    flex-direction: column;
    gap: 0;
    display: none;
  }

  /*
    JavaScript adds the "open" class to #navList when the hamburger
    button is clicked. This rule makes the menu visible when that
    class is present.
  */
  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    border-radius: 0;
    padding: 14px 20px;
    border-bottom: 1px solid #1e6091;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 50px 15px;
  }

  .card {
    padding: 20px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  #contactForm button {
    width: 100%;
  }
}
