/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Typography */
body {
  font-family: 'Apertura-regular', sans-serif;
  font-stretch: normal;
  background-color: #FFF5FE;
  color: #3b2a35;
  line-height: 1.4;
}

header h1 {
  font-family: 'Spicy rice', sans-serif;
  font-size: 4.3rem;
  color: white;
  font-weight: 400;
  letter-spacing: 4px;
  text-shadow:
    -2.5px -2.5px 0 #40393F,
     1px -1px 0 #40393F,
    -1px  1px 0 #40393F,
     1px  1px 0 #40393F,
     0 0 2px #40393F; /* small blur to soften edges */
}


header p {
  font-size: 1.5rem;
  color: #5A5258;
}

a {
  color: #F285CF;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

/* Header */
header {
  background-color: #FCD9F5;
  padding: 20px 10px 30px;
  text-align: center;
  align-items: center;
  width: 100%;
 /* box-shadow: 0 3px 10px rgba(210, 107, 162, 0.3);*/
  border-bottom: 2px solid #5A5258;
  position: relative;
}


/* Baby animation */
.baby-container {
  position: relative;
  width: 100%;
  height: 50px;
  margin-top: 10px;
}
.baby {
  position: absolute;
  top: -85px;
  width: 250px;
  height: auto;
  animation: crawl 75s linear infinite;
  user-select: none;
}

@keyframes crawl {
  0% { left: -150px; }
  100% { left: 100%; }
}


/* Navigation */
nav {
  background-color: #82787F;
  display: flex;
  justify-content: center;
  gap: 50px;
  width: 100%;
  letter-spacing: 1.5px; 
  padding: 5px 0;
  border-bottom: 2px solid #5A5258;
  /*margin-left: -10px;*/
 /* box-shadow: 0 3px 8px rgba(210, 107, 162, 0.5);*/
}
nav a {
  display: flex;
  color: #F7EEF7;
  font-weight: 500;
  font-size: 1.5rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
nav a:hover {
  background-color: #FF8FDC;
  color: white;
}

/* Layout container */
.container {
  display: flex;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 40px;
  min-height: 70vh;
  align-items: flex-start;
}

/* Main content */
main {
  flex: 2.5;
  background: white;
  color: #40393F;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #5A5258;
  /*box-shadow: 0 4px 15px rgba(210, 107, 162, 0.2);*/
}
main h2 {
  color: #40393F;
  font-weight: normal;
  margin-bottom: 12px;
  font-size: 2rem;
  border-bottom: 2px solid #82787E;
  padding-bottom: 6px;
}
main section {
  margin-bottom: 30px;
}
main p, main ul {
  font-size: 1.1rem;
  margin-bottom: 15px;
}
main ul {
  padding-left: 1.2rem;
  color: #5A5258;
}
main ul li {
  margin-bottom: 8px;
}


/* Photo container */
.photo-container {
  flex: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  /*box-shadow: 0 4px 15px rgba(210, 107, 162, 0.15); */
  overflow: hidden;
  border: 2px solid #5A5258;
  max-width: 100%;
}
.photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}
.photo-wrapper img.main-photo {
  width: 100%;
  height: auto;
  border: 2px solid #5A5258;
  border-radius: 1px;
  object-fit: cover;
  display: block;
  z-index: 1;
  position: relative;
  box-shadow: 0 0 10px rgba(210, 107, 162, 0.5);
}
.photo-wrapper img.hover-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border: 2px solid #5A5258;
  height: auto;
  object-fit: cover;
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 0 10px rgba(210, 107, 162, 0.5);
  z-index: 2;
}

.photo-container:hover .hover-photo {
  opacity: 1;
}
.photo-container:hover .main-photo {
  opacity: 0;
}

.content-box {
  background: white;
  padding: 25px;
  border-radius: 10px;
  position: relative;
  z-index: 2;
}

.photo-container,
main {
  position: relative;
  z-index: 1;
  border-radius: 12px;

}

.photo-container::after,
main::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  pointer-events: none;
  z-index: -1;
}


/* Responsive */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }
  .photo-container {
    margin-top: 30px;
  }
}

/* Contact icons under photo */
.contact-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 15px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFE6F8;
  color: #5A5258;
  font-size: 18px;
  transition: all 0.25s ease;
}

.contact-link:hover {
  background: #FF8FDC;
  color: white;
}


/* PROJECT GRID */

#projects {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

.projects-grid {
  column-count: 2;
  column-gap: 40px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* White box styling */

.project-card {
  background: white;
  border-radius: 10px;
  padding: 40px;
 /* box-shadow: 0 4px 15px rgba(210, 107, 162, 0.15); */
  border: 2px solid #5A5258;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  break-inside: avoid;
  margin-bottom: 40px;
}

/* Image */

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 14px;
}

/* Text */

.project-card h3 {
  font-size: 1.5rem;
  color: #40393F;
  font-weight: 15;
  margin: 0 0 6px 0;
}

.project-meta {
  font-size: 0.9rem;
  color: #82787E;
  margin-bottom: 10px;
}

.project-card p {
  margin: 0;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 768px) {
  .projects-grid {
    column-count: 1;
  }

  .project-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
  }
}
}

}
}
