/* Base styles for the application */
:root {
  /* CSS HEX */
  --federal-blue: #03045eff; /* primary: header, footer, nav backgrounds, section dividers, modal overlay*/
  --honolulu-blue: #0077b6ff; /* secondary: cta,section headers, hover effects, icons */
  --pacific-cyan: #00b4d8ff; /* accent: secondary btns, features, higlights, interactive UI */
  --non-photo-blue: #90e0efff; /* card-bg: backgroud for cards, feature blocks, info blocks, input fields, light hover states  */
  --light-cyan: #caf0f8ff; /* background: main background, Subtle separators or background color for testimonials, client logos, or light sections */
  --grad: linear-gradient(
    135deg,
    var(--federal-blue),
    var(--honolulu-blue)
  ); /* bacgorund color for CTA and hero banners or overlays */
  --btn: var(--honolulu-blue); /* button color */
  --btn-hover: var(--pacific-cyan); /* button hover color */
  --text-color: var(--federal-blue); /* primary text color */
  --text-color2: var(--honolulu-blue); /* secondary text color */
  --light-cyan: #caf0f8ff;
  --text-dark: #1e1e1e;
  --text-light: #ffffff;
  --border-radius: 8px;
  --transition: all 0.3s ease;

  /* ----------------------------- */
  /* archer styles */
  --background: var(--light-cyan);
  --card-bg: var(--non-photo-blue);
  --primary: var(--federal-blue);
  --secondary: var(--honolulu-blue);
  --accent: var(--pacific-cyan);
  /*   
  --background-color: #f4f4f4;
  --background-color2: #bdbdbd;
  --primary-color: #0c1e29;
  --secondary-dark: #1b2f3d;
  --accent-gold: #e7b06c;
  --highlight: #dab176;
  --background: #132733;
  --text-color: #a1a1a1;
  --text-color2: #333; */
}

/* Main content */

/* Parralax Hero */
.hero-img {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("../images/excavator.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  /* background: rgba(0, 0, 0, 0.5); */
  background: linear-gradient(
    to bottom,
    rgba(12, 30, 41, 0.8),
    rgba(21, 28, 32, 0.2)
  );
  z-index: 1;
}
.hero-img img {
  position: relative;
  width: 100%;
  height: auto;
}
.hero-img h1 {
  position: relative;
  z-index: 2;
  color: var(--accent);
  font-size: 3em;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

/* Hook section */
.hook {
  text-align: center;
  background: var(--grad);
  padding: 25px 0;
}
.btn-primary {
  background-color: var(--honolulu-blue);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}
.btn-primary:hover {
  background-color: var(--pacific-cyan);
}
.hero.home {
  color: var(--text-light);
  text-align: center;
}
.hero.home h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.hero.home h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--pacific-cyan);
}
.hero.home p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

/* About Section */
.section {
  background-color: var(--non-photo-blue);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  max-width: 960px;
  margin: 3rem auto;
}
.section h2,
.section h3,
.section h4 {
  color: var(--federal-blue);
  margin-top: 1.5rem;
}
.section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.section ul li {
  margin-bottom: 0.5rem;
  text-align: left;
}
.about {
  padding: 30px 10px;
  gap: 20px;
}
.about-card-right {
  background-color: var(--secondary);
  color: var(--text-light);
  width: 50vw;
  padding: 20px;
  margin: 10px 0;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  translate: 420px;
}
.about-card-left {
  background-color: var(--secondary);
  width: 50vw;
  padding: 20px;
  margin: 10px 0;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  translate: -140px;
}
#why-us {
  text-align: center;
  padding: 0 60px;
}
.about-div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.about-div img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* first about div */
#div1 + img {
  grid-column: 2/3;
  justify-self: last baseline;
}

#div1 {
  left: 420px;
}

/* second about div */
#div2 + img {
  grid-column: 1/2;
}

#div2 {
  right: 420px;
}

/* common about div styles */
#div1,
#div2 {
  position: absolute;
  top: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  border-radius: 20px;
  height: 340px;
  width: 350px;
  padding: 20px;
  color: var(--text-color2);
  box-shadow: 0 2px 5px rgba(32, 32, 32, 0.1);
}

.about-div h3 {
  font-size: 1.5em;
  text-align: center;
}

/* contact section */

.contact .contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-section input,
.contact-section textarea {
  padding: 0.75rem;
  border: 1px solid var(--honolulu-blue);
  border-radius: var(--border-radius);
  font-size: 1rem;
  resize: vertical;
}

.contact-section textarea {
  min-height: 150px;
}

.contact-section .contact-info {
  margin-top: 2rem;
}
/* Services Section */
.services {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 3fr 3fr;
  width: 100%;
  background-image: url("../images/gemstone.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* sercives card */
.card {
  background-color: var(--primary);
  width: 60vw;
  padding: 20px;
  margin: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* main services */
#main-services {
  position: relative;
  grid-column: 2/4;
  grid-row: 2/3;
  justify-self: last baseline;
}

#helmet {
  position: absolute;
  top: 40px;
  left: -350px;
  width: 280px;
  height: auto;
}

#main-services.card {
  padding-right: 50px;
  border-radius: 10px 0 0 10px;
}

#service-hook.card {
  padding-left: 50px;
  border-radius: 0 10px 10px 0;
}

