/* ===========================
   BASE STYLES
=========================== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #4b1b00;
  background: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-weight: 600;
}

/* ===========================
   HEADER & NAVIGATION
=========================== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  position: relative;
}

/* Default logo size */
.logo img {
  height: 100px;
  transition: height 0.3s ease;
}

/* Shrunk header when scrolling */
header.shrink .logo img {
  height: 65px;
}


.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}

.menu a {
  text-decoration: none;
  color: #4b1b00;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover {
  color: #4CAF50;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 6px;
  width: 200px;
}

.dropdown-menu li {
  padding: 8px 15px;
}

.dropdown-menu li a {
  display: block;
  color: #4b1b00;
}

.dropdown-menu li a:hover {
  color: #4CAF50;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

/* Button */
.btn {
  background: linear-gradient(90deg, #4CAF50, #f6b400);
  color: white;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: linear-gradient(90deg, #f6b400, #4CAF50);
}

.btn.small {
  padding: 8px 18px;
  font-size: 14px;
}

/* ===========================
   HERO SLIDER
=========================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slider img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* Overlay Text */
.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
}

.slider-overlay h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* ===========================
   FIXED SLIDER ARROWS POSITION
=========================== */
.slider-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none; /* Allows clicks to pass except arrows */
}

.slider-arrows span {
  pointer-events: auto; /* Restore click functionality for arrows */
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 12px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  margin: 0 15px; /* Ensures arrows stay inside banner edges */
}

.slider-arrows span:hover {
  background: rgba(246, 180, 0, 0.9);
  transform: scale(1.1);
}

.slider-arrows i {
  font-size: 18px;
}

@media (max-width: 768px) {
  .slider-arrows span {
    padding: 10px 12px;
    margin: 0 10px;
  }
  .slider-arrows i {
    font-size: 16px;
  }
}


/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.3s;
}

.slider-dots .dot.active {
  background: #f6b400;
}

@media (max-width: 768px) {
  .hero-slider, .hero-slider img {
    height: 300px;
  }
  .slider-overlay h1 {
    font-size: 1.6rem;
  }
}


/* ===========================
   PAGE TITLE BANNER
=========================== */
.page-title {
  background: url('images/bg-oil.jpg') center center/cover no-repeat;
  position: relative;
  padding: 80px 0;
  text-align: center;
  color: #fff;
  border-bottom: 2px solid #f6b400;
}

.page-title::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.page-title .container {
  position: relative;
  z-index: 1;
}

.page-title h1 {
  font-size: 2rem;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.page-title i {
  color: #f6b400;
  margin-right: 8px;
}

/* ===========================
   ABOUT SECTION
=========================== */
.about {
  padding: 80px 0;
  background: #fafafa;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-img {
  flex: 1;
  min-width: 300px;
  height: 250px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   PRODUCTS (GRID VIEW)
=========================== */
.products {
  padding: 80px 0;
}

.products h2 {
  text-align: center;
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  text-align: center;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-card .product-image {
  width: 200px;
  height: 300px;
  background: #fff;
  border: 1px solid #ddd;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 14px;
}

/* ===========================
   PRODUCT DETAILS PAGE
=========================== */
.inner-page {
  padding: 80px 0;
}

.product-detail {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.product-detail .product-image {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.product-detail .product-image img {
  width: 100%;
  max-width: 200px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.product-detail .product-info {
  flex: 2;
  min-width: 300px;
}

.product-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.product-specs td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.price {
  color: #4CAF50;
  margin: 5px 0 10px;
}

.divider {
  border: 0;
  border-top: 2px solid #f6b400;
  margin: 50px 0;
}

/* ===========================
   CONTACT FORM
=========================== */
.contact-section {
  padding: 80px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 20px auto;
}

.contact-form label {
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: #4b1b00;
  color: white;
  padding-top: 60px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 30px;
}

.footer-widget h3 {
  color: #f6b400;
  margin-bottom: 15px;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

.footer-widget ul li a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: 0.3s;
}

.footer-widget ul li a:hover {
  color: #f6b400;
}

.copyright {
  background: #3a1200;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
}

/* ===========================
   MOBILE MENU FIXED VERSION
=========================== */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: #4b1b00;
  cursor: pointer;
}

@media (max-width: 900px) {
  nav {
    position: relative;
    width: 100%;
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    color: #4b1b00;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 20;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 10;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding: 12px 20px;
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .menu li a {
    display: block;
    width: 100%;
    color: #4b1b00;
    text-align: left;
  }

  .dropdown-menu {
    display: none;
    background: #fafafa;
    box-shadow: none;
    border: none;
    width: 100%;
    padding-left: 20px;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .dropdown-menu li {
    border-bottom: none;
    padding: 8px 0;
  }
}

/* ===========================
   RESPONSIVE PAGE TITLE FIX
=========================== */
@media (max-width: 768px) {
  .page-title h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .page-title h1 {
    font-size: 1.4rem;
  }
}

/* ===========================
   CONTACT PAGE LAYOUT
=========================== */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.contact-info, .contact-form-container {
  flex: 1;
  min-width: 300px;
}

.contact-info h2, .contact-form-container h2 {
  color: #4b1b00;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 15px;
  margin: 8px 0;
}

.office-icons a {
  display: inline-block;
  font-size: 18px;
  margin-right: 10px;
  color: #4CAF50;
  transition: 0.3s;
}

.office-icons a:hover {
  color: #f6b400;
}

/* Google Map Section */
.map-section iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
  margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
  .map-section iframe {
    height: 350px;
  }
}

/* ===========================
   COMPANY ALBUM SECTION
=========================== */
.company-album {
  padding: 80px 0;
  background: #fafafa;
}

.company-album h2 {
  text-align: center;
  color: #4b1b00;
  margin-bottom: 40px;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
}

.album-item {
  width: 200px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.album-item:hover img {
  transform: scale(1.05);
}

/* ===========================
   gallery SECTION
=========================== */
.photo-gallery {
  padding: 80px 0;
  background: #fafafa;
}

.photo-gallery h2 {
  text-align: center;
  color: #4b1b00;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
}

.gallery-item {
  width: 168px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===========================
   LIGHTBOX STYLES
=========================== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border: 3px solid #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.lightbox-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-overlay .close-btn:hover {
  color: #f6b400;
}
