:root {
  /* Primary Colors */
  --raffaut-yellow: #FFB238;
  --primary-gray: #191D1D;
  --darker-gray: #131616;
  --lighter-gray: #2C2C2C;

  /* Additional Colors (if needed) */
  --accent-color: #007BFF; /* Adjust as per your design */
  --success-color: #28A745;
  --error-color: #DC3545;
}

#hero{
  background-image: url(/assets/images/raffaut_home-hero.jpg);
}

.herocontent{
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: right;
  float: right;
  flex: 1;
}

.herocontent h1,
.herocontent h2{
  font-size: 2rem;
}

.herocontent h2{
  font-weight: 400;
  margin-top: -10px;
}

.herocontent p{
  font-size: 16px;
  margin: 1rem 0 2rem 0;
}

.heroLeft{
  flex: 1;
  position: relative;
  padding: 0;
}

.heroLeft p{
  transform: rotate(-90deg);
  position: absolute;
  left: -60px;
  bottom: -130px;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--raffaut-yellow);
}

#about{
  max-width: 1100px;
  margin: auto;
  padding: 6rem 0;
}

#about h4{
  text-transform: uppercase;
  color: var(--raffaut-yellow);
  letter-spacing: 7px;
  font-weight: 400;
}

#about h1{
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 1rem;
}

#about p{
  width: 60%;
}

.aboutcontent{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 100px;
  padding-top: 3rem;
}

.aboutLeft{
  display: flex;
  gap: 30px;
  width: 40%;
}

.aboutLeft img{
  width: 243px;
  height: 442px;
  flex-shrink: 0;
  object-fit: cover;
}

.aboutRight{
  width: 60%;
}

.aboutRight img{
  width: 243px;
  height: 243px;
  flex-shrink: 0;
  object-fit: cover;
  border-top-right-radius: 50px;
}

.aboutrt{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.aboutrb{
  display: flex;
  justify-content: space-between;
  padding: 4rem 2rem;
}

.aboutrb h2{
  color: var(--raffaut-yellow);
  font-size: 2rem;
  font-weight: 500;
}

.aboutrb p{
  text-transform: uppercase;
  letter-spacing: 5px;
}

.hire-us {
  position: relative;
  width: 1100px;
  background-color: var(--lighter-gray);
  height: 250px;
  overflow: hidden;
  margin-bottom: -14rem;
  margin-top: 6rem;
  border-radius: 40px;
  border-bottom-right-radius: 0;
}

.hire-us img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
  margin-top: -25px;
}

.hire-us::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 75px;
}

.hiretext {
  position: absolute; /* Change from relative to absolute */
  top: 15%;
  right: 25%;
  z-index: 1000;
  color: #fff; /* Set text color */
}

.hiretext h1 {
  font-size: 40px; /* Adjust as needed */
}

#teams{
  background-color: var(--darker-gray);
  padding: 16rem 0 6rem 0;
}

.teamsparent{
  display: flex;
  width: 1100px;
  margin: auto;
  gap: 120px;
}

.teamsGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  width: 100%;
}

#teamsbtn{
  margin-top: 6rem;
}

.teamscontent h4{
  text-transform: uppercase;
  color: var(--raffaut-yellow);
  letter-spacing: 7px;
  font-weight: 400;
}

.teamscontent h1{
  font-weight: 400;
  font-size: 2rem;
  line-height: 40px;
  margin: 1rem 0 1.5rem 0;
}

.teamscontent h2{
  color: #6D7D7D;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 16px;
  margin-top: 1rem;
}

.teamscontent p{
  margin: 2rem 0;
}

#teamsreviews{
  margin: 1rem 0;
}

#review{
  margin-top: -3px;
  margin-left: 0.5rem;
}

#services{
  max-width: 1100px;
  margin: auto;
  padding: 4rem 0;
}

.tab{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}

.tab h1{
  width: 60%;
  color: #FFF;
font-family: Kanit;
font-size: 2rem;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.about-tab{
  width: 40%;
}

.about-tab p{
  color: #6D7D7D;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
margin-bottom: 1rem;
}

.textbutton{
  color: #FFB238;
font-family: Kanit;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: normal;
letter-spacing: 6.88px;
text-transform: uppercase;
}

#projects{
  background-image: url(/assets/images/raffaut-banner.png);
  height: 400px;
  width: 100%;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
  object-fit: cover;
  margin-bottom: 4rem;
}

#blog{
  max-width: 1100px;
  margin: auto;
  padding: 4rem 0;
}

.articles{
  display: flex;
  justify-content: center;
  margin: auto;
  gap: 10px;
}

.article{
  flex: 1;
}

.article p{
  color: #6D7D7D;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 1rem 0;
}

#blog h4{
  color: #FFB238;
  text-align: center;
  font-family: Kanit;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 6.88px;
  text-transform: uppercase;
}

#blog h2{
  color: #FFF;
  text-align: center;
  font-family: Kanit;
  font-size: 2rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 2rem;
}

