/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lobster&family=Satisfy&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Libre+Barcode+39+Text&family=Playwrite+RO+Guides&display=swap");

/* Color Palette */
:root {
  --dark-gray: #1a1a1a;
  --orange: #f4a261;
  --yellow: #e9c46a;
  --teal: #2a9d8f;
  --white: #fff;
  --light-gray: #ccc;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--dark-gray);
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar Styles */
.header {
  background: linear-gradient(135deg, #1a1a1a, #4b4a4a);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 60px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(235, 228, 228, 0.2);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-item a {
  text-decoration: none;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  padding: 10px 15px;
  transition: all 0.3s ease;
  position: relative;
}

.logo-img {
  height: 90px;
  filter: brightness(0) invert(1); /* Makes the logo white */
}

/* Hover Effect */
.nav-item a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--orange);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.nav-item a:hover::after {
  width: 100%;
}

.nav-item a:hover {
  color: var(--orange);
}

.nav-item a.active {
  color: var(--orange);
  font-weight: bold;
}

/* Hamburger Menu Styles */
.hamburger {
  display: none; /* Hide by default on desktop */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

/* Mobile Navbar Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* Show on mobile */
    flex-direction: column;
  }
  .hero-content h1 span {
    display: block; /* This moves the span to the next line */
    text-align: center; /* Optional: Centers the span text */
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%; /* Hide off-screen by default */
    height: 100vh;
    width: 70%; /* Adjust width as needed */
    background: rgba(26, 26, 26, 0.95); /* Semi-transparent background */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-list.active {
    right: 0; /* Slide in when active */
  }

  .nav-item a {
    font-size: 1.5rem; /* Larger text for mobile */
  }

  /* Animate Hamburger to "X" */
  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Hero Section */
.hero {
  background-image: url("/assets/images/hero-bg.jpeg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-family: "Playwrite RO Guides";
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.hero h1 span {
  font-family: "Libre Barcode 39 Text";
  font-size: 2rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 50px;
  color: rgb(219, 218, 218);
}

/* Buttons */
.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 11px 25px;
  text-decoration: none;
  font-size: 20px;
  color: white;
  background: linear-gradient(to right, #ffa500, #bb7b03);
  transition: 1s;
  box-shadow: 6px 6px 0 black;
  transform: skewX(-15deg);
  border: none;
  cursor: pointer;
}

.cta:focus {
  outline: none;
}

.cta:hover {
  transition: 0.5s;
  box-shadow: 8px 8px 0 rgba(203, 174, 174, 0.3);
}

.cta .second {
  transition: 0.5s;
  margin-right: 0px;
}

.cta:hover .second {
  transition: 0.5s;
  margin-right: 25px;
}

.span {
  transform: skewX(15deg);
}

.second {
  width: 20px;
  margin-left: 30px;
  position: relative;
  top: 12%;
}

.one {
  transition: 0.4s;
  transform: translateX(-60%);
}

.two {
  transition: 0.5s;
  transform: translateX(-30%);
}

.cta:hover .three {
  animation: color_anim 1s infinite 0.2s;
}

.cta:hover .one {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.6s;
}

.cta:hover .two {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.4s;
}

@keyframes color_anim {
  0% {
    fill: white;
  }

  50% {
    fill: #fbc638;
  }

  100% {
    fill: white;
  }
}

/* Main Content */
main {
  flex: 1;
  padding: 30px 20px 20px;
  text-align: center;
}

/* About button */
.button {
  margin-bottom: 20px;
  height: auto;
  background: transparent;
  padding: 0;
  border: none;
}

/* button styling */
.button {
  --border-right: 6px;
  --text-stroke-color: rgba(255, 255, 255, 0.6);
  --animation-color: #fbc638;
  --fs-size: 2em;
  letter-spacing: 3px;
  text-decoration: none;
  font-size: var(--fs-size);
  font-family: "Arial";
  position: relative;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
}

/* this is the text, when you hover on button */
.hover-text {
  position: absolute;
  box-sizing: border-box;
  content: attr(data-text);
  color: var(--animation-color);
  width: 0%;
  inset: 0;
  border-right: var(--border-right) solid var(--animation-color);
  overflow: hidden;
  transition: 0.5s;
  -webkit-text-stroke: 1px var(--animation-color);
}

/* hover */
.button:hover .hover-text {
  width: 100%;
  filter: drop-shadow(0 5px 23px var(--animation-color));
}

/* About */
#about {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding-top: 100px;
  margin-top: -100px;
}

/* card style */
.card {
  background: rgba(217, 211, 211, 0.1); /* Lightened background */
  border-radius: 15px;
  padding: 25px;
  width: 48%;
  box-shadow: 0 8px 32px rgba(116, 119, 147, 0.2); /* Soft shadow */
  backdrop-filter: blur(9.5px);
  -webkit-backdrop-filter: blur(9.5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  position: relative;
  overflow: hidden; /* Hide overflow for smooth animations */
}

.card img {
  width: 60px; /* Adjust the size of the logo */
  height: auto; /* Maintain aspect ratio */
  display: block;
  margin: 0 auto 15px auto; /* Center the image and add space below it */
  filter: invert(1); /* Inverts the color to white if it's a black SVG */
}

.card h3 {
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #fbc638; /* Cool color for the title */
}

.card p {
  font-size: 1.1em;
  line-height: 1.5;
  color: #f0f0f0; /* Subtle text color */
}

/* Hover effect */
.card:hover {
  transform: translateY(-15px); /* Smooth floating effect */
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3); /* Stronger shadow */
  background: rgba(217, 211, 211, 0.2); /* Darker background on hover */
}

/* Adding a cool glowing outline effect */
.card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.card:hover::after {
  opacity: 0.1; /* Show the glowing outline on hover */
}

/* Add smooth animation for text */
.card h3,
.card p {
  transition: all 0.3s ease; /* Smooth text scaling */
}

.card:hover h3 {
  font-size: 1.75em; /* Title grows slightly on hover */
  color: #fbc638; /* Maintain the color */
}

.card:hover p {
  font-size: 1.1em; /* Increase paragraph size for emphasis */
}

/* Responsive for mobile */
@media screen and (max-width: 768px) {
  #about {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 80%;
    margin-bottom: 20px;
  }
}

/* section */
section {
  margin-bottom: 50px;
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  color: var(--orange);
  margin-bottom: 20px;
}

p {
  font-size: 1.2rem;
  color: var(--light-gray);
}

/* Services section*/
#services {
  padding: 100px 20px;
  text-align: center;
  background-color: var(--dark-gray);
}

.services-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgb(70, 68, 68);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(184, 115, 25, 0.496);
  padding: 20px 30px;
  margin: 20px 0;
  width: 100%;
  max-width: 900px;
  height: 250px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease-out;
}

