/* BasementGrotesque-Black */
@font-face {
  font-family: 'BasementGrotesque-Black';
  src: url('/fonts/BasementGrotesque-Black_v1.202.otf') format('opentype');
  font-display: swap; /* Ensure text is displayed with fallback font until custom font loads */
}

/* Aileron-SemiBold */
@font-face {
  font-family: 'Aileron-SemiBold';
  src: url('/fonts/Aileron-SemiBold.otf') format('opentype');
  font-display: swap; /* Ensure text is displayed with fallback font until custom font loads */
}

/* Aileron-Regular */
@font-face {
  font-family: 'Aileron-Regular';
  src: url('/fonts/Aileron-Regular.otf') format('opentype');
  font-display: swap; /* Ensure text is displayed with fallback font until custom font loads */
}

/* Aileron-Light */
@font-face {
  font-family: 'Aileron-Light';
  src: url('/fonts/Aileron-Light.otf') format('opentype');
  font-display: swap; /* Ensure text is displayed with fallback font until custom font loads */
}

/* Aileron-Bold */
@font-face {
  font-family: 'Aileron-Bold';
  src: url('/fonts/Aileron-Bold.otf') format('opentype');
  font-display: swap; /* Ensure text is displayed with fallback font until custom font loads */
}

/* Aileron-Heavy */
@font-face {
  font-family: 'Aileron-Heavy';
  src: url('/fonts/Aileron-Heavy.otf') format('opentype');
  font-display: swap; /* Ensure text is displayed with fallback font until custom font loads */
}

:root {
  --primary-color: #454538;
  --secondary-color: #F1A17E;
  --tertiary-color: #FFF6F1;
  --fourth-color: #333333;
}

body {
    font-family: 'Aileron-Regular', sans-serif;
    text-align: center;
    background-color: var(--primary-color);
    margin: 0;
    padding: 0;
}

.naviation-component {
    width: 100%;
    height: 100%;
}


.hero {
  display: flex;
  justify-content: center; /* Center horizontally */
  height: 95vh;
  background-color: var(--primary-color);
  text-align: left;
  padding: 2rem 4rem;
  position: relative; /* Establish positioning context */
}

/* Styling for the content inside the hero */
.hero-content {
  flex: 1; /* Take up remaining space */
  padding-right: 2rem; /* Add padding to separate content from image */
  position: relative; /* Ensure content is positioned relative to the hero */
  z-index: 2; /* Bring content forward */
  max-width: calc(63% - 2rem); /* Set maximum width to 55% of the screen minus padding */
  margin-right: auto; /* Align the right edge of the text container */
}

.hero-content h1,
.hero-content h2 {
  margin: 0; /* Remove default margins */
  padding: 0; /* Remove default padding */
  color: var(--tertiary-color);
  
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 20px;
  font-family: 'BasementGrotesque-Black', sans-serif; /* Use your custom font with fallback to a generic sans-serif font */
}

.hero-content h2 {
  font-size: 1.8rem;
  font-weight: lighter;
  margin-bottom: 10px;
  font-family: 'Aileron-Light', sans-serif; 
}

.highlight {
  background-color: var(--secondary-color); /* Set background color to highlight color */
  color: var(--primary-color);
  padding-left: 2px;
  padding-right: 2px;
}

.hero-image {
  position: absolute; /* Position the image absolutely */
  top: 0; /* Align to the top of the hero section */
  right: 0; /* Align to the right side of the hero section */
  width: 40%; /* Set width to cover 40% of the screen */
  height: 100%; /* Set height to cover 100% of the hero section */
  overflow: hidden; /* Hide overflow */
  z-index: 1;
}

.hero-image img {
  width: 100%; /* Ensure image covers the entire container width */
  height: 100%; /* Ensure image covers the entire container height */
  object-fit: cover; /* Cover the entire container without stretching */
}

/* Media Query for Mobile for hero */

