*{
    box-sizing: border-box;
}
html{
    padding: 0;
}
body{
    font-family: "futura-pt", sans-serif;
    font-style: normal;
    font-size: 16px;
    font-weight: 400;
    padding: 0;
    margin: 0;
}
div.wrapper{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
h2{
    font-size: 36px;
    margin-bottom: 0;
}
main{
    min-height: 200px;
}
/***HEADER AND FOOTER STYLES***/
header,footer {
    width: 100%;
    background-color: #6C865F;
    margin: 0;
    color: #ffffff;
    padding: 16px 0;
}
header div.wrapper, div.footer-top, div.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
header nav ul, footer nav ul{
    display: flex;
    flex-direction: row;
    gap: 40px;
}
nav li {
    list-style: none;
}
header nav li a, footer nav li a{
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    text-align: end;
}
header nav li a:hover, footer nav li a:hover {
    color: #25608d;
    border-bottom: 5px solid #25608d;
}
/***HERO STYLES***/
#hero {
  width: 100%;
  min-height: 200px;
  padding: 100px 0 120px;
  background-image: url(assets/cat-background.jpg);
  background-color: #F7F6EB;
  background-position: top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  align-items: center;
  position: relative;
  z-index: 1;
}
.overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#hero p{
    width: 100%;
    font-size: 24px;
    text-align: center;
    color: #F7F6EB;
}
#hero h1{
    font-size: 72px;
    margin-bottom: 0;
    text-align: center;
    color: #F7F6EB;
}
a.button {
  display: inline-block;
  margin: 20px;
  background-color: #6C865F;
  color: #F7F6EB;
  text-decoration: none;
  font-size: 24px;
  padding: 20px 80px;
  border-radius: 20px;
}
a.button:hover {
    background-color: #F7F6EB;
    color: #6C865F;
}



/***ABOUTSTYLES***/
#about{
    width: 100%;
    padding: 120px 0;
    background-color: #F7F6EB;
}
#about div.wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}
#about div.column-half{
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 0;
}
#about img {
    float: left;
    width: 33%;
    height: auto;
    border-radius: 4px;
    }
#about {
    color: #000000;
}
#about p{
    color: #000000;
    text-align: end;
    line-height: 1.4;
}
div.column-half {
    width: 50%;
}
@media screen and (max-width: 860px) {
    #about div.wrapper {
        flex-direction: column;
        padding-left: 0;
        padding: 20px;
    }
    #about img {
        width: 70%;
        max-width: 100%;
    }
    #about div.column-half {
        align-items: center;
        width: 100%;
    }
    #about h2 {
        font-size: 32px;
        transition: 0.3s;
    }
    #about {
        padding: 50px 0;
    }
    #about p {
        text-align: center;
        margin: 0 auto;
    }
}


/*** INSPIRATION STYLES ***/
#inspo {
  width: 100%;
  background-color: #F7F6EB;
  text-align: center;
  padding: 40px 20px; /* Add padding for better spacing */
}

#inspo div.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px; /* Ensure consistent spacing */
}

#inspo blockquote {
  margin: 20px auto; /* Center the blockquote with appropriate spacing */
  font-size: 24px;
  line-height: 1.5; /* Improve readability */
  color: #333333; /* Softer black for better aesthetics */
  max-width: 800px; /* Constrain the width for better readability */
  padding: 20px;
  border-left: 5px solid #6C865F; /* Classic quote styling with a left border */
  background-color: #F7F6EB; /* Subtle background to highlight */
  border-radius: 4px; /* Rounded corners for a modern look */
}

#inspo p {
  margin: 20px auto 0; /* Adjust for better placement */
  font-size: 18px; /* Slightly smaller font for attribution */
  font-weight: 400;
  color: #555555; /* Softer grey for contrast */
  max-width: 600px; /* Constrain width for consistency */
  text-align: center;
}

/***SLIDER STYLES***/
/* Gallery Section */
#gallery {
  background-color: #F7F6EB; /* Light neutral background */
  color: #6C865F; /* Harmonious text color */
  padding: 50px 0;
  text-align: center;
}

