:root {
  --primary-color: #92278E;
  --secondary-color: #662d90;
  --dark-color: #333;
  --light-color: #f8f9fa;
  --text-color: #212121;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1rem;
  height: 80px; /* Define a consistent height */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.logo {
  height: 50px;
}

.nav-menu {
  list-style: none;
  display: flex;
  margin-bottom: 0.5rem;
}

.nav-menu li {
  margin-left: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: color 0.3s;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
  padding: 0.5rem;
}

section {
  min-height: auto;
  padding: 3rem 0;
  display: flex;
  align-items: center;
}

/* Hero section with parallax background image */
#hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/dubai.jpg');
  background-size: cover;
  background-position: center 400%;
  background-attachment: fixed; /* This creates the parallax effect */
  text-align: center;
  padding-top: 7rem; /* Slightly reduced padding */
  padding-bottom: 4rem; /* Slightly reduced padding */
  margin-top: 0;
  min-height: 70vh; /* Reduced from 80vh to 60vh */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

#hero h1 {
  font-size: 2.6rem; /* Slightly reduced size */
  margin-bottom: 1rem; /* Slightly reduced margin */
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Add text shadow for better readability */
}

#hero p {
  font-size: 1.2rem; /* Slightly reduced size */
  margin-bottom: 0;
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Add text shadow for better readability */
}

/* Remove .light-overlay styles or modify them if used elsewhere */

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.btn:hover {
  background-color: #1976d2;
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #00b34a;
}

.product-section {
  background-color: var(--light-color);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.product-image {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#contact {
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.contact-form textarea {
  height: 150px;
  resize: vertical; /* Allow vertical resizing only */
}

/* Contact form button improvements */
.contact-form button,
.contact-form input[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  width: auto;
  min-width: 150px;
  outline: none;
}

.contact-form button:hover,
.contact-form input[type="submit"]:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.contact-form button:active,
.contact-form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

/* Focus state for better accessibility */
.contact-form button:focus,
.contact-form input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(146, 39, 142, 0.3);
}

/* Match input field styling for consistency */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Match body font */
  font-size: 1rem; /* Standardize font size */
  color: var(--text-color);
}

/* Style placeholders consistently */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Match body font */
  opacity: 0.8;
}

/* For Firefox */
.contact-form input::-moz-placeholder,
.contact-form textarea::-moz-placeholder {
  color: #999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  opacity: 0.8;
}

/* For Edge/IE */
.contact-form input:-ms-input-placeholder,
.contact-form textarea:-ms-input-placeholder {
  color: #999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  opacity: 0.8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(146, 39, 142, 0.1);
  outline: none;
}

footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* About Section Styling */
#about {
  background-color: white;
  padding: 5rem 0;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px; /* Position it initially at header height */
    left: 0;
    right: 0;
    background-color: white;
    width: 100%;
    height: 0; /* Start with zero height */
    overflow: hidden; /* Hide content initially */
    max-height: 0; /* Start with zero max-height */
    flex-direction: column;
    transition: max-height 0.3s ease; /* Animate max-height instead of top */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 0 1.5rem; /* Remove vertical padding initially */
    z-index: 999;
  }

  .nav-menu.active {
    height: auto;
    max-height: calc(100vh - 80px); /* Allow it to expand */
    padding: 1.5rem; /* Restore padding when active */
    overflow-y: auto; /* Allow scrolling when expanded */
  }

  .nav-menu li {
    margin: 0.75rem 0;
    text-align: center;
  }

  .mobile-toggle {
    display: block; /* Ensure it's displayed on mobile */
    position: absolute; /* Position it absolute within the header */
    right: 1rem; /* Distance from right edge */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Perfect vertical centering */
    z-index: 1001; /* Ensure it's above other elements */
  }

  header {
    position: fixed; /* Change back to fixed for proper dropdown behavior */
    display: flex;
    align-items: center;
  }

  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 1rem; /* Reduced from 5rem to 3rem */
  }

  section:first-of-type {
    padding-top: 6rem;
  }

  #about {
    padding: 3rem 1rem;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-group .btn {
    width: 100%;
    max-width: 300px;
    margin-right: 0;
  }
}

.bg-image {
  background-size: cover;
  background-position: center;
  min-height: 50vh; /* Reduced height */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.content-overlay {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
}

.light-text {
  color: var(--light-color);
}

.divider {
  height: 2rem;
  background-color: var(--primary-color);
}

/* Product section needs padding-top when it's the first section */
#products:first-child {
  padding-top: 6rem;
}

/* Form response styling */
.form-response {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 5px;
  display: none;
  font-weight: 500;
}

.form-response.success {
  display: block;
  background-color: rgba(0, 180, 74, 0.1);
  color: #00833d;
  border-left: 4px solid #00833d;
}

.form-response.error {
  display: block;
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-left: 4px solid #dc3545;
}