/* ------------------------------ */
/* 1. CSS Variables & Resets      */
/* ------------------------------ */
:root {
  --primary-color: #ffffff;
  --secondary-color: #000000;
  --accent-color: #bc9d5b;
  --hover-bg-color: #ffffff;
  --hover-text-color: #000000;
  --font-family-body: 'Lato', sans-serif;
  --font-family-headings: 'Playfair Display', serif;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-body);
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--secondary-color);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ------------------------------ */
/* 2. Scroll Progress Bar         */
/* ------------------------------ */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background-color: var(--accent-color);
  z-index: 999;
  transition: width 0.25s ease-out;
}

/* ------------------------------ */
/* 3. Header Styles               */
/* ------------------------------ */
header {
  background: var(--secondary-color);
  color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-color);
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* ------------------------------ */
/* 4. Logo & Navigation           */
/* ------------------------------ */
.logo-section {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 120px;
  width: auto;
  margin-right: 10px;
  display: block;
}

nav {
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  font-family: var(--font-family-body);
}

.nav-links a:hover {
  background-color: var(--hover-bg-color);
  color: var(--hover-text-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ------------------------------ */
/* 5. Hamburger Menu Styles       */
/* ------------------------------ */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* ------------------------------ */
/* 6. Hero Section                */
/* ------------------------------ */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  background-size: 110% auto;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://i.ibb.co/FkpK1HPJ/flower-wall-4k-quality.jpg') no-repeat center center/110% auto;
  opacity: 0;
  transform: scale(1.3);
  transition: opacity 2s ease, transform 2s ease;
  z-index: 0;
}

.hero.active::before {
  opacity: 1;
  transform: scale(1);
}

.hero h1,
.hero p {
  position: relative;
  z-index: 1;
  color: var(--primary-color);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-family: var(--font-family-headings);
  font-size: 4em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.5em;
  margin-top: 10px;
}

/* ------------------------------ */
/* 7. Section Styles              */
/* ------------------------------ */
section {
  padding: 60px 20px;
  text-align: center;
}

.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

#services, #about, #portfolio, #testimonials {
  background-color: #1a1a1a;
  border-bottom: 2px solid var(--primary-color);
}

#about p:not(:last-child) {
  margin-bottom: 20px;
}

/* ------------------------------ */
/* 8. Service List & Service      */
/* ------------------------------ */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 40px;
  justify-items: center;
}

.service {
  max-width: 300px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

/* ------------------------------ */
/* 9. Portfolio Styles            */
/* ------------------------------ */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  max-width: 300px;
  border-radius: 10px;
}

.portfolio-item img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s, filter 0.3s;
}

.portfolio-item img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.portfolio-item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2em;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}

.portfolio-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.portfolio-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--primary-color);
  padding: 10px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

/* ------------------------------ */
/* 10. Testimonials Section       */
/* ------------------------------ */
.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-wrapper {
  overflow: hidden;
  width: 100%;
}

.testimonial-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  min-width: 100%;
}

.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 2em;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.testimonial-btn:hover,
.testimonial-btn.active {
  transform: translateY(-50%) scale(1.2);
  color: var(--accent-color);
}

.testimonial-slider .prev-btn {
  left: -30px;
}

.testimonial-slider .next-btn {
  right: -30px;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 10px;
}

.testimonial h4 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  font-size: 1em;
}

/* ------------------------------ */
/* 11. Contact Section            */
/* ------------------------------ */
.contact {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 20px;
  position: relative;
}

.contact .business-number,
.contact .whatsapp-link {
  font-size: 1.2em;
  margin: 10px 0;
}

.call-link {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 600;
}

.call-link:hover {
  color: #fff;
  text-decoration: none;
}

.contact .whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact .whatsapp-link img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.contact .whatsapp-link a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact .whatsapp-link a:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* ------------------------------ */
/* 12. Social Media & Contact Form*/
/* ------------------------------ */
.contact .social-media {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.contact .social-media a {
  display: inline-block;
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact .social-media a:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.social-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-form {
  max-width: 600px;
  margin: 30px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  background-color: #1a1a1a;
  color: #ffffff;
  font-family: var(--font-family-body);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbbbbb;
}

.contact-form textarea {
  resize: vertical;
}

.checkbox-container {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  display: none;
}

.checkbox-container .checkmark {
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  transition: background-color 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #2196F3;
}

.checkbox-container .checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-container .checkmark::after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* ------------------------------ */
/* 13. Success & Error Messages   */
/* ------------------------------ */
.success-message {
  color: #28a745;
  font-size: 1em;
  margin-top: 10px;
  display: none;
  text-align: center;
}

.error-message {
  color: #c30949;
  font-size: 0.9em;
  margin-top: 5px;
  display: none;
  text-align: center;
}

.error-message.active {
  display: block;
}

.success-message.active {
  display: block;
}

.submit-btn {
  background-color: #28a745;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.submit-btn:hover {
  background-color: #218838;
  transform: scale(1.05);
}

.submit-btn:active {
  background-color: #1e7e34;
  transform: scale(0.98);
}

/* ------------------------------ */
/* 14. Scroll to Top Button       */
/* ------------------------------ */
#scrollToTopBtn {
  position: fixed;
  bottom: -80px; /* hidden off-screen initially */
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #bc9d5b;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease, bottom 0.5s ease, transform 0.3s ease;
  z-index: 1000;
}

#scrollToTopBtn::before {
  content: "❯";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-size: 1.5em;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, color 0.3s ease;
}

#scrollToTopBtn:hover::before {
  transform: translate(-50%, -50%) rotate(-90deg) scale(1.2);
  color: var(--accent-color);
}

#scrollToTopBtn:hover {
  transform: scale(1.1);
}

#scrollToTopBtn.visible {
  opacity: 1;
  bottom: 40px; /* slides into view */
}

/* ------------------------------ */
/* 15. Footer Styles              */
/* ------------------------------ */
footer {
  background-color: #333333;
  color: var(--secondary-color);
  padding: 20px;
  text-align: center;
  font-family: var(--font-family-body);
}

/* ------------------------------ */
/* 16. Button Styles              */
/* ------------------------------ */
button, .btn {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

button:hover, .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255,255,255,0.3);
}

button:active, .btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ------------------------------ */
/* 17. Mobile Menu & Header Styles*/
/* ------------------------------ */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background-color: rgba(0,0,0,0.9);
    text-align: center;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5em;
    padding: 10px 0;
    display: inline-block;
    width: 100%;
  }
  
  .testimonial-slider {
    flex-direction: row;
  }
  
  .testimonial-container {
    width: 100%;
  }
  
  .contact-form {
    padding: 0 10px;
  }
  
  .contact .social-media a {
    width: 90px;
    height: 90px;
  }
  
  .service-list {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 1.2em;
  }
  
  .contact-form input,
  .contact-form textarea {
    font-size: 0.9em;
  }
  
  .testimonial p {
    font-size: 1em;
  }
  
  .testimonial h4 {
    font-size: 1em;
  }
  
  .hero,
  .hero::before {
    background-size: cover !important;
  }
}

/* ------------------------------ */
/* 18. Reduced Motion Preference  */
/* ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero {
    transition: none;
  }
  .hidden {
    opacity: 1;
    transform: none;
  }
}