/* Styling for Gallery Headings */
#gallery h2 {
  color: #000000;
}

/* Carousel Items */
#gallery .item img {
  max-width: 100%;
  border-radius: 8px; /* Slightly rounded edges for a softer look */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}


/* Carousel Navigation (if applicable) */
#gallery input[type="radio"]:checked + .item {
  border: 2px solid #25608D; 
}

/* General Text Styling */
#gallery p {
  font-size: 1.2rem;
  color: #6C865F; 
}

main#carousel {
  display: flex;
  justify-content: center;   
  align-items: center;       
  overflow: hidden;
  position: relative;
  width: 100%;               
  height: 500px;             
  padding: 0;                
  transform-style: preserve-3d;
  perspective: 600px;
  background-color: #F7F6EB;
}

div.item {
  position: absolute;
  width: 300px;
  height: 400px;
  background-color: coral;
  --r: calc(var(--position) - var(--offset));
  --abs: max(calc(var(--r) * -1), var(--r));
  transition: all 0.25s linear;
  transform: rotateY(calc(-10deg * var(--r)))
    translateX(calc(-300px * var(--r)));
  z-index: calc((var(--position) - var(--abs)));
}

div.item:nth-of-type(1) {
  --offset: 1;
  background-color: #90f1ef;
  border-radius: 8px;
}
div.item:nth-of-type(2) {
  --offset: 2;
  background-color: #ff70a6;
  border-radius: 8px;
}
div.item:nth-of-type(3) {
  --offset: 3;
  background-color: #ff9770;
  border-radius: 8px;
}
div.item:nth-of-type(4) {
  --offset: 4;
  background-color: #ffd670;
  border-radius: 8px;
}
div.item:nth-of-type(5) {
  --offset: 5;
  background-color: #e9ff70;
  border-radius: 8px;
}

input:nth-of-type(1) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
input:nth-of-type(1):checked ~ main#carousel {
  --position: 1;
}

input:nth-of-type(2) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
input:nth-of-type(2):checked ~ main#carousel {
  --position: 2;
}

input:nth-of-type(3) {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}
input:nth-of-type(3):checked ~ main#carousel {
  --position: 3;
}

input:nth-of-type(4) {
  grid-column: 5 / 6;
  grid-row: 2 / 3;
}
input:nth-of-type(4):checked ~ main#carousel {
  --position: 4;
}
input:nth-of-type(5) {
  grid-column: 6 / 7;
  grid-row: 2 / 3;
}
input:nth-of-type(5):checked ~ main#carousel {
  --position: 5;
}

#hero h2 {
  font-size: 48px;
  margin-bottom: 0;
  text-align: center;
}
/* Style for card hover opacity */
.card:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease-in-out;
}

.card img {
  transition: opacity 0.3s ease-in-out;
}

.card:hover img {
  opacity: 0.7;
}

/*** SLIDER STYLES ***/
/* Gallery Section */
#gallery {
  background-color: #F7F6EB; /* Light neutral background */
  color: #6C865F; /* Harmonious text color */
  padding: 50px 0;
  text-align: center;
  position: relative;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Styling for Gallery Headings */
#gallery h2 {
  color: #000000;
}

/* Carousel Container */
#gallery .carousel {
  display: flex;
  gap: 1em; /* Space between items */
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-snap-type: x mandatory; /* Snap scrolling to items */
  padding: 10px;
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on mobile devices */
  scroll-behavior: smooth; /* Enable smooth scroll behavior */
}

/* Carousel Items */
#gallery .carousel .item {
  flex: 0 0 auto; /* Ensure items do not shrink or grow */
  width: 300px;
  scroll-snap-align: center; /* Snap item to center of the viewport */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  background-color: coral; /* Placeholder for background color */
  transition: transform 0.3s ease-in-out;
}

#gallery .carousel .item:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Custom Scrollbar for Better Experience */
#gallery .carousel::-webkit-scrollbar {
  height: 8px; /* Horizontal scrollbar height */
}