/* service hook */
#service-hook {
  position: relative;
  grid-column: 1/3;
  grid-row: 3/4;
  justify-self: first baseline;
}

#hook-img {
  position: absolute;
  top: 40px;
  right: -370px;
  width: 350px;
  height: auto;
}

/* button */
button {
  background: var(--btn);
  color: var(--text-color2);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

/* Tech display and hook */
.tech-intro {
  background-color: var(--light-cyan);
  padding: 30px 40px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 60px;
}

.tech-intro h2 {
  font-size: 2.5rem;
  color: var(--federal-blue);
  margin-bottom: 20px;
}

.tech-intro p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 20px;
  color: #333;
}

.tech-intro strong {
  color: var(--honolulu-blue);
}

.btn.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: var(--pacific-cyan);
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn.btn-primary:hover {
  background-color: var(--honolulu-blue);
}

/* services display */

/* carousel */
#Carousel-slider {
  position: relative;
  padding-bottom: 40px;
  background: var(--secondary);
}

#Carousel-slider h2 {
  padding: 30px 0 0 0;
  margin: 0;
  text-align: center;
  color: var(--background);
  font-size: 40px;
  font-style: italic;
}

.carousel-container {
  position: relative;
  width: 900px;
  aspect-ratio: 21/9;
  margin: 2rem auto;
  display: block;
  border-radius: 34px;
  /* border: 2px var(--secondary) solid; */
  box-shadow: -25px 25px 50px #00456a, 25px -25px 50px #00a9ff;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 900px;
  aspect-ratio: 21/9;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  border-radius: 30px;
}

.carousel img.active {
  opacity: 1;
}

.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  cursor: pointer;
  border: none;
  color: var(--text-light);
  background-color: transparent;
}

.prev-btn:hover,
.next-btn:hover {
  color: var(--primary);
}
.prev-btn {
  left: -100px;
}

.next-btn {
  right: -100px;
}

.dots-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-light);
  margin: 0 5px;
  cursor: pointer;
}

.dot.active {
  background-color: var(--primary);
}

#gallery-btn button {
  position: absolute;
  bottom: 0;
  left: 40%;
  margin: 20px 10px;
  text-align: center;
  width: 200px;
  background: var(--primary);
  color: var(--accent);
}

#gallery-btn button:hover {
  background: var(--btn-hover);
  color: var(--text-color2);
  transform: scale3d(1.05, 1.05, 1);
}

/* Meet the team */
.team {
  background-color: var(--light-cyan);
  padding: 60px 40px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 60px;
}

.team-intro h2 {
  font-size: 2.4rem;
  color: var(--federal-blue);
  margin-bottom: 20px;
}

.team-intro p {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: #333;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.team-member {
  background: white;
  border-radius: 10px;
  padding: 20px;
  width: 240px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 100%;
  height: 300px;
  border-radius: 10%;
  margin-bottom: 15px;
}

.team-member h4 {
  font-size: 1.2rem;
  color: var(--honolulu-blue);
  margin-bottom: 5px;
}

.team-member .role {
  font-weight: bold;
  color: var(--pacific-cyan);
  margin-bottom: 10px;
}

.team-member p {
  font-size: 0.95rem;
  color: #444;
}

/* Contact */

.contact {
  padding-bottom: 80px;
}

#contact-us {
  text-align: center;
  padding: 20px 20px 30px 20px;
}

#contact-us h2 {
  font-size: 2.5rem;
  color: var(--federal-blue);
  margin-bottom: 20px;
}

#contact-us p {
  margin: 0 auto 20px;
  font-size: 1.4rem;
  color: #333;
}

.contact img {
  width: 70vw;
  height: auto;
  border-radius: 0 20px 20px 0;
}

/* contact form styles */
.contact {
  position: relative;
}

.contact-form {
  position: absolute;
  top: 250px;
  left: 60vw;
  background: var(--grad);
  margin: 1rem 2%;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 20px;
  place-items: center;
}

label {
  display: block;
  font-size: 1rem;
  color: var(--text-light);
  padding-top: 0.2rem;
}

.contact-form h2 {
  font-size: 2rem;
  color: var(--card-bg);
  margin: 1.5rem 0 0.2rem 0;
  border-bottom: 1px solid #eee;
  text-align: center;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  display: block;
  margin: 0.1rem 0 1rem 0;
  padding: 0.5rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  border-left-width: 5px;
  border-left-color: #555;
  font-size: 1rem;
  color: #3d405b;
  width: 280px;
}

input:required {
  border-left-color: #d70000;
}
input:focus {
  border-left-color: black;
  outline: none;
}
input:required:valid {
  border-left-color: green;
}

input[type="submit"] {
  justify-self: center;
  align-self: center;
  border: none;
  text-align: center;
  background-color: var(--btn-hover);
  color: var(--text-color2);
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  font-size: 1.2rem;
  -webkit-appearance: none;
  appearance: none;
  width: 300px;
}
input:-webkit-autofill {
  -webkit-text-fill-color: #3d405b;
}

input[type="submit"]:hover {
  background-image: var(--accent);
  color: var(--text-color2);
  transform: scale3d(1.05, 1.05, 1);
  cursor: pointer;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  resize: none;
}
