/* 1. The "Reset": Fixes margins and padding calculations */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Use dvh (Dynamic Viewport Height) to fix mobile browser bar issues */
  min-height: 100dvh; 
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  background-color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  text-align: center;

  /* Centering the content wrapper */
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  
  /* Prevents accidental horizontal jitter */
  overflow-x: hidden; 
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1.2rem;
  color: #666;
  margin-top: 0;
}

.hero-section {
  display: flex;
  flex-direction: column; 
  /* width: 80%; */
}

.profile-image {
  flex: 2;
}

.profile-image img {
  height: 300px;
}

.headline-hook {
  flex: 5;
  text-align: left;
}

/* Tablet/Desktop View */
@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    align-items: center;
    gap: 4rem; /* Adds nice spacing between image and text */
    min-height: 80vh;
  }

  .project-section {
    margin-top: 0rem;
  }
}

/* Custom Buttons */
.custom-button {
  background-color: #356275;
  border-radius: 50px;
  border: none;
  outline: none;
  padding: 0; /* CRITICAL: Remove padding from the button itself */
  overflow: hidden; /* Ensures the link doesn't 'leak' past the rounded corners */
  cursor: pointer;
  margin: 1.3rem 1rem 0 0;
}

.custom-button a {
  display: inline-block; /* Makes the link behave like a box */
  width: 100%;           /* Fills the button width */
  height: 100%;          /* Fills the button height */
  font-size: 1rem;
  font-weight: bold;
  padding: 1rem 1.5rem;  /* The clickable area is now defined here */
  color: white;          /* Makes the text white */
  text-decoration: none; /* Removes the underline */
}

i {
  margin-right: 1rem;
}

.project-section {
  margin-bottom: 10rem;
}

.project-section h1{
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* The space between cards */
  justify-content: center;
}

.card {
  /* Logic: (100% / 3) minus a portion of the gaps */
  flex: 1 1 calc(33.333% - 20px); 
  
  /* Prevents cards from getting too huge on massive screens */
  max-width: 450px; 
  
  /* Ensures cards don't get skinnier than 280px before wrapping */
  min-width: 430px; 
  
  background: #EDF4F7;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.card h2 {
  color: #356275;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.card p {
  text-align: center;
  margin-left: 1rem;
  margin-right: 1rem;
}

.card button {
  margin-bottom: 1rem;
}