/* ============================================================
   1. GLOBAL RESET & BASE STYLES (Mobile First)
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   NAVBAR (Mobile Base) 
   ========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  justify-self: center;
  align-items: center;
  background-color: #493628; /* Dark brown background */
  padding: 10px 15px;
  position: fixed; /* Sticks to top */
  width: 95%;
  top: 10px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 26px;
  transition: top 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.navbar.scrolled {
  top: 0;
  width: 100%;
  border-radius: 0;
}

.logo {
  width: 200px;
}

.nav-links {
  position: absolute;
  top: 60px; /* Height of navbar */
  left: 0;
  width: 100%;
  background-color: #493628;
  display: none; /* Hidden by default on mobile */
  flex-direction: column;
  align-items: center;
  padding-bottom: 30px;
  opacity: 1;
  transition: all 0.3s ease;
}

/* Class to show menu when clicked */
.nav-links.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.nav-links li {
  list-style: none;
  margin: 15px 0;
}

.nav-links a {
  text-decoration: none;
  color: #fff6e0;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f0bb78;
}

/* Special styling for the Contact button in nav */
.nav-links .nav-btn {
  padding: 8px 24px;
  border: 2px solid #f0bb78;
  border-radius: 50px;
  color: #f0bb78;
}

.nav-links .nav-btn:hover {
  background-color: #f0bb78;
  color: #493628;
}

/* Hamburger Icon */
.hamburger {
  display: block;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #fff6e0;
}

/* Add padding to body so content isn't hidden behind fixed nav */
body {
  padding-top: 60px;
  position: relative;
}

h2 {
  color: #493628 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-align: center !important;
  margin-bottom: 0px !important;
}

h3 {
  color: #fab155 !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  text-align: center !important;
  margin-bottom: 30px !important;
  line-height: 33px !important;
}

body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

/* Default Typography (Mobile) */
p {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  color: #493628;
}

h1,
h2,
h3,
h4,
h5,
h6,
button {
  color: #493628;
}

/* Default Section Spacing (Mobile) */
section {
  scroll-margin-top: 100px;
  width: 100%;
  margin-bottom: 80px;
  padding: 8px;
}

/* ============================================================
   2. HERO SECTION (Mobile Base)
   ============================================================ */
.hero {
  margin-top: -30px;
  margin-bottom: 40px !important;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  padding-left: 8px;
  text-align: left;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 40px;
  line-height: 50px;
  position: relative;
}

.hero h1::after {
  content: "";
  width: 152px;
  height: 7px;
  background-image: url("./images/Waves.svg");
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  bottom: -10px;
  left: 8px;
  position: absolute;
}

#hero-h1 span {
  transition: opacity 1.2s ease; /* slower fade for smoother effect */
  display: block;
}

.hero .hero-subtitle {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 40px;
}

/* Hide desktop image on mobile */
.hero-image {
  display: none;
}

.hero .hero-btn-primary {
  margin: 0 auto 20px auto;
  padding: 16px;
  background-color: #f0bb78;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  color: #493628;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: background-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, transform 0.2s ease;
}

.hero .hero-btn-primary:hover {
  background-color: #e3a861; /* slightly darker, warmer */
  box-shadow: 0 10px 28px rgba(73, 54, 40, 0.25);
}

.hero .hero-btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(73, 54, 40, 0.2);
}

.hero .hero-btn-primary img {
  width: 18px;
  height: 16px;
  display: inline-flex;
  margin-left: 8px;
}

.hero .hero-btn-secondary {
  margin: auto;
  display: flex;
  padding: 8px 16px;
  background-color: transparent;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  color: #493628;
  border: 2px solid #493628;
  cursor: pointer;

  justify-content: center;
  align-items: center;

  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.hero .hero-btn-secondary:hover {
  background-color: #493628;
  color: #fff6e0;
  box-shadow: 0 6px 16px rgba(73, 54, 40, 0.25);
}

.hero .hero-btn-secondary:active {
  color: #ede0d4;
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(73, 54, 40, 0.2);
}

/* ============================================================
   3. PROJECTS SECTION (Mobile Base)
   ============================================================ */
.projects {
  padding: 0;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
}

h3 {
  color: #fab155;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 20px;
  line-height: 33px;
}

.projects p {
  margin-bottom: 20px;
}

/* Horizontal Scroll for Mobile Cards */
.projects-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.project-cards {
  padding: 8px;
  display: flex;
  width: max-content; /* Allows scroll */
  column-gap: 20px;
}

.project-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-card a {
  height: 100%;
  width: 100%;
  opacity: 0;
}

.first,
.second,
.third,
.fourth {
  width: 216px;
  height: 405px;
  background-size: cover;
  background-position: top;
  flex-shrink: 0;
}

.first {
  background-image: url("./assets/projects/project1.webp");
}
.second {
  background-image: url("./assets/projects/project2.webp");
}
.third {
  background-image: url("./assets/projects/project3.webp");
}
.fourth {
  background-image: url("./assets/projects/project4.webp");
}

/* ============================================================
   4. SERVICES SECTION (Mobile Base)
   ============================================================ */
.service-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 2px solid #ede0d4;
}

