/* Resetting default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}


/* Font styles and global styles */
body, h1, h2, h3, h4, .nav {
  font-family: 'freight-sans-compressed-pro', sans-serif;
}

body {
  font-size: 1.8rem;
  font-weight: 400; 
  margin: 10px auto;
  background-color: #e5e5e5;
}

.fade-slide{
opacity: 0;
transform: translateY(50px);
transition: opacity 1s, transform 1s;
}
.fade-slide.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Heading styles */
h1 {
  font-size: 5rem;
  text-align: center;
  text-transform: uppercase;
  line-height: .8;
  font-weight:900;
}

h2, h3, h4 {
  font-size:3rem;
  text-align: left;
  margin-bottom:25px;
  text-transform: uppercase;
}


h3{
  font-size:1.65rem;
}

h4{
  font-size:1.25rem;
}

h2 {
  font-weight: 700;
}

h3, h4 {
  font-weight: 600;
}

sup {
  font-size: .84rem;
}

/* List styles */
ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.5em;
}

/* Media query for mobile view */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
  }

  body {
    font-size: 1.6rem;
  }
}

/* Link hover styles */
footer a:hover {
  color: #8e9400;
  transition: .3s;
}

/* Section divider */
.section-divider {
  height: 1px;
  background-color: #aaa;
  max-width: 800px;
  margin: 50px auto;
}

.nav {
  font-size: 1.125rem;
}

/* General section styles */
.wrapper {
  max-width: 800px; 
  margin: 0 auto;
  padding: 20px;
  width:100%;
}

/* Navigation styles */
/* .nav-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background-color: #cccccc;
  height: 50px;
  padding: 0 20px;
  max-width:800px;
}

.nav-button {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: auto 0;
}

.under-nav {
  padding-top:1px;
} */


/* Hero section styles */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.hero .wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* SVG image animation */
.svg-img {
  width: 395px;
  height: 258px;
  animation: float 3s ease-in-out infinite;
  margin-bottom: 25px;
}

