:root {
  --primary-color: #4CAF50;
  --secondary-color: #388E3C;
  --text-color: #333;
  --background-color: #f5f5f5;
  
  /* Dark mode variables */
  --dark-primary-color: #5CDF60;
  --dark-secondary-color: #48AE4C;
  --dark-text-color: #f5f5f5;
  --dark-background-color: #222;
  --dark-card-bg: #333;
  --dark-nav-bg: rgba(34, 34, 34, 0.95);
}

/* Navigation Styles */
/* Logo Styles */
.logo {
  position: absolute;
  left: 200px;
  top: calc(50% + 10px);
  transform: translateY(-50%);
  display: inline-block;
  border-radius: 50%;
  overflow: visible;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0;
  z-index: 1002;
}

.logo:hover {
  transform: translateY(calc(-50% - 3px));
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.logo img {
  height: 69px; /* Increased by 15% from 60px */
  margin: 0;
  transition: all 0.3s ease;
  filter: none;
}

.dark-mode .logo img {
  filter: none;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  background: transparent;
  z-index: 1000;
  transition: background 0.3s ease;
  cursor: default;
}

.scrolled .navbar {
  background: rgba(255, 255, 255, 0.7);
}

.dark-mode .navbar {
  background: transparent;
}

.dark-mode .navbar.scrolled {
  background: rgba(34, 34, 34, 0.7);
}

body {
  padding-top: 80px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

.nav-container {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
}

.dark-mode {
  --primary-color: var(--dark-primary-color);
  --secondary-color: var(--dark-secondary-color);
  --text-color: var(--dark-text-color);
  --background-color: var(--dark-background-color);
}

.dark-mode .navbar.scrolled {
  background: var(--dark-nav-bg);
}

.dark-mode .card,
.dark-mode .testimonial,
.dark-mode .contact-form,
.dark-mode .about-content,
.dark-mode #gallery,
.dark-mode #about {
  background-color: var(--dark-card-bg);
  color: var(--dark-text-color);
}

.dark-mode .footer-links a {
  color: var(--dark-text-color);
}

.dark-mode footer {
  background: #111;
}

.nav-menu {
  display: flex;
  align-items: center;
  padding: 0;
  list-style: none;
  margin-right: 0;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.toggle-container {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.nav-menu li {
  margin: 0 0.5rem;
}

.nav-menu a {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  display: inline-block;
  z-index: 1;
  border: 2px solid var(--primary-color);
  backdrop-filter: blur(5px);
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  z-index: -1;
  opacity: 0.2;
  border-radius: 25px;
}

.nav-menu a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.9);
}

.nav-menu a:hover::before {
  height: 100%;
}

.nav-cta {
  background: var(--primary-color) !important;
  color: white !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 25px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.nav-cta:hover {
  background: var(--secondary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
  border-color: var(--secondary-color) !important;
}

.nav-cta:hover::before {
  display: none;
}

.dark-mode .nav-menu a {
  background: rgba(0, 0, 0, 0.5);
  color: var(--dark-text-color);
  border-color: var(--dark-primary-color);
}

.dark-mode .nav-menu a:hover {
  background: rgba(0, 0, 0, 0.8);
  color: var(--dark-primary-color);
}

.dark-mode .nav-cta {
  background: var(--dark-primary-color) !important;
  border-color: var(--dark-primary-color) !important;
}

.dark-mode .nav-cta:hover {
  background: var(--dark-secondary-color) !important;
  border-color: var(--dark-secondary-color) !important;
}

/* Toggle Buttons */
.lang-btn, .theme-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover, .theme-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.lang-text, .theme-icon {
  font-size: 0.9rem;
}

.dark-mode .lang-btn, .dark-mode .theme-btn {
  background-color: var(--dark-primary-color);
}

.dark-mode .lang-btn:hover, .dark-mode .theme-btn:hover {
  background-color: var(--dark-secondary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  padding: 1rem;
  position: fixed;
  right: 20px;
  top: 20px;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background: var(--text-color);
  margin: 3px 0;
  transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .logo {
    left: 10px;
  }
  
  .logo img {
    height: 50px;
  }

  .menu-toggle {
    display: flex;
    right: 20px;
    top: 20px;
    z-index: 1010;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: rgba(34, 34, 34, 0.8);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding-top: 80px;
    padding-left: 0;
    padding-right: 0;
    opacity: 0;
    visibility: hidden;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .dark-mode .nav-menu {
    background: rgba(34, 34, 34, 0.8);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  .menu-toggle.active {
    position: fixed;
    right: 125px; /* Half of menu width (250px/2) for perfect centering */
    top: 40px; /* Moved down to be above "Servicios" button */
    z-index: 1011;
    left: auto;
  }

  .nav-menu li {
    margin: 0.8rem 0;
    width: 100%;
  }
  
  .nav-menu a {
    font-size: 1.2rem;
    padding: 0.8rem 0;
    margin: 0.4rem 20px;
    transition: all 0.3s ease;
    width: calc(100% - 40px);
    text-align: center;
    display: block;
    border-radius: 25px;
    border: 2px solid var(--primary-color);
    color: white;
  }

  .nav-menu a:hover {
    transform: translateY(-2px);
    background: rgba(76, 175, 80, 0.2);
  }

  .dark-mode .nav-menu a:hover {
    background: rgba(76, 175, 80, 0.2);
  }

  .nav-cta {
    margin-top: 0 !important;
    font-size: 1.2rem !important;
    background: var(--primary-color) !important;
    color: white !important;
    padding: 0.8rem 0 !important;
    margin: 0.4rem 20px;
    width: calc(100% - 40px);
    border-radius: 25px;
    border: 2px solid var(--primary-color) !important;
    display: block;
    text-align: center;
  }

  .toggle-container {
    margin-top: 1.5rem;
    gap: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .lang-btn, .theme-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

.hero {
  background: url('backgound image house front lawn.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.dark-mode .hero::before {
  background: rgba(0, 0, 0, 0.7);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.cta-button {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: var(--secondary-color);
}

section {
  padding: 4rem 2rem;
}

#services {
  background: var(--background-color);
}

#services h2, #about h2, #contact h2, .contact-form h3 {
  text-align: center;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-features {
  text-align: left;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.service-features li {
  margin-bottom: 0.5rem;
  position: relative;
}

.service-features li::before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: -1.2rem;
}

.service-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.service-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

#gallery {
  text-align: center;
  background-color: white;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  overflow: hidden;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem;
  text-align: center;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
}

.carousel-control.prev {
  left: 1rem;
}

.carousel-control.next {
  right: 1rem;
}

.carousel-control:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 300px;
  }
  
  .carousel-control {
    padding: 0.5rem;
    font-size: 1.2rem;
  }
}

/* About Section */
#about {
  padding: 5rem 2rem;
  background-color: white;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-content {
  flex: 2;
  min-width: 300px;
}

.about-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  text-align: center;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('backgound image house front lawn.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-content .cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.cta-content .cta-button:hover {
  background: transparent;
  color: white;
  border-color: white;
}

/* Contact Section */
#contact {
  padding: 5rem 2rem;
  background-color: var(--background-color);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--primary-color);
}

.contact-details h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-color);
}

.contact-details p {
  margin: 0;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: calc(100% - 2rem);
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-button:hover {
  background: var(--secondary-color);
}

/* Footer */
footer {
  background: var(--text-color);
  color: white;
  padding: 4rem 2rem 1rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-icon {
  text-decoration: none;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: 50%;
  padding: 8px;
  margin: 0 5px;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icon:hover {
  transform: translateY(-3px);
  filter: brightness(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  section {
    padding: 2rem 1rem;
  }
}