.service-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 20px;
  padding: 0px 7px 67px 7px;
}

.service-image {
  width: 80px;
  height: 80px;
  background-color: #fab155;
  border-radius: 50%;
  display: inline-flex;
  align-self: center;
  justify-content: center;
  align-items: center;
}

.service-image img {
  width: 50px;
}

.service-title {
  font-size: 24px;
  font-weight: 700;
  color: #493628;
}

.service-description {
  width: 285px;
  margin: 0 auto;
  text-align: center;
}

/* ============================================================
   5. PROCESS / TIMELINE (Mobile Base)
   ============================================================ */
.timeline-container {
  display: grid;
  grid-template-columns: 1fr 45px 1fr;
  margin: auto;
  width: 90%;
}

.cell {
  background-color: #ffffff;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-content {
  position: relative;
}

.step-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

/* Hide decorative images on mobile */
.step-content img {
  display: none;
}

.point {
  padding: 6px 12px;
  background-color: #f0bb78;
  border-radius: 50%;
  font-weight: 600;
  z-index: 2;
}

.time-line {
  height: 100%;
  width: 5px;
  background-color: #493628;
  border-radius: 4px;
}

/* ============================================================
   6. TESTIMONIALS (Mobile Base)
   ============================================================ */
.testimonial-container {
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.arrow-btn {
  display: none; /* Hidden on mobile */
}

.person-testimonial {
  height: auto;
  width: 280px;
  background-color: #ffcd8d;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
}

.person-testimonial h5 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.person-testimonial img {
  width: 150px;
  height: 30px;
  margin-bottom: 20px;
}

.test-img {
  display: none; /* Hide large image on mobile */
}

/* ============================================================
   7. CONTACTS (Mobile Base)
   ============================================================ */
.contacts {
  background-color: #493628;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  padding: 0;
}

.socials {
  padding: 60px 20px;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 40px;
}

.socials div {
  width: 230px;
  display: flex;
  column-gap: 13px;
}

.socials h2 {
  margin: 0 auto 40px auto;
  color: #fff6e0 !important;
  font-size: 26px !important;
  font-weight: 600;
  margin-bottom: 40px;
}

.contacts a {
  text-decoration: none;
  color: #fff6e0;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s;
}

.contacts p {
  color: #fff6e0;
}
.contact-form {
  height: 100%;
  width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}

.contact-form h3 {
  color: #fff6e0;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.form-group label {
  color: #fff6e0;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid #d4c4b0;
  background-color: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #fff6e0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom: 2px solid #f0bb78;
}

.form-group textarea {
  resize: none;
  min-height: 100px;
}

.submit-btn {
  padding: 12px 32px;
  background-color: #f0bb78;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  color: #493628;
  cursor: pointer;
  align-self: center;
}

/* ============================================================
   8. DESKTOP OVERRIDES (Screens larger than 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  /* Global Desktop Adjustments */
  section {
    scroll-margin-top: 100px;
    padding: 4px;
    margin-bottom: 200px;
  }

  p {
    text-align: left; /* Reset text alignment for desktop if needed */
  }

  /* =========================
     NAVBAR (Desktop) 
     ========================= */
  .navbar {
    padding: 10px 122px; /* Match hero padding */
    background-color: #493628;
  }

  .hamburger {
    display: none; /* Hide burger on desktop */
  }

  .nav-links {
    display: flex;
    position: static; /* Reset absolute positioning */
    flex-direction: row;
    width: auto;
    padding-bottom: 0;
    background-color: transparent;
    column-gap: 40px;
  }

  .nav-links li {
    margin: 0;
  }

  .hamburger {
    display: none;
    cursor: pointer;
  }

  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
    transition: 0.3s ease;
  }

  /* Reset body padding for desktop if you want a larger hero area */
  body {
    padding-top: 80px;
  }

  /* Hero Desktop */
  .hero {
    padding-right: 0;
    display: flex;
    flex-direction: row; /* Switch back to row */
    justify-content: space-between;
    align-items: center;
    text-align: left;
    height: auto;
  }

  .hero-text {
    max-width: 540px;
    display: flex;
    flex-direction: column;
    padding-left: 122px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 60px;
    position: relative;
  }

  .hero h1::after {
    content: "";
    display: block;
    width: 152px;
    height: 7px;
    background-image: url("./images/Waves.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    bottom: -10px;
    left: 0;
  }

  .hero .hero-subtitle {
    max-width: 450px;
    font-size: 20px;
    line-height: 30px;
  }

  .hero .hero-CTA {
    display: flex;
    column-gap: 28px;
  }

  /* Reset button margins for desktop */
  .hero .hero-btn-primary,
  .hero .hero-btn-secondary {
    justify-content: center;
    align-items: center;
    margin: 0;
  }

  .hero-image {
    display: block; /* Show image */
    width: 605px;
    height: 485px;
    aspect-ratio: 605 / 485;
    background-color: #493628;
    border-top-left-radius: 500px;
    border-bottom-left-radius: 500px;
    background-image: url("./assets/hero/Door.webp");
    background-size: cover;
    background-position: center;
    position: relative;
  }

  .hero-images {
    /* Styles for the tech mockup container if used */
    height: inherit;
    display: flex;
    column-gap: 20px;
    align-items: center;
    position: relative;
    left: -50px;
    position: absolute;
    left: -100px;
  }

  .arrow {
    position: absolute;
    left: -10px;
  }

  .laptop-view {
    display: inline-flex;
    width: 400px;
  }

  /* Projects Desktop */
  .project-card {
    position: relative;
  }

  .project-card a {
    width: 130px;
    height: 57px;
    display: hidden;
    font-weight: 600;
    border-radius: 26px;
    background-color: #493628;
    color: #ede0d4;
    padding: 16px 22px;
    position: relative;
    z-index: 1;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .project-card:hover a {
    opacity: 1;
    display: block;
  }

  .project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(73, 54, 40, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .project-card:hover::before {
    opacity: 1;
  }

  .projects h2 {
    font-size: 24px;
  }

  .projects h3 {
    font-size: 36px;
  }

  .projects-text {
    margin: auto;
    text-align: center;
    width: 630px;
  }

  .projects-text p {
    text-align: center;
  }

  .projects-wrapper {
    overflow-x: visible;
  }

  .project-cards {
    height: 675px;
    width: 100%; /* Full width container */
    justify-content: center;
    gap: 30px;
    background-image: url("./assets/projects/Hourglass.webp");
    background-size: cover;
    padding-top: 80px;
    overflow: visible;
  }

  /* Services Desktop */
  .service-cards {
    flex-direction: row;
    column-gap: 100px;
    justify-content: center;
    transition: border-color 0.2s ease;
  }

  .service-card:hover {
    border-bottom: 2px solid #493628;
  }

  .service-image {
    width: 140px;
    height: 140px;
  }

  .service-image img {
    width: 70px;
    height: 70px;
  }

  /* Process Desktop */
  .cell {
    height: 240px;
  }

  .step-content {
    background-color: #ab886d63;
    padding: 50px;
  }

  .step-content p {
    width: 345px;
  }

  .step-content img {
    width: 150px;
    height: 150px;
    display: block; /* Show decorative images */
    position: absolute;
  }

  .left-content img {
    top: -90px;
    left: 40px;
    transform: translateX(-50%);
  }

  .right-content img {
    top: -80px;
    right: 40px;
    transform: translateX(50%);
  }

  .left-content {
    border-radius: 50px 0px 50px 50px;
  }

  .right-content {
    border-radius: 0px 50px 50px 50px;
  }

  .point {
    padding: 10px 16px;
  }

  /* Testimonials Desktop */
  .testimonial-container {
    justify-content: space-around;
  }

  .testimonial-content {
    display: flex;
    align-items: center;
  }

  .arrow-btn {
    display: flex; /* Show arrows */
    width: 50px;
    height: 50px;
    border: 3px solid #493628;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  .prev-arrow,
  .prev-arrow {
    opacity: 50%;
  }

  .test-img {
    display: block;
    width: 500px;
    height: 400px;
  }

  .person-testimonial {
    width: 400px;
    height: 300px;
    background-color: #ffcd8d;
    border-radius: 0;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 50px;
    padding: 50px;
    margin-right: -150px;
    z-index: 1;
  }

  .person-testimonial h5 {
    font-size: 25px;
  }

  .person-testimonial p {
    font-size: 16px;
    line-height: 24px;
  }

  /* Contact Desktop */
  .contacts {
    flex-direction: row;
    height: 500px;
    background-color: transparent; /* Reset because of bg image */
  }

  .socials {
    height: 100%;
    padding: 95px;
    background-image: url("./assets/contacts/Hourglass2.webp");
    background-size: cover;
    width: 40%;
    align-items: flex-start; /* Reset align */
  }

  .socials div {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form {
    height: 100%;
    width: 40%;
    padding: 25px;
    justify-content: center;
  }

  .contact-form h3 {
    color: #493628; /* Dark text on light background for desktop */
  }

  .form-row {
    display: flex;
    gap: 20px;
  }

  .form-row .form-group {
    flex: 1;
  }

  .form-group label {
    color: #493628;
  }

  .form-group input,
  .form-group textarea {
    color: #493628;
  }

  .submit-btn {
    align-self: flex-end; /* Align right */
  }
}