#blogLine{
  margin-top: 5rem;
  min-width: 1100px;
}

#subscribe{
  margin-top: 4rem;
}

.about-tab a{
  text-decoration: none;
}


/* Mobile Styles */
@media only screen and (max-width: 600px) {
  #hero {
    background-position: center; /* Adjust as needed */
    padding: 2rem;
  }

  .herocontentParent {
    flex-direction: column-reverse;
  }

  .herocontent {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .herocontent h1,
  .herocontent h2 {
    font-size: 1.5rem;
  }

  .herocontent p {
    width: 90%;
    margin: 1rem auto 2rem;
  }

  .heroLeft {
    display: none; /* Hide the rotated text on mobile */
  }

  .menu {
    display: none; /* Hide the menu on mobile, use a mobile-friendly menu icon instead */
  }
}

/* Tablet Styles */
@media only screen and (min-width: 601px) and (max-width: 1024px) {

  #hero{
    height: 85vh;
  }
  .herocontent {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items if needed */
    text-align: center; /* Center align text if needed */
    padding: 0;
    margin: 0;
  }

  .herocontent h1,
  .herocontent h2 {
    font-size: 1.8rem;
  }

  .herocontent p{
    width: 70%;
    margin-bottom: 0;
  }

  .heroLeft p {
    display: none;
  }

  .contactbtn{
    margin-bottom: 5rem;
  }
}

/* Mobile First Media Query */
@media only screen and (max-width: 1024px) {
  /* General styles for mobile devices */

  #about {
    padding: 6rem 2rem; /* Adjust padding for better tablet view */
  }

  .aboutcontent {
    flex-direction: column; /* Stack content on mobile */
  }

  .aboutcontent img {
    width: 100%; /* Full width for images on mobile */
    margin-bottom: 1rem; /* Adjust spacing between images */
  }

  .aboutrt img {
    display: none;
  }

  .aboutrt a{
    margin-top: -100px;
    margin-left: 0;
  }

  .aboutrb {
    display: none;
  }

  .aboutChild {
    text-align: center; /* Center text on mobile */
    margin-bottom: 1rem; /* Adjust spacing between child elements */
  }

  .hire-us{
    display: none;
  }

  .hire-us img {
    width: 100%; /* Full width for the image on mobile */
  }

  .hiretext {
    text-align: center; /* Center text on mobile */
    margin-top: 0rem; /* Adjust spacing for better mobile view */
  }

  .hiretext h1 {
    font-size: 1.5rem; /* Adjust font size for better mobile view */
  }

  .contactbtn {
    margin-top: 1rem; /* Adjust spacing for better mobile view */
  }
}

/* Tablet Media Query */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  /* Styles for tablets */

  #about {
    padding: 6rem 4rem; /* Adjust padding for better tablet view */
  }

  .aboutcontent img {
    width: 100%; /* Full width for images on tablet */
    margin-bottom: 2rem; /* Adjust spacing between images */
  }

  .aboutrt,
  .aboutrb {
    flex-direction: row; /* Reset flex direction for tablet view */
  }

  .aboutChild {
    margin-right: 1rem; /* Adjust spacing between child elements */
  }

  .hire-us img {
    width: 100%; /* Full width for the image on tablet */
  }

  .hiretext {
    margin-top: 2rem; /* Adjust spacing for better tablet view */
  }
}

/* Mobile First Media Query */
@media only screen and (max-width: 600px) {
  /* General styles for mobile devices */

  #teams {
    padding: 8rem 2rem; /* Adjust padding for better mobile view */
  }

  .teamsparent {
    flex-direction: column; /* Stack content on mobile */
  }

  .teamscontent,
  .teamsGrid {
    width: 400px; /* Full width for content on mobile */
  }

  .teamscontent img {
    width: 150px; /* Full width for images on mobile */
    margin-bottom: 1rem; /* Adjust spacing between images */
  }

  .stars,
  .teamsGrid {
    flex-direction: row; /* Stack content on mobile */
    align-items: center; /* Center items on mobile */
  }

  #teamsreviews,
  .contactbtn {
    margin-top: 1rem; /* Adjust spacing for better mobile view */
  }

  #review{
    display: none;
  }

  .teamsGrid{
    display: none;
  }
}

/* Tablet Media Query */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  /* Styles for tablets */

  #teams {
    padding: 8rem 4rem; /* Adjust padding for better mobile view */
    text-align: left;
    max-width: 100%;
  }

  .teamsparent {
    flex-direction: column; /* Stack content on mobile */
  }

  .teamscontent {
    width: 40%; /* Full width for content on mobile */
  }

  .teamscontent img {
    width: 150px; /* Full width for images on mobile */
    margin-bottom: 1rem; /* Adjust spacing between images */
  }

  .stars,
  .teamsGrid {
    flex-direction: row; /* Stack content on mobile */
    align-items: center; /* Center items on mobile */
  }

  #teamsreviews,
  .contactbtn {
    margin-top: 1rem; /* Adjust spacing for better mobile view */
  }

  #review{
    display: none;
  }

  .teamsGrid {
    max-width: 30%; /* Full width of the screen */
  }
}

