/* --- VARIABLES & GENERAL STYLES --- */
:root {
  --primary-color: #1b5e20;
  --secondary-color: #43a047;
  --accent-color: #81c784;
  --text-dark: #2c3e50;
  --text-light: #ecf0f1;
  --bg-light: #f9fbf9;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* --- HEADER & NAVIGATION --- */
header {
  background-color: transparent; /* Starts transparent */
  box-shadow: none;
  position: fixed; /* Fixed for modern feel */
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

header.scrolled {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 0.2rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  transition: var(--transition);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white); /* White on transparent hero */
  text-decoration: none;
  transition: var(--transition);
}

header.scrolled .logo {
  color: var(--primary-color);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--white); /* White on hero */
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

header.scrolled .nav-links a {
  color: var(--text-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

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

.contact-btn {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition);
}

header.scrolled .contact-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
}

.contact-btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

header.scrolled .contact-btn:hover {
  background-color: var(--secondary-color);
}

/* --- HERO SECTION --- */

#hero {
  position: relative;
  height: 100vh; /* Full viewport height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 0 1rem;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("fountainlandscape4.jpeg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* --- TRANSFORMATION SLIDER --- */
#transformation {
  background-color: var(--white);
  padding: 8rem 2rem;
}

.section-intro {
  text-align: center;
  margin-top: -3rem;
  margin-bottom: 4rem;
  color: var(--text-dark);
  opacity: 0.7;
}

.transformation-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.transformation-tab {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--primary-color);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.transformation-tab:hover {
  background: var(--accent-color);
}

.transformation-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.comparison-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-slider .before-image,
.comparison-slider .after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-slider .after-image {
  z-index: 2;
  width: 50%; /* This will be animated */
  overflow: hidden;
}

.comparison-slider img {
  width: 900px;
  height: 500px;
  object-fit: cover;
  display: block;
}

@media (max-width: 940px) {
  .comparison-slider img {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .comparison-slider {
    height: 350px;
  }
  .comparison-slider img {
    height: 350px;
  }
}

.label-before, .label-after {
  position: absolute;
  top: 20px;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.label-before { right: 20px; }
.label-after { left: 20px; }

.slider-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  cursor: ew-resize;
  opacity: 0;
  -webkit-appearance: none;
}

.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: white;
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

#hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

#hero p {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  font-weight: 300;
}

/* --- GENERAL SECTION STYLING --- */
main section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

main section h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.5rem;
  color: var(--text-dark);
  position: relative;
}

main section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.gallery-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
  color: var(--text-dark);
  opacity: 0.8;
}

/* --- SERVICES (CARDS) SECTION --- */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--primary-color);
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.card ul {
  padding: 0;
  list-style: none;
  margin-bottom: 0;
}

.card li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* --- GALLERY SPECIFIC --- */
#gallery .card {
  padding: 0;
  border: none;
  overflow: hidden;
}

#gallery .card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 1; /* Always visible but subtle */
}

.card-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.card-overlay p {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#gallery .card:hover img {
  transform: scale(1.1);
}

/* --- ABOUT SECTION --- */
#about {
  background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url("frontlandscapeplants.jpeg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  padding: 8rem 2rem;
  text-align: center;
}

.about_title {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

#about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.8;
}

/* --- FOOTER --- */
footer {
  background-color: #121212; /* Darker background */
  color: var(--white);
  padding: 4.5rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  transition: var(--transition);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-social a {
  color: var(--white);
  font-size: 2rem;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-3px);
  color: #1877f2;
}

.copyright {
  font-size: 0.85rem;
  opacity: 0.4;
  margin: 0;
  letter-spacing: 0.5px;
}

footer .contact-btn {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

footer .contact-btn:hover {
  background-color: var(--white);
  color: #121212;
  border-color: var(--white);
}

/* Success Animation Styles */
.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  z-index: 100;
  background-color: #ffffff;
  border-radius: 8px;
}

.modal__overlay--visible {
  display: flex !important;
}

#modal-form-content.hidden {
  display: none;
}

.success-checkmark {
  width: 80px;
  height: 115px;
  margin: 0 auto;
}

.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4caf50;
}

.check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.icon-line {
  height: 5px;
  background-color: #4caf50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }
  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }
  100% {
    width: 25px;
    left: 14px;
    top: 46px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }
  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

/* --- MODAL STYLES (Contact & Lightbox) --- */
.modal,
.lightbox-gallery {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
  overflow-y: auto;
}

.modal-content,
.lightbox-content {
  background-color: var(--white);
  color: #216e24;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideIn 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-gallery .lightbox-content {
  max-width: 90%;
  width: auto;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.lightbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.lightbox-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.2s ease;
}

.lightbox-grid img:hover {
  transform: scale(1.03);
}

.close-btn,
.lightbox-close-btn {
  color: #c1fec3;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
  background-color: transparent;
  text-shadow: #333 1px 1px 2px;
}

.close-btn:hover,
.lightbox-close-btn:hover {
  color: var(--accent-color);
}

#contactForm label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #216e24;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

#contactForm button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contactForm button:hover {
  background-color: white;
  border: solid 2px var(--primary-color);
  color: #216e24;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE & HAMBURGER MENU --- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-bar {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.hamburger-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav-links.nav-active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    color: var(--text-dark);
  }
}

main {
  background-color: rgb(212 203 190);
}

#hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("fountainlandscape4.jpeg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

section {
  scroll-margin-top: 80px;
}
