/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Utility class for language switching */
.hidden-lang {
  display: none !important;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Header */
header {
  background: #007BFF;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.logo {
  width: 150px; /* Adjust based on your logo size */
  height: auto;
  margin-bottom: 10px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
}

/* Language Select */
.language-select {
  position: absolute; /* Position in header */
  top: 20px;
  right: 20px;
  z-index: 10; /* Ensure dropdown appears above other elements */
}

.language-select .language-button {
  background: #fff;
  color: #333; /* Text color for button */
  border: 1px solid #ccc; /* Optional border */
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease;
}
.language-select .language-button:hover {
   background-color: #f1f1f1;
}


.language-select .language-options {
  position: absolute;
  top: 100%; /* Position below the button */
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: none; /* Hidden by default */
  flex-direction: column;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 5px 0; /* Add some padding */
}

/* Desktop Hover */
@media (min-width: 769px) {
  .language-select:hover .language-options {
    display: flex;
    opacity: 1;
    visibility: visible;
  }
}

/* Mobile Click Toggle */
.language-select .language-options.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}


.language-select .language-options button {
  padding: 8px 12px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: #333; /* Text color for options */
  width: 100%;
  transition: background-color 0.2s ease;
}

.language-select .language-options button:hover {
  background: #f1f1f1;
}

/* Navigation */
nav {
  display: flex;
  justify-content: center;
  background: #333;
  padding: 10px;
}

nav a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: #007BFF;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #007BFF;
}

/* Hero Section */
.hero {
  background: url('background2.jpeg') no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .cta-button {
  background: #FF6B35;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  font-weight: bold;
}

.hero .cta-button:hover {
  background: #E85D04;
  transform: translateY(-2px);
}

/* About Us Section */
.about-us {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}

.about-us h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #333;
  position: relative;
}

.about-us h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #007BFF;
}

.about-us p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
}

.why-choose-us h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #333;
  position: relative;
}

.why-choose-us h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #007BFF;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.feature-item {
  background: #f9f9f9;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 2.5rem;
  color: #007BFF;
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.feature-item p {
  font-size: 1rem;
  color: #666;
}

/* Services Section */
.services {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #333;
  position: relative;
}

.services h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #007BFF;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.service-item {
  background: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.service-item p {
  font-size: 1rem;
  color: #666;
}

.warranty-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FF6B35;
  color: white;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: bold;
}

/* Portfolio Section */
.portfolio {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.portfolio h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #333;
  position: relative;
}

.portfolio h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #007BFF;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.portfolio-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.portfolio-item p {
  font-size: 1rem;
  color: #666;
}

/* Call-to-Action Section */
.cta {
  padding: 60px 20px;
  background: #007BFF;
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.cta .cta-button {
  background: #FF6B35;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  font-weight: bold;
}

.cta .cta-button:hover {
  background: #E85D04;
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

footer p {
  margin: 10px 0;
  font-size: 1rem;
}

footer .social-icons {
  margin: 20px 0;
}

footer .social-icons a {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: #007BFF;
}

/* Sticky Header */
.sticky-header {
  position: fixed;
  top: -100px;
  left: 0;
  width: 100%;
  background: rgba(0, 123, 255, 0.95);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: top 0.3s ease;
}

.sticky-header.visible {
  top: 0;
}

.sticky-header .logo-small {
  height: 40px;
  width: auto;
}

.sticky-header .sticky-nav {
  display: flex;
}

.sticky-header .sticky-nav a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

.sticky-header .sticky-cta {
  background: #FF6B35;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.sticky-header .sticky-cta:hover {
  background: #E85D04;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hide mobile nav by default */
nav.mobile-nav {
  display: none;
}

/* Media Queries */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  /* Adjust main nav container for mobile */
  nav {
    /* Allow nav itself to be flex container if needed, but hide desktop links */
     padding: 0; /* Remove padding if using flex for mobile */
  }

  nav a {
    /* General mobile link styling if needed */
  }

  .service-grid, .portfolio-grid, .features-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-menu-toggle {
    display: block;
    position: fixed; /* Change to fixed */
    top: 15px;      /* Position from top */
    left: 15px;     /* Position from left */
    z-index: 1001; /* Ensure toggle is above other elements */
    color: #007BFF; /* Make toggle visible */
    background-color: rgba(255, 255, 255, 0.9); /* Slightly less transparent background */
    padding: 8px 10px; /* Adjust padding */
    border-radius: 5px; /* Slightly rounder corners */
    border: none; /* Remove default border */
    cursor: pointer;
    font-size: 1.8rem; /* Adjust icon size */
  }

  /* Hide header language select on mobile */
  header .language-select {
    display: none;
  }

  /* Style mobile nav language select */
  nav.mobile-nav .language-select {
    position: relative; /* Reset position */
    top: auto;
    right: auto;
    bottom: auto;
    margin-top: 20px;
    width: 80%; /* Adjust width */
    max-width: 200px; /* Max width */
    display: block; /* Make sure it shows */
    order: 10; /* Ensure it appears after links */
  }

  nav.mobile-nav .language-select .language-button {
     width: 100%;
     justify-content: center;
     padding: 10px;
     background-color: #444;
     color: #fff;
     border: none;
  }
   nav.mobile-nav .language-select .language-button:hover {
     background-color: #555;
   }

  nav.mobile-nav .language-select .language-options {
    position: static; /* Display below button in nav flow */
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    background-color: #555;
    /* Options toggled by JS click */
    opacity: 1;
    visibility: visible;
    display: none; /* Hidden by default, shown via .active */
    margin-top: 5px; /* Space between button and options */
    border: none;
    flex-direction: column; /* Ensure options stack vertically */
  }

   nav.mobile-nav .language-select .language-options.active {
       display: flex; /* Show when active */
   }

  nav.mobile-nav .language-select .language-options button {
    color: #fff;
    text-align: center;
    padding: 10px;
    background-color: #555;
  }
   nav.mobile-nav .language-select .language-options button:hover {
     background-color: #666;
   }

  nav.desktop-nav {
    display: none;
  }

  nav.mobile-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Darker background */
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 60px; /* Space for close button */
  }

  nav.mobile-nav.active {
    display: flex; /* Show when active */
  }

  nav.mobile-nav a {
    margin: 15px 0; /* Increased spacing */
    font-size: 1.8rem; /* Larger font */
    color: #fff;
    text-decoration: none;
    display: block; /* Ensure links take full width */
    text-align: center;
    width: 100%;
  }

  .close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem; /* Larger close icon */
    cursor: pointer;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Lazy Loading */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}