/* Mobile First Media Query */
@media only screen and (max-width: 600px) {
  /* General styles for mobile devices */

  #services .tab {
    margin-bottom: 2rem; /* Adjust spacing between tabs for better mobile view */
    flex-direction: column; /* Stack elements in a column on mobile */
    align-items: center; /* Center items on mobile */
    text-align: center; /* Center text on mobile */
    gap: 40px;
  }

  .about-tab {
    text-align: center; /* Center text on mobile */
  }

  .about-tab p{
    margin-bottom: 2rem;
    width: 100%;
    padding: 0;
  }

  .hLine {
    display: none; /* Hide horizontal line on mobile */
  }

  .about-tab{
    padding: 0;
    width: 75%;
  }

}

/* Tablet Media Query */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  /* Styles for tablets */

  #services .tab {
    margin-bottom: 4rem; /* Adjust spacing between tabs for better tablet view */
    flex-direction: row; /* Align elements in a row on tablet */
  }

  .about-tab {
    text-align: left; /* Align text to the left on tablet */
  }
}

/* Mobile First Media Query */
@media only screen and (max-width: 600px) {
  /* General styles for mobile devices */

  #subscribe {
    padding: 2rem 4rem 4rem 4rem; /* Adjust padding for better mobile view */
  }

  #subscribe h2 {
    font-size: 1.5rem; /* Adjust font size for better mobile view */
    margin-bottom: 1rem;
  }

  #email {
    width: 100%; /* Full width for the email input on mobile */
    margin-bottom: 1rem; /* Adjust spacing between input and button */
  }

  #submit {
    width: 100%; /* Full width for the submit button on mobile */
  }

  #subscribe form {
    display: flex; /* Display form items in a row on tablet */
    flex-direction: column;
    gap: 1rem; /* Adjust spacing between input and button on tablet */
  }

  #submit{
    width: 15rem;
  }

}

/* Tablet Media Query */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  /* Styles for tablets */

  #subscribe {
    padding: 4rem 0; /* Adjust padding for better tablet view */
  }

  #subscribe form {
    display: flex; /* Display form items in a row on tablet */
    flex-direction: column;
    gap: 1rem; /* Adjust spacing between input and button on tablet */
  }

  #email {
    width: 70%; /* Adjust width for the email input on tablet */
    margin-bottom: 0; /* Remove margin bottom for better alignment on tablet */
  }

  #submit {
    width: 30%; /* Adjust width for the submit button on tablet */
  }
}



@media only screen and (min-width: 601px) and (max-width: 1024px) {
  #services .tab {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    width: 80%;
    margin: auto;
  }

  .about-tab {
    width: 100%;
    padding: 0;
  }

  .about-tab p {
    margin-bottom: 2rem;
    text-align: center;
  }

  .about-tab h5{
    text-align: center;
  }

  .tab h1{
    width: 100%;
    margin-bottom: 1rem;
  }

  .hLine {
    display: none; /* Hide horizontal line on mobile */
  }
}

/* Hero section animations */
.herocontent h1, .herocontent h2, .herocontent p {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.3s;
}

.herocontent h2 {
  animation-delay: 0.6s;
}

.herocontent p {
  animation-delay: 0.9s;
}

.herocontent .contactbtn {
  opacity: 0;
  animation: fadeIn 1s forwards;
  animation-delay: 1.2s;
}

.heroLeft p {
  opacity: 0;
  animation: fadeIn 1.5s forwards;
  animation-delay: 1.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* About section animations */
.aboutLeft img, .aboutRight img {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s ease-out;
}

.aboutChild {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}

/* Add these classes via JavaScript */
.fade-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Services hover animation */
.tab {
  transition: all 0.3s ease;
}

.tab:hover {
  background-color: rgba(255, 178, 56, 0.05);
  padding-left: 10px;
  border-radius: 8px;
}

.textbutton {
  position: relative;
  display: inline-block;
}

.textbutton::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--raffaut-yellow);
  transition: width 0.3s ease;
}

.textbutton:hover::after {
  width: 100%;
}

/* Button animation */
.contactbtn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.contactbtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  z-index: -1;
}

.contactbtn:hover::before {
  left: 0;
}

.contactbtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Navigation animations */
nav .menu ul li {
  position: relative;
  transition: color 0.3s ease;
}

nav .menu ul li::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--raffaut-yellow);
  transition: width 0.3s ease;
}

nav .menu ul li:hover::after {
  width: 100%;
}

nav .menu ul li:hover {
  color: var(--raffaut-yellow);
}

/* Mobile menu animation */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}

.mobile-menu.active {
  transform: translateX(0);
}