/* Button gradient animation */
@keyframes movingGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Button styles */
.button {
  background: linear-gradient(270deg, #8e9400, #a9ac00);
  background-size: 400% 400%;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 15px 40px;
  text-decoration: none;
  text-align: center;
  animation: movingGradient 8s ease infinite;
  margin: 50px 0;
  text-transform: uppercase;
}

/* Button hover styles */
.button:hover {
  animation: movingGradient 4s ease infinite;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* About Me section styles */
.about-me {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 50px 20px;
  align-items: center;
  justify-content: center;
  width:100%;
  background-image:url(images/green-dots_1200x600.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; 
}

/* Quote and description styles */
.quote img {
  width:100%;
  margin-bottom:50px;
}

.quote, .description {
  flex: 1;
}

/* Media query for mobile view */
@media (max-width: 768px) {
  .quote img {
    margin-bottom:25px;
  }
  .quote,
  .description {
    flex: 100%;
    padding: 0 10px;
  }
}

/* No underline link style */
.no-underline {
  text-decoration: none;
  color: inherit; 
}

/* Media query for mobile view */
@media (max-width: 768px) { 
  .quote,
  .description {
    flex: 100%;
  }
}

/* Recent Work */

.recent-work {
  margin-bottom:10px;
}

.recent-work img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.recent-work:hover img {
  transform: scale(1.1);
}

.recent-work-section {
  background-color: #8e9400;
  background-image: url(images/gray-dots.webp);
}

.recent-work-section,
.notable-clients {
  padding: 50px 20px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.recent-work-section h2,
.portfolio-work-section h2 {
  color: white;
}

/* Notable Clients */
.notable-clients {
  background-image: url(images/green-dots_1200x600.webp);
  background-color: #e5e5e5;
}

.client-logos-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 5px;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.client-logo {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.client-logo img {
  width: 100%;
  height: auto;
  transition: transform 0.3s, filter 0.3s;
}

.client-logo:hover img {
  box-shadow: 0 0 20px rgba(142, 148, 0, 0.7);
  transform: scale(1.05);
}

.client-logos-container .card {
  margin-bottom:0;
}

/* Media queries for responsive client logos */
@media (max-width: 1024px) {
  .client-logos-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .client-logos-container {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(8, 1fr);
  }
  .notable-clients {
    padding: 20px;
  }
}

/* Some Skills */
.some-skills {
  margin-top: 50px;
  margin-bottom: 50px;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .some-skills {
    font-size:1rem;
  }
}

.the-skills {
  display: flex;
  justify-content: space-between;
  width:100%;
  text-align: center;
}

.skills-column {
  display: flex;
  flex-direction: column;
  width: 30%;
}

.the-skills ul {
  list-style-type: none;
  padding: 1rem;
  margin-bottom: 0;
}

.the-skills li {
  list-style-type: none;
  margin-bottom: 1em;
}
.some-skills a {
  color:#8e9400;
}
.some-skills a:hover {
color:white;
transition: 0.3s;
}

.border{
  border-left: 1px gray solid;
  border-right: 1px gray solid;
}

/* Block Quote */
.giant-quote {
  text-align: left;
  padding: 50px 20px;
  background-color: #8e9400;
  color: white;
  background-image:url(images/gray-dots.webp);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; 
}

.giant-quote blockquote {
  font-size: 7rem; 
  line-height: .75;
  font-weight: 900;
}

.giant-quote blockquote p {
  font-size: 36px; 
  text-align: left;
  line-height: 1;
  display: block;
  font-weight:400;
  margin-top:20px;
}

/* Media queries for Block Quote */
@media (max-width: 768px) {
  .giant-quote blockquote {
    font-size: 2.8rem; 
  }

  .giant-quote blockquote footer {
    font-size: 18px; 
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background-color: #020202;
  color: rgb(66, 66, 66);
}

footer h2 {
  text-align: center;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0;
}

.footer-links {
  margin-bottom: 0;
}

.footer-credits {
  font-size: 0.9rem; /* Adjust this value to set the desired smaller font size */
  font-style: italic;
}

.trademark {
  font-size: .84rem;
}

.productions {
  font-size: .75rem;
  text-transform: uppercase;
}

/* Gradient Animation */
@keyframes moving-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.moving-gradient-text {
  background-image: linear-gradient(90deg, #8e9400, #5d5f00, #a9ac00);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: moving-gradient 4s linear infinite;
}

.metallic-gradient-text {
  background-image: linear-gradient(90deg, #c5c6c7, #ebebeb, #9ea1a3, #ebebeb, #c5c6c7);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: moving-gradient 4s linear infinite;
}

/* Portfolio */
.portfolio-header {
  background: linear-gradient(270deg, #8e9400, #5d5f00, #a9ac00);
  background-size: 400% 400%;
  animation: movingGradient 30s ease infinite;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  margin: auto;
  margin-bottom: 75px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header p {
  max-width:500px;
}

.testing p {
  margin-bottom: 25px;
}

/* Emails and Some Recent Work */
.emails,
.recent-work {
  overflow: hidden;
  position: relative;
}

.emails img,
.recent-work img {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.emails img {
  border: 5px solid white;
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.image {
  max-width: 49%; /* Adjust this value to control the spacing between the images */
  height: auto;
}

/* Add this media query to stack images on top of each other on smaller screens */
@media (max-width: 768px) {
  .image {
    max-width: 100%;
  }
}

.email-sample, .email-sample-nomodal {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.email-sample:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.view-email-btn {
  position: absolute;
  background-color: #8e9400;
  color: #ffffff;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.email-sample:hover .view-email-btn {
  opacity: 1;
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px; /* Add gap to create spacing between the images */
}

.image {
  max-width: calc(50% - 10px); /* Adjust this value to control the spacing between the images */
  height: auto;
}



/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 100;
  cursor: pointer;
}

.modal.open {
  display: flex;
}

.modal-inner {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
}

.modal-content {
  display: block;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  border: 5px solid white;
  cursor: pointer;
  width:800px;
}

@media (max-width: 768px) {
  .recent-work-section,
  .portfolio-work-section {
    padding: 50px 20px;
  }
}

/* Cards and Skills Cards */

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.card,
.skills-card {
  background-color: #f8f9fa;
  padding: 1rem;
  transition: all 0.3s ease; /* Add a smooth transition for scaling and box-shadow */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-bottom: 15px;
  flex: 1;
  max-width: 100%;
}

.skills-card {
  padding: 2rem;
  max-width: 800px;
}

.card:hover,
.skills-card:hover {
  transform: scale(1.02); /* Slightly grow the card on hover */
  box-shadow: 0 4px 6px rgba(142, 148, 0, 0.4); /* Change the drop shadow color to green */
}

.card p,
.skills-card p {
  font-size: 1.15rem;
  margin: 10px 0;
}

@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
  }
  .card {
    max-width: 100%;
  }
}

/* Exit Modal */

.exit-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.82);
}

.exit-modal{
  color:white;
}

.exit-modal h2 {
  margin-bottom:0;
}

.exit-modal p {
  margin-bottom: 10px;
}

.exit-modal-content {
  display:flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
  background-color: #6a6e1f00;
  margin: 15% auto;
  padding: 20px;
  width: 80%;
}

.close {
  color: #fff;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #6a6e1f;
  text-decoration: none;
  cursor: pointer;
}

.recent-work {
  background: linear-gradient(270deg, #8e9400, #5d5f00, #a9ac00);
  background-size: 400% 400%;
  animation: movingGradient 30s ease infinite;
  border:10px white solid;
}

@media (max-width: 768px) {
  .svg-img {
    width:300px;
  }
}