@media (max-width: 800px) {
  .hero {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    padding: 1rem 0.5rem; /* Adjusted padding */
  }

  .hero-content {
    max-width: 90%;
    padding-right: 0; /* Remove right padding */
    text-align: left; /* Center text */
    margin-right: 0; /* Remove margin-right */
  }

  .hero-content h1 {
    font-size: 2.5rem; /* Adjusted font size */
    margin-bottom: 10px;
  }

  .hero-content h2 {
    font-size: 1rem; /* Adjusted font size */
    margin-bottom: 20px;
  }

  .hero-image {
    width: 70%; /* Set width to 70% of the screen */
    max-width: 70vw; /* Set maximum width to 70% of viewport width */
    margin-top: 20px; /* Add some space between text and image */
    order: 2; /* Change the order of image to appear below text */
    position: static; /* Change position to static for mobile */

  }

  .hero-image img {
    width: 100%; /* Ensure image covers the entire container width */
    height: auto; /* Let the browser calculate the height to maintain aspect ratio */
  }
}

/*The tools and projects section */

.cards-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.card-tile {
    flex-basis: calc(50% - 40px);
    background-color:var(--fourth-color);
    color: var(--tertiary-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    line-height: 1.5;
}
.card-tile h3 {
  font: 'Aileron-Heavy';
}
.card-tile img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;

}



#tools h2, #tinkering-projects h2 {
    font-size: 2.6rem;
    font-family: 'Aileron-Heavy', sans-serif; 
    color: var(--tertiary-color)
  }


 


.cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--fourth-color);
    text-decoration: none;
    border-radius: 5px;
    border-color: var(--secondary-color);
    border-width: 2px; /* Adjust the width as needed */
    border-style: solid;
    font-family: 'Aileron-Semibold', sans-serif;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: var(--tertiary-color); /* 50% opacity */
  color: var(--fourth-color);
}

.cta-btn.coming-soon {
    background-color: #333; /* Adjust the color code to set the desired grey color */
    color: #fff; /* Set the text color to ensure readability */
    opacity: 0.7; /* Adjust the value to set the desired opacity */
    cursor: not-allowed; /* Optional: Change cursor style to indicate it's not clickable */
}
.learn-more {
  padding-left: 0.25rem;
  font-size: 1rem;
  align-self: center;
  color: #e5bcac;
}
.learn-more:hover {
  color: var(--tertiary-color); /* 50% opacity */
}

#tools {
    padding-top: 2rem;
}

#tinkering-projects .row {
    margin-top: 20px;
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--fourth-color); /* Use the same background color as the card tile */
  color: var(--tertiary-color); /* Use the same text color as the card tile */
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--secondary-color);
  box-shadow: 0 2px 4px rgba(69, 69, 56, 0.3), 0 4px 8px rgba(51, 51, 51, 0.3); /* Adjusted shadow for contrast */
  z-index: 9999;
}

.popup-content {
  text-align: left;
}

.close-btn {
  position: absolute;
  top: 5px; /* Adjust top position as needed */
  right: 10px; /* Adjust right position as needed */
  background: none;
  color: var(--tertiary-color);
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
}
.close-btn:hover {
  color: var(--secondary-color);
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(69, 69, 56, 0.5); /* Semi-transparent tint color */
  backdrop-filter: blur(5px); /* Apply blur effect */
  z-index: 9998; /* Ensure the overlay is below the popup */
}


/* Footer adjustments */
footer {
  margin-top: 30px;
  margin-bottom: 10px;
  color: var(--tertiary-color);
}
footer a {
  color: var(--tertiary-color);
}
footer p {
  margin-top: 10px;
}


  @media (max-width: 800px) {
  .cards-section {
        flex-direction: column; /* Change flex direction to column */
    }

    .card-tile {
        flex-basis: 100%; /* Set full width for mobile */
        text-align: left
    }
  .content {
    top: 95%;
  }
}


/*test arrow*/


/* AROOW CODE BELOW */


.content {
  position: absolute;
  left: 50%;
  top: 85%;
	transform: translate(-50%, -50%);
  z-index: 999; /* Ensure the arrow is on top of other content */
  

  
}

/* Arrow & Hover Animation */
#more-arrows {
	width: 75px;
  height: 65px;
  
  &:hover {
    
    polygon {
      fill: var(--secondary-color);
      transition: all .2s ease-out;

      &.arrow-bottom {
        transform: translateY(-18px);
      }

      &.arrow-top {
        transform: translateY(18px);
      }
      
    }
  
  }
  
}

polygon {
  fill: var(--tertiary-color);
  transition: all .2s ease-out;
    
  &.arrow-middle {
	  opacity: 0.75;
	}

	&.arrow-top {
	  opacity: 0.5
	}
	 
}