#gallery .carousel::-webkit-scrollbar-thumb {
  background-color: #6C865F;
  border-radius: 4px;
}

#gallery .carousel::-webkit-scrollbar-track {
  background-color: #F7F6EB;
}


#gallery .prev {
  left: 10px;
}

#gallery .next {
  right: 10px;
}

#gallery .prev:hover, #gallery .next:hover {
  background-color: rgba(255, 255, 255, 1); /* Change color on hover */
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
  #gallery .carousel .item {
    width: 250px; /* Adjust size for smaller screens */
  }
}

/* Touch swipe support (for mobile and tablets) */
#gallery .carousel {
  touch-action: pan-x; /* Enable horizontal touch swipe gestures */
}



/***PROJECTS SECTION***/

h5 {
  font-size: 1rem;
  color: #007489;
}

p {
	margin-bottom: 1.5em;
  color: #000000;
}

b,
strong {
	font-weight: bold;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #000000;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 1.5rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

sup,
sub {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	bottom: 1ex;
}

sub {
	top: .5ex;
}

small {
	font-size: 75%;
}

big {
	font-size: 125%;
}

.masthead {
	background-color: #005b75;
}

.masthead p, .masthead p a {
  color: white;
}

.site-title {
	color: white;
}

img {
	display: block;
	border: 0;
	width: 100%;
	height: auto;
}

.card {
	background: white;
	margin-bottom: 2em;	
}

.card a {
	color: black;
	text-decoration: none;
}

.card a:hover {
	box-shadow: 3px 3px 8px hsl(0, 0%, 80%);
}

.card-content {
	padding: 1.4em;
}

.card-content h2 {
	margin-top: 0;
	margin-bottom: .5em;
	font-weight: bold;
}

.card-content p {
	font-size: 80%;
}

/* Flexbox stuff */

@media screen and (min-width: 40em) {
    .cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .card {
        flex: 0 1 calc(50% - 1em);
    }
}

@media screen and (min-width: 60em) {

    .card {
        flex: 0 1 calc(25% - 1em);
    }
}

/* Full Image Modal Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Black background with transparency */
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.modal:target {
  display: flex; /* Show modal when targeted */
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border: 5px solid #fff;
  border-radius: 5px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  z-index: 1100;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #ff0000;
}
/* Projects Section Styling */
#projects .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em; /* Spacing between cards */
  margin-top: 1.5em;
  padding: 20px;
}

.card {
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.card-content {
  padding: 1em;
  text-align: center;
}

.card-content h5 {
  font-size: 1.2rem;
  color: #007489;
  margin-bottom: 0.5em;
}

.card-content p {
  font-size: 1rem;
  color: #333;
}

/*** Hamburger Styles ***/
.hamburger {
  display: none;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: white;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-item {
  margin-left: 5rem;
}

.nav-link {
  font-size: 1.35rem;
  font-weight: 400;
  color: #6C865F;
}

a.nav-link:hover {
  border-bottom: 2px solid #55b57a;
}

a.nav-link:active {
  border-bottom: 2px solid #55b57a;
}

/*** MEDIA QUERIES ***/
@media only screen and (max-width:900px) {
  #about p {
      font-size: 1em;
  }
}
  @media only screen and (max-width:760px) {
    #hero {
        background-size: 100%;
    }
  }

  br{
    display: none;
  }

  @media screen and (max-width:860px) {
    #about div.wrapper {
        flex-direction: column;
        padding-left: 0;
        padding: 20px;
    }
    #about img{
        width: 70%;
        max-width: 100%;
    }
    #about div.column-half {
        align-items: center;
        width: 100%;
    }
   #about h2 {
        font-size: 32px;
        transition: 0.3s;
    }
    #about {
        padding: 50px 0;
    }
   
}

/* Media Queries for the NAV */

@media only screen and (max-width: 1150px) {
  .nav-menu {
    position: absolute;
    z-index: 10;
    left: -100%;
    top: 5rem;
    flex-direction: column;
    background-color: #6C865F;
    width: 100%;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 30px;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 2.5rem 0;
  }

  .hamburger {
    display: block;
    cursor: pointer;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
