/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c1810;
  background: linear-gradient(135deg, #800020, #dc143c);
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Header styles */
header {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(216, 128, 128, 0.801);
  /* Make header non-sticky so it scrolls away with the page */
  position: relative;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem;
  position: relative;
}

.logo img {
  height: 120px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  font-size: large;
  color: #000000;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(45deg, #dc143c, #b22222);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: #dc143c;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
#nav-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

#nav-menu ul {
  flex-direction: column;
  padding: 1rem 0;
  height: 100%;
  justify-content: center;
  align-items: center;
}

#nav-menu ul li {
  margin: 0.5rem 0;
  text-align: center;
  width: 100%;
}

#nav-menu ul li a {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  display: block;
  width: 100%;
  text-align: center;
}

#nav-menu.open {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("./assets/121.png") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 14, 14, 0.407);
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: rgb(255, 255, 255);
  z-index: 2;
  animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h2 {
  font-size: 3.5rem;

  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: slideInLeft 1s ease-out s both;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: slideInRight 1s ease-out 1s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cta-button {
  background: transparent;
  color: #800020;
  border: 2px solid #800020;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  margin-top: 10px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.hero-cta-button {
  background: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-cta-button:hover {
  background: white;
  color: #800020;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Container and layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.about,
.services,
.contact {
  background: white;
  border-radius: 20px;
  margin: 2rem auto;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(128, 0, 32, 0.2);
  animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.about-content,
.contact-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-section {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-section.reverse {
  flex-direction: row-reverse;
}

.about-text,
.contact-info {
  flex: 1;
}

.about-image,
.contact-form {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(128, 0, 32, 0.3);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 228, 225, 0.9)
  );
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 25px rgba(128, 0, 32, 0.2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px) rotate(2deg);
  border-color: #ffd700;
  box-shadow: 0 15px 35px rgba(128, 0, 32, 0.3);
}

.service-card h3 {
  color: #800020;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Contact form */
.contact-form {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(128, 0, 32, 0.2);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #800020;
  box-shadow: 0 0 10px rgba(128, 0, 32, 0.3);
}

.contact-form button {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #800020;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #800020;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #800020;
  box-shadow: 0 0 10px rgba(128, 0, 32, 0.3);
}

/* Contact page: make phone/email links match surrounding text (no blue/underline) */
.contact-info a[href^="tel:"],
.contact-info a[href^="mailto:"],
.contact-info a {
  color: inherit;
  text-decoration: none;
}

.contact-info a:hover,
.contact-info a:focus {
  color: inherit;
  text-decoration: none;
  outline: none;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #800020, #dc143c);
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.footer-container ul {
  display: flex;
  list-style: none;
}

.footer-container ul li {
  margin-left: 2rem;
}

.footer-container ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-container ul li a:hover {
  color: #ffd700;
}

/* Ensure the III Enterprises footer link appears white */
.footer-container .iii-link {
  color: #ffffff !important;
}
.footer-container .iii-link:hover,
.footer-container .iii-link:focus {
  color: #ffffff !important;
  text-decoration: none;
}

/* Products page styles */
.products {
  padding: 4rem 0;
}

.category-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.tab-button {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #800020;
  color: #800020;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tab-button.active,
.tab-button:hover {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #800020;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 228, 225, 0.9)
  );
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(128, 0, 32, 0.2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.product-card.show {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #ffd700;
  box-shadow: 0 15px 35px rgba(128, 0, 32, 0.3);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #800020;
  margin-bottom: 0.5rem;
}

.product-description {
  color: #2c1810;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-description ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-description li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.product-description li::before {
  content: "✓";
  color: #800020;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.product-description li:first-child {
  font-weight: bold;
  color: #dc143c;
}

.product-info .cta-button {
  background: transparent;
  border: #800020;
  color: #800020;
  display: inline-block;
  margin-top: 1rem;
}

.product-price {
  color: #ffd700;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.add-to-cart {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #800020;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Animations */
.animate {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }

  .hamburger {
    display: flex;
  }

  .left-nav,
  .right-nav {
    display: none;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .mobile-br {
    display: block;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .about-content,
  .contact-content,
  .about-section {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-button {
    width: 100%;
    max-width: 300px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-container ul {
    margin-top: 1rem;
  }

  .footer-container ul li {
    margin-left: 1rem;
  }
}

/* Tablet styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-container {
    padding: 1.5rem;
  }

  .logo img {
    height: 120px;
  }

  nav ul li {
    margin-left: 1.5rem;
  }

  .hero-content h2 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
  }

  .container {
    padding: 3rem 2rem;
  }

  .about-content,
  .contact-content {
    gap: 2rem;
  }

  .about-section .about-image {
    width: 100%;
    text-align: center;
  }

  .about-section .about-image img {
    max-width: 100%;
    height: auto;
    margin: 0 auto 1rem auto;
  }

  .services-grid,
  .featured-grid,
  .reasons-grid,
  .testimonials-grid,
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .footer-container {
    padding: 0 2rem;
  }
}

/* Desktop styles (>1024px) */
@media (min-width: 1025px) {
  .container {
    max-width: 1400px;
    padding: 4rem 2rem;
  }

  .header-container {
    max-width: 17500px;
    padding: 1rem;
  }

  .logo img {
    height: 120px;
  }

  nav ul li {
    margin-left: 2.5rem;
  }

  .hero-content h2 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .services-grid,
  .featured-grid,
  .reasons-grid,
  .testimonials-grid,
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .about-content,
  .contact-content {
    gap: 4rem;
  }

  .footer-container {
    max-width: 1400px;
    padding: 0 2rem;
  }
}

/* Download Catalogue Section */
.download-catalogue {
  padding: 0;
  background: white;
  text-align: center;
}

.download-catalogue h2 {
  color: #800020;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.download-catalogue p {
  color: #2c1810;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Featured Products */
.featured-products {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.featured-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 228, 225, 0.9)
  );
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(128, 0, 32, 0.2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.featured-card:hover {
  transform: translateY(-10px);
  border-color: #ffd700;
  box-shadow: 0 15px 35px rgba(128, 0, 32, 0.3);
}

.featured-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-image {
  transform: scale(1.05);
}

.featured-info {
  padding: 1.5rem;
  text-align: center;
}

.featured-info h3 {
  color: #800020;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.featured-info p {
  color: #2c1810;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.featured-price {
  color: #ffd700;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Why Choose Us */
.why-choose-us {
  padding: 4rem 0;
  background: linear-gradient(
    135deg,
    rgba(128, 0, 32, 0.1),
    rgba(220, 20, 60, 0.1)
  );
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.reason-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(128, 0, 32, 0.2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.reason-card:hover {
  transform: translateY(-5px);
  border-color: #ffd700;
  box-shadow: 0 12px 30px rgba(128, 0, 32, 0.3);
}

.reason-card h3 {
  color: #800020;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Testimonials */
.testimonials {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 228, 225, 0.9)
  );
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(128, 0, 32, 0.2);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: rgba(128, 0, 32, 0.2);
  font-family: serif;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: #ffd700;
  box-shadow: 0 12px 30px rgba(128, 0, 32, 0.3);
}

.testimonial-card p {
  margin-bottom: 1rem;
  font-style: italic;
  line-height: 1.4;
  padding-left: 40px;
}

.testimonial-card cite {
  font-weight: bold;
  color: #800020;
  padding-left: 40px;
}

/* Loading animation */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.loaded {
  opacity: 1;
}

.product-card {
  transition: opacity 0.3s ease;
}

/* Very small screens (480px and below) */
@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .product-grid,
  .featured-grid,
  .reasons-grid,
  .testimonials-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card,
  .featured-card,
  .reason-card,
  .testimonial-card,
  .service-card {
    padding: 1rem;
  }

  .product-image,
  .featured-image {
    height: 150px;
  }

  .category-tabs {
    gap: 0.5rem;
  }

  .tab-button {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-description li {
    font-size: 0.9rem;
  }

  .product-info {
    padding: 1rem;
  }

  .logo img {
    height: 100px;
  }

  .hero {
    height: auto;
    padding: 4rem 0;
  }
}