.service-card.show {
  opacity: 1;
  transform: translateY(0);
}

.service-content {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.service-card img {
  width: 40%;
  border-radius: 8px;
  max-height: 100%;
  width: 28%;
  height: auto;
}

.service-text {
  text-align: left;
  width: 60%;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: white;
}

.service-card p {
  font-size: 1.1rem;
  color: #d1cfcf;
}

.cta-button {
  margin-top: 50px;
  padding: 15px 40px;
  font-size: 1.3rem;
  color: white;
  background-color: #0077b6;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #005f8f;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgb(228, 226, 223, 0.4);
  transition: transform 0.3s ease;
}

/* End of Services section */

/* Footer */
.footer {
  background: #1a1a1a;
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
  font-family: "Montserrat", sans-serif;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}

.footer hr {
  width: 50%;
  margin: 10px auto;
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

/* New layout styles */
.footer-content {
  text-align: center;
}

.contact-header {
  font-size: 18px;
  margin-bottom: 10px;
}

.contact-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 20%;
}

.contact-info a,
.contact-info span {
  flex: 1; /* Allows equal space distribution */
  text-align: center; /* Center-aligns text within each span */
}

.contact-info a {
  text-decoration: none;
  color: var(--white);
}

footer p {
  font-size: 14px;
}
footer p span {
  color: var(--orange);
}

/* Responsive Design */

/* Mobile version */
@media (max-width: 768px) {
  /* Navbar */
  .nav-list {
    flex-direction: column; /* Stack items */
    align-items: center;
    gap: 10px;
  }

  .nav-item {
    margin: 10px 0;
  }

  /* Hero Section */
  .hero h1 {
    font-size: 1rem; /* Adjust font size */
  }

  .hero p {
    font-size: 0.9rem; /* Adjust font size */
  }

  /* Buttons */
  .cta {
    padding: 10px 20px; /* Adjust button size */
    font-size: 1rem;
  }

  /* Main Content */
  main {
    padding: 80px 15px;
  }

  /* About Section */
  #about {
    flex-direction: column;
    align-items: center;
  }

  /* Cards */
  .card {
    width: 90%; /* Card takes full width */
    margin-bottom: 20px;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

/* tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Navbar */
  .nav-list {
    flex-direction: row; /* Horizontal layout */
  }

  /* Hero Section */
  .hero h1 {
    font-size: 1.3rem; /* Larger font */
  }

  .hero p {
    font-size: 1.3rem; /* Larger font */
  }

  /* Buttons */
  .cta {
    padding: 12px 25px;
    font-size: 1.2rem;
  }

  /* Main Content */
  main {
    padding: 90px 30px;
  }

  /* About Section */
  #about {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row; /* Row layout for tablets */
    justify-content: space-around;
  }

  /* Cards in About Section */
  #about > div {
    flex: 1 1 48%; /* Change to 2 columns (adjust width to fit 2 items in a row) */
    margin-bottom: 20px;
  }

  /* Cards */
  .card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .card {
    width: 48%; /* Adjusted to fit 2 items in a row */
    margin-bottom: 20px;
  }
}

/* desktops */
@media (min-width: 1024px) {
  /* Navbar */
  .nav {
    display: flex;
    justify-content: center; /* Center the navbar content */
    align-items: center;
    padding: 0.5rem 1rem;
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto; /* Center the navbar */
    height: 70px;
    position: relative; /* Needed for absolute positioning of the hamburger */
  }

  .nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
  }

  /* Hamburger Menu Styles */
  .hamburger {
    display: none; /* Hide by default on desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    position: absolute; /* Position the hamburger absolutely */
    right: 1rem; /* Place it on the right side */
  }

  .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
  }
  .nav-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; /* Horizontal layout */
  }

  .logo {
    margin-right: 1.5rem;
    margin-top: 2rem;
  }

  /* Hero Section */
  .hero h1 {
    font-size: 2rem; /* Larger font for desktop */
  }

  .hero p {
    font-size: 1.8rem;
  }

  /* Buttons */
  .cta {
    padding: 15px 30px;
    font-size: 1.4rem;
  }

  /* Main Content */
  main {
    padding: 100px 50px;
  }

  /* About Section */
  #about {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Cards */
  .card {
    width: 30%; /* Three cards per row */
  }
}
