/* Color Variables */
:root {
  --primary-bg: #0a0a0a; /* Darkest background */
  --secondary-bg: #1a1a1a; /* Slightly lighter background for sections/cards */
  --border-color: #333; /* Border color for cards/elements */
  --text-color: #e0e0e0; /* Light text color */
  --heading-color: #ff8c00; /* Vibrant orange for headings */
  --accent-color: #ff8c00; /* Vibrant orange for buttons/links */
  --accent-hover-color: #e67300; /* Darker orange on hover */
  --button-bg-green: #28a745; /* Green for checkout */
  --button-hover-green: #218838;
  --button-bg-gray: #444; /* Gray for secondary buttons */
  --button-hover-gray: #555;
  --star-color: #ffc107; /* Yellow for ratings */
  --error-color: #dc3545; /* Red for errors */
  --success-color: #28a745; /* Green for success */
}

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--primary-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header/Navbar */
.header {
  background-color: var(--secondary-bg);
  color: var(--text-color);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a,
.dropdown-trigger {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  padding: 8px 0;
  position: relative;
}

.nav-links a:hover,
.dropdown-trigger:hover {
  color: var(--accent-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .button {
  background-color: var(--accent-color);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.nav-links .button:hover {
  background-color: var(--accent-hover-color);
}

.menu-icon {
  display: none;
  cursor: pointer;
  font-size: 28px;
  color: var(--text-color);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--secondary-bg);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.6);
  z-index: 1;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  right: 0; /* Align to the right */
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  font-weight: normal;
}

.dropdown-content a:hover {
  background-color: var(--border-color);
  color: var(--accent-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero Section / Image Slider */
.image-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-item.active {
  opacity: 1;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.7), transparent);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.slider-content {
  color: white;
  max-width: 800px;
}

.slider-content h2 {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.slider-content p {
  font-size: 1.2em;
  line-height: 1.5;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--accent-color);
}

/* Sections */
section {
  padding: 80px 0;
  text-align: center;
}

section.bg-dark {
  background-color: var(--secondary-bg);
}

section.bg-darker {
  background-color: var(--primary-bg);
}

section h1,
section h2 {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 60px;
  color: var(--heading-color);
}

section h3 {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--heading-color);
}

section p {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-color);
}

/* General Card Style */
.card {
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 25px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 15px;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.card:hover .card-image::after {
  border-color: var(--accent-color); /* Glow effect */
}

.card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.card-description {
  color: var(--text-color);
  font-size: 0.95em;
  margin-bottom: 15px;
}

.card-price {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.card-rating {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.card-rating .star-icon {
  width: 20px;
  height: 20px;
  fill: var(--star-color);
  color: var(--star-color);
  margin-right: 2px;
}

.card-rating .empty-star {
  fill: none;
  color: var(--border-color);
}

.card-rating span {
  margin-left: 8px;
  color: var(--text-color);
}

/* Buttons */
.button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1em;
}

.button:hover {
  background-color: var(--accent-hover-color);
  transform: translateY(-2px);
}

.button.secondary {
  background-color: var(--button-bg-gray);
  border: 1px solid var(--border-color);
}

.button.secondary:hover {
  background-color: var(--button-hover-gray);
}

.button.green {
  background-color: var(--button-bg-green);
}

.button.green:hover {
  background-color: var(--button-hover-green);
}

/* Grid Layouts */
.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: left;
}

.grid-3-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.grid-4-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Text Content Styling */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-heading {
  color: var(--heading-color);
}

.text-primary {
  color: var(--text-color);
}

.text-secondary {
  color: var(--border-color);
}

.list-disc {
  list-style-type: disc;
  padding-left: 20px;
}

.list-decimal {
  list-style-type: decimal;
  padding-left: 20px;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"] /* Added for phone number */,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--primary-bg);
  color: var(--text-color);
  font-size: 1em;
  box-sizing: border-box; /* Include padding in width */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.3);
}

.form-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
}

.form-message.success {
  background-color: rgba(40, 167, 69, 0.2);
  color: var(--success-color);
}

.form-message.error {
  background-color: rgba(220, 53, 69, 0.2);
  color: var(--error-color);
}

/* Cart Page Specifics */
.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
  text-align: left;
}

.cart-item-details h3 {
  font-size: 1.4em;
  margin-bottom: 5px;
  color: var(--heading-color);
}

.cart-item-details p {
  color: var(--text-color);
  margin-bottom: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls input {
  width: 60px;
  text-align: center;
  padding: 8px;
  background-color: var(--primary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.quantity-controls .button {
  padding: 8px 12px;
  font-size: 1em;
  background-color: var(--button-bg-gray);
}

.quantity-controls .button:hover {
  background-color: var(--button-hover-gray);
}

.remove-button {
  background: none;
  border: none;
  color: var(--error-color);
  cursor: pointer;
  font-size: 1em;
  margin-left: auto;
  transition: color 0.3s ease;
}

.remove-button:hover {
  color: var(--error-color);
  text-decoration: underline;
}

.order-summary {
  background-color: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  text-align: left;
}

.order-summary h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: var(--heading-color);
  text-align: center;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text-color);
}

.summary-total {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--accent-color);
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 15px;
}

/* Product Detail Page Specifics */
.product-detail-grid {
  grid-template-columns: 1fr; /* Default to single column */
  gap: 60px;
  align-items: flex-start;
}

.product-image-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-image-container {
  width: 100%;
  height: 400px; /* Fixed height for main image */
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--border-color);
  position: relative;
  cursor: zoom-in;
}

.main-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.main-image-container:hover .main-product-image {
  transform: scale(1.2); /* Zoom effect on hover */
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.thumbnail-gallery img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.thumbnail-gallery img.active,
.thumbnail-gallery img:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.package-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.package-option {
  display: flex;
  align-items: center;
  background-color: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.package-option:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.package-option input[type="radio"] {
  margin-right: 15px;
  accent-color: var(--accent-color); /* Style radio button */
  width: 18px;
  height: 18px;
}

.package-option label {
  flex-grow: 1;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-color);
  cursor: pointer;
}

.package-option .package-price {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--accent-color);
}

/* Footer */
.footer {
  background-color: var(--secondary-bg);
  color: var(--text-color);
  padding: 60px 20px;
  text-align: left;
  border-top: 1px solid var(--border-color);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-icons a {
  color: var(--text-color);
  font-size: 1.8em;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  text-align: center;
  color: var(--border-color);
  font-size: 0.9em;
}

/* New/Updated Styles for Services Page */
.service-section {
  margin-bottom: 60px;
  padding: 40px;
  text-align: left;
}

.service-section h2 {
  font-size: 2.5em;
  margin-bottom: 25px;
  text-align: left; /* Ensure main service titles are left-aligned */
}

.sub-service-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.sub-service-section h3 {
  font-size: 2em;
  margin-bottom: 25px;
  text-align: left; /* Ensure sub-service titles are left-aligned */
}

.sub-service-section h4 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-color); /* Ensure sub-sub-titles are consistent */
}

.service-image-container {
  height: 300px;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.service-image-container:hover img {
  transform: scale(1.05);
}

.service-text-block {
  /* Ensures consistent padding/margin for text within grid columns */
  padding: 0;
}

.partner-card {
  background-color: var(--primary-bg); /* Darker background for partner cards */
  border: 1px solid var(--accent-color); /* Orange border */
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2); /* Orange shadow */
  transition: all 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-8px); /* More pronounced lift on hover */
  box-shadow: 0 12px 30px rgba(255, 140, 0, 0.4); /* Stronger orange shadow */
}

/* Responsive Design */
@media (min-width: 600px) {
  .grid-2-cols {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .grid-4-cols {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .menu-icon {
    display: none;
  }
  .nav-links {
    display: flex;
  }
  .slider-content h2 {
    font-size: 4.5em;
  }
  .slider-content p {
    font-size: 1.4em;
  }
  .grid-2-cols.lg-2-cols {
    /* For specific 2-col layout on larger screens */
    grid-template-columns: 1fr 1fr;
  }
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-detail-grid {
    grid-template-columns: 1fr 1.5fr; /* Two columns for product detail on larger screens */
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; /* Adjust based on header height */
    left: 0;
    width: 100%;
    background-color: var(--secondary-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a,
  .dropdown-trigger {
    padding: 15px 20px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .menu-icon {
    display: block;
  }

  .dropdown-content {
    position: static; /* Make dropdown content flow naturally in mobile menu */
    width: 100%;
    box-shadow: none;
    border: none;
    background-color: var(--primary-bg); /* Slightly different background for sub-items */
  }

  .dropdown-content a {
    padding-left: 40px; /* Indent dropdown items */
  }

  .slider-content h2 {
    font-size: 2.5em;
  }
  .slider-content p {
    font-size: 1em;
  }

  section h1,
  section h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
  }
  section h3 {
    font-size: 1.8em;
  }

  .grid-2-cols,
  .grid-3-cols,
  .grid-4-cols {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .cart-item-details {
    width: 100%;
  }
  .quantity-controls {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  .remove-button {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }
  .order-summary {
    margin-top: 40px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .main-image-container {
    height: 300px;
  }
  .thumbnail-gallery {
    justify-content: center;
  }
}
#flipbook {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

