/* ==========================================================================
   1. VARIABLES & BASE PREFERENCES
   ========================================================================== */
:root {
  --my-white-color: #efe9e3;
  --my-brown-color: #c9b59c;
  --my-blue-color: #2c3e50;
  --text-dark: #2d3436;
}

* {
  box-sizing: border-box; /* Ensures padding doesn't break layout width */
  font-family: "Raleway", sans-serif;
  max-width: 100vw;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--my-white-color);
}

/* ==========================================================================
   2. NAVIGATION BAR (Formerly navbar.css)
   ========================================================================== */
.navbar {
  z-index: 5;
  display: flex;
  position: fixed;
  top: 0;
  height: 50px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: #c9b59c;
  color: #f9f8f6;
}

.brand-title {
  font-size: 1.5em;
  margin: 0.5em;
  padding-left: 20px;
}

.navbar-links {
  height: 100%;
}

.navbar-links ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-links li a {
  display: block;
  text-decoration: none;
  color: white;
  padding: 1rem;
}

.navbar-links li a:hover {
  color: var(--my-blue-color);
}

/* Mobile Toggle */
.toggle-button {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.toggle-button .bar {
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 10px;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-container {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* Use 'cover' to ensure images fill the screen on all devices */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  overflow: hidden;

  /* Smoother transition timing */
  transition: background-image 1.5s ease-in-out;
  animation: slide 30s infinite; /* Reduced time for more engagement */
}
.hero-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35); /* Subtle dark tint */
  z-index: 1;
}

.hero-message {
  z-index: 2; /* Sits above the dark overlay */
  background: rgba(255, 255, 255, 0.05); /* Glassmorphism effect */
  backdrop-filter: blur(2px); /* Blurs the background behind the text */
  -webkit-backdrop-filter: blur(8px);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 850px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive scaling */
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  padding: 0;
}

