html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #111111;
}



@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-ThinItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-ExtraBoldItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'CreatoDisplay';
  src: url('fonts/CreatoDisplay-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
}


/*  INTRO ANIMATION 
--------------------------------------------------------------------------------------- */
.intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;     /* this is correct */
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
   z-index: 11000;   /* make sure it’s above the nav */
  transition: transform 1s ease, opacity 1s ease;
}

.logo-wrap svg {
  width: 60vw;
  max-width: 800px;
  transition: all 1s ease;
}

.intro.shrink {
  opacity: 0;
  pointer-events: none;
}


/*  HAMBURGER MENU AND OVERLAY 
--------------------------------------------------------------------------------------- */

.container {
  display: inline-block;
  cursor: pointer;
  position: fixed;
  top: 25px;
  right: 30px;
  z-index: 3;
}

.bar1, .bar2, .bar3 {
  width: 24px;
  height: 2px;
  background-color: #f1f1f1;
  margin: 6px 0;
  transition: 0.4s;
}

/* Rotate first bar */
.change .bar1 {
  transform: translate(0, 8px) rotate(-45deg);
}

/* Fade out the second bar */
.change .bar2 {opacity: 0;}

/* Rotate last bar */
.change .bar3 {
  transform: translate(0, -8px) rotate(45deg);
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
  font-family: 'CreatoDisplay', sans-serif;
  font-weight: lighter;
}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}
.overlay.open {
  width: 100%;
}




@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
  font-size: 40px;
  top: 15px;
  right: 35px;
  }
}

/*  NAVIGATION BAR 
--------------------------------------------------------------------------------------- */

.cls-1 {
  fill: #FA6364; 
}

nav {
  background: #1B1B1B;
  color: #eee;
  position: fixed;      
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;          
  z-index: 10000;       
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;       
  height: 100%;           
  flex-wrap: nowrap;
}

.logo-container {
  width: 150px;
  height: auto;
}

.logo-container svg {
  height: 100px;
  width: auto;
}

.nav-logo svg {
  display: block;
  height: 35px; /* Change this value to your desired height */
  width: auto;
  margin-top: 25px;
  margin-left: 20px;
}

/* Filter Pill Box */
.project-filter {
  
  flex-wrap: nowrap;          /* prevent vertical wrapping */
  gap: 1rem;
  justify-content: flex-start; 
  padding: 0 2rem 2rem 2rem;  /* some left padding to match the title */
  overflow-x: auto;           /* if too many pills, allow horizontal scroll */
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid #FA6364;
  background: transparent;
  color: #FA6364;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  font-family: 'CreatoDisplay', sans-serif;
  font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: #FA6364;
  color: #fff;
}

.projects-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 80px; /* Adjust for fixed nav height */
}
/* Gallery Grid */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}



.projects-gallery h1 {
  font-size: 4rem;              /* bigger title */
  text-align: left;
  margin: 2rem 0 1rem 2rem;     /* spacing from top and left */
  font-family: 'CreatoDisplay', sans-serif;
  font-weight: lighter;
  color: #FA6364;
}

.project-item {
  display: flex;
  flex-direction: column;
  background-color: #111;
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: scale(1.02);
}

.project-item img {
  width: 100%;
  height: auto;
  display: flex;
}

.project-info {
  padding: 1rem;
  background-color: #1B1B1B;
  color: #ffffff;
  text-align: left;
  font-family: 'CreatoDisplay', sans-serif;
}

.project-info h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: #FA6364;
  font-weight: 400;
}

.project-info p {
  margin: 0;
  font-size: 1rem;
  color: #ccc;
  font-weight: 300;
  font-family: 'CreatoDisplay', sans-serif;
}




/*  FOOTER
--------------------------------------------------------------------------------------- */

.site-footer {
  background-color: #111111;
  padding: 0 0 0 0rem;
  margin: 0;
  width: 100%;
  align-items: center;

  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 rem;
}

.footer-content h1 {
  font-size: 2rem;
  text-align: left;
  margin: 0;
  line-height: 1;
  font-family: 'CreatoDisplay', sans-serif;
}

.footer-icons {
  display: flex;
  gap: 12px;
}

.footer-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  margin: 0 2px;
  transition: background 0.3s;
  overflow: hidden;
  text-decoration: none;
}

.footer-icon {
  font-size: 24px;
  color: #FA6364;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-icon-circle:hover {
  background: #FA6364;
}

.footer-icon-circle:hover .footer-icon {
  color: #fff;
}

.footer-icon-circle:focus {
  outline: 2px solid #FA6364; /* or any color you like */
  outline-offset: 2px;
}

.bottom-text {
  text-align: center;
  color: #ffffff;
  width: auto;
  font-family: 'CreatoDisplay', sans-serif;
  margin-top: 8rem;
}

section.three {
  height: 50vh;
  padding-top: 5.2rem;
  z-index: 1;
  min-height: auto;
  scroll-snap-align: start;
  text-align: left;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

section.three h1 {
  position: static;
  width: 100%;
  text-align: left;
  max-width: 100%;
  font-size: clamp(2rem, vw, 1rem);
  font-weight: lighter;
  font-family: 'CreatoDisplay', sans-serif;
  color: #FA6364;
  pointer-events: none;
}

.custom-hr {
  border: none;
  height: 1px;
  background: #ffffff;
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/*  project 1
--------------------------------------------------------------------------------------- */
section.project-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "left right"
    "media media";
  gap: 2rem;
  background: #eee;
  padding: 3rem;
  margin-top: 5rem;
}

.text-left {
  grid-area: left;
}

.text-right {
  grid-area: right;
  display: flex;
  align-items: center;
}

.image-full {
  grid-area: media;
  margin: 0;
  padding: 0;
  width: 100%;
}

.image-full video, 
.image-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive: stack everything on smaller screens */
@media (max-width: 768px) {
  section.project-intro {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "media";
  }

  .text-right {
    align-items: flex-start; /* better vertical alignment on stacked */
  }

  section.project-intro h1 {
    font-size: 3rem; /* scale down title */
  }
}

/* Desktop font sizes */
section.project-intro h1 {
  font-size: 4rem;
  font-family: 'CreatoDisplay', sans-serif;
  color: black;
  margin: 0;
  font-weight: lighter;
  line-height: 1.1;
}

section.project-intro h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: #FA6364;
  font-family: 'CreatoDisplay', sans-serif;
  margin-top: 0;
  line-height: 1.4;
}

section.project-intro h2 {
  font-size: 1.2rem;
  font-family: 'CreatoDisplay', sans-serif;
  font-weight: 300;
  margin: 0;
  color: #333;
}

/* Responsive fonts for smaller screens */
@media (max-width: 768px) {
  section.project-intro h1 {
    font-size: 3rem;
  }

  section.project-intro h3 {
    font-size: 1.2rem;
  }

  section.project-intro h2 {
    font-size: 1.1rem;
  }
}