.hero p {
  color: #efe9e3;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   4. FORMS & INPUTS
   ========================================================================== */
.form {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

input,
select,
textarea,
.quote {
  padding: 15px;
  border: 2px solid var(--my-brown-color);
  border-radius: 12px;
  background-color: var(--my-white-color);
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  outline: none;
  transition: all 0.3s ease-in-out;
}

/* Specific overrides */
input {
  height: 48px;
  width: 60%;
}
textarea,
.quote {
  width: 60%;
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
.quote:focus {
  border-color: #b87c4c;
  box-shadow:
    0 0 0 4px rgba(74, 144, 226, 0.1),
    0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

input:focus {
  transform: translatex(-10px);
}
.quote:focus {
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  height: 50px;
  width: 160px;
  border-radius: 12px;
  border: 2px var(--my-brown-color) solid;
  background-color: var(--my-white-color);
  color: var(--my-brown-color);
  font-size: 1.25rem;
  font-weight: bolder;
  margin-bottom: 30px;
}

.submit-btn {
  width: 100%;
  background: var(--my-brown-color);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
  margin-top: 15px;
}
.btn:hover,
.submit-btn:hover {
  background: #1a252f;
  transform: translateY(-2px);
}
/* The Notification Box */
.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: var(--my-brown-color);
  color: var(--my-white-color);
  text-align: center;
  min-width: 320px;
  max-width: 100%;

  padding: 24px;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}
.notification.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   5. COMPONENTS (CARDS)
   ========================================================================== */
.card-container {
  padding-top: 80px;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-bottom: 4px solid #eee;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: var(--my-white-color);
  transition: left 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--my-brown-color);
}

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

.badge {
  display: inline-block;
  background: #f0f2f5;
  color: var(--my-blue-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

/* ==========================================================================
   6. GALLERY & CAROUSEL
   ========================================================================== */
.gallery {
  padding-top: 5vh;
}
.carousel {
  width: 98vw;
  height: 95vh;
  margin-top: 10vh;
  position: relative;
  margin: 0 auto;
}

.carousel > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 200ms opacity ease-in-out;
  transition-delay: 200ms;
}

.slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide[data-active] {
  opacity: 1;
  z-index: 1;
  transition-delay: 0ms;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  background: none;
  border: none;
  height: 80px;
  width: 80px;
  font-size: 4rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: 0.25rem;
  padding: 0 0.5rem;
  background-color: rgba(0, 0, 0, 0.1);
}
.button-arrow {
  position: relative;
  top: -6px;
}

.carousel-button:hover,
.carousel-button:focus {
  color: var(--my-white-color);
  background-color: var(--my-brown-color);
}

.carousel-button:focus {
  outline: 1px solid black;
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

/* ==========================================================================
   6. CONTACT & FOOTER
   ========================================================================== */
.contact-links {
  position: relative;
}
.map {
  position: absolute;
  right: 0;
  top: 0;
  height: 200px;
}
.contact {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}
.location {
  text-decoration: none;
  color: inherit;
}

.location:hover {
  color: var(--my-brown-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.form-row input {
  width: 100%;
}

footer {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background-color: #c9b59c;
  height: 64px;
}

.social-icons {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 1.5rem;
}
.social-icons i:hover {
  font-size: 2.5rem;
}
.copyright-container {
  display: flex;
  background-color: var(--my-brown-color);
  /* background-color: blue; */
  height: 24px;
  justify-content: center;
}
.designer-line {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.designer-line p,
.designer-line span {
  color: #f9f8f6;
  font-size: 1rem;
  line-height: 0;
  margin-top: 4px;
}
.designer-line p:hover {
  color: var(--my-brown-color);
  cursor: crosshair;
}
.designer-line p:hover span{
font-size: 1.5rem;}
.facebook {
  color: #1778f2;
}
.instagram {
  color: #f56040;
}
.twitter {
  color: #1da1f2;
}
.youtube {
  color: #ff0000;
}

.svg-logo {
  position: relative;
  top: 4px;
  width: 1.5rem;
}
.svg-logo:hover {
  width: 2.5rem;
  top: 0;
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet (800px) */
@media (max-width: 800px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand-title {
    font-size: 1.2em;
    padding-left: 10px;
  }
  .toggle-button {
    display: flex;
  }
  .navbar-links {
    display: none;
    width: 100%;
  }
  .navbar-links.active {
    display: flex;
    justify-content: right;
  }
  .navbar-links ul {
    flex-direction: column;
    justify-content: right;
  }
  .navbar-links ul li {
    text-align: center;
  }

  .hero-container {
    height: auto;
    aspect-ratio: auto; /* Releases the fixed ratio that causes squishing */
    padding-bottom: 2rem;
  }

  input,
  .quote {
    width: 80%; /* Shrink these from 60% sooner to prevent horizontal pushing */
  }
  textarea {
    width: 100%;
  }

  .hero {
    padding-top: 50px;
    justify-content: space-evenly;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero p {
    padding: 0 16px;
    font-size: 1rem;
    text-align: center;
  }
  .carousel-button {
    width: 40px;
  }
  .map {
    width: 40%;
  }
}

/* Mobile (600px) */
@media (max-width: 600px) {
  input,
  textarea,
  .quote {
    width: 100%;
  }

  /*  */
  .hero-container {
    padding: 0 15px; /* Tighter padding on sides */
    /* Ensure the background doesn't squish */
    background-size: cover;
    height: 100vh;
  }

  .hero-message {
    width: 85%;
    padding: 2rem 1.5rem;
    background: rgba(
      255,
      255,
      255,
      0.15
    ); /* Slightly more opaque for readability */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }

  .hero-title {
    font-size: 1.75rem; /* Prevents text from being too overwhelming */
    margin-bottom: 0.8rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #f9f8f6;
    font-family:
      "Raleway", sans-serif; /* Clean sans-serif is easier to read on mobile */
    font-weight: 500;
  }

  /* Adjust the button if you added one */
  .hero-message .submit-btn {
    font-size: 1rem;
    padding: 12px 24px;
    margin-top: 15px;
  }
  /*  */

  .form-row {
    grid-template-columns: 1fr;
  }
  .card-container {
    max-width: 95%; /* Increased width to give more room for two columns */
    grid-template-columns: repeat(2, 1fr); /* Forces exactly 2 columns */
    gap: 10px; /* Reduced gap so cards don't feel too cramped */
    padding-top: 40px;
  }

  .card {
    padding: 20px 10px; /* Reduced padding inside cards for better fit */
  }

  .card-icon {
    font-size: 1.5rem; /* Slightly smaller icons for mobile */
  }

  .card h3 {
    font-size: 1rem; /* Adjust heading size to prevent text overflow */
  }

  .badge {
    font-size: 0.7rem;
    padding: 2px 8px;
  }
  .card p {
    display: none; /* Shows only icon and title for a cleaner grid */
  }

  footer {
    position: relative;
    overflow: hidden;
  }
  .designer-line {
    right: 10px;
    bottom: 0px;
  }
  .designer-line p,
  .designer-line span {
    font-size: 1rem;
  }
  footer:hover::after {
    font-size: 1rem;
    right: 10px;
    bottom: 10px;
  }
  .carousel-button.prev {
    left: 6px;
  }

  .carousel-button.next {
    right: 6px;
  }
  .map {
    position: static;
    width: 100%;
  }
}

/* ==========================================================================
   8. ANIMATIONS
   ========================================================================== */

@keyframes slide {
  0%,
  100% {
    background-image: url("./assets/16-9/Screen16-9 1.jpg");
  }
  25% {
    background-image: url("./assets/16-9/Screen16-9 2.jpg");
  }
  50% {
    background-image: url("./assets/16-9/Screen16-9 3.jpg");
  }
  75% {
    background-image: url("./assets/16-9/Screen16-9 4.jpg");
  }
}
