/* Base Styles & Variables */
:root {
  /* Color Palette */
  --primary-color: #0a2463; /* Royal Blue */
  --secondary-color: #d4af37; /* Metallic Gold */
  --accent-color: #3e92cc; /* Lighter Blue */
  --text-color: #333;
  --text-light: #f8f9fa;
  --text-muted: #6c757d;
  --light-bg: #f8f9fa;
  --dark-bg: #1a1a1a;
  --white: #ffffff;
  --black: #000000;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--white);
}

body.rtl {
  direction: rtl;
  text-align: right;
}

body.ltr {
  direction: ltr;
  text-align: left;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
  background-color: var(--white);
  z-index: 2;
  margin-top: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

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

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 253, 248, 0.77);
}

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

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  font-family: "Playfair Display", serif;
  letter-spacing: 2px;
  transition: var(--transition);
}

.logo-img {
  height: auto;
  width: 120px;
}

.header.scrolled .logo {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

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

.nav-link {
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.header.scrolled .nav-link {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition);
}

.header.scrolled .hamburger span {
  background-color: var(--primary-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  background: url("../assets/images/hero.png") no-repeat center center/cover;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  pointer-events: auto;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 1; /* Ensure it's visible by default */
  animation: fadeInUp 1s ease forwards;
  transform: translateY(0); /* Reset transform */
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  animation: fadeInUp 1s ease 0.2s both;
}

.scroll-down,
.scroll-down a {
  position: absolute;
  bottom: 30px;
  width: 100%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-down i {
  margin-top: 10px;
  font-size: 1.2rem;
}

/* About Section */
.about {
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px),
    radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position:
    0 0,
    20px 20px;
  opacity: 0.5;
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 50px;
}

.about-text {
  flex: 1;
  padding: 0 20px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 200px;
  padding: 40px 30px;
  background-color: white;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--secondary-color);
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle,
    rgba(10, 36, 99, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.stat-item::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.3) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
  pointer-events: none;
}

.stat-item:hover {
  border-color: var(--secondary-color);
  box-shadow:
    0 0 30px rgba(212, 175, 55, 0.4),
    inset 0 0 30px rgba(212, 175, 55, 0.1);
  transform: translateY(-8px);
}

.stat-item:hover::after {
  opacity: 1;
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--white);
  transition: var(--transition);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.stat-item:hover .stat-icon {
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
  transform: scale(1.1) rotate(-5deg);
}

.stat-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary-color);
  transition: var(--transition);
  font-family: "Playfair Display", serif;
}

.stat-item:hover .stat-title {
  color: var(--secondary-color);
}

.stat-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  transition: var(--transition);
  margin: 0;
}

.stat-item:hover .stat-description {
  color: var(--text-color);
}

/* Factory Section */
.factory {
  position: relative;
  overflow: hidden;
  color: white;
}

.factory-section-title {
  color: white;
}

.factory .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.factory-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.factory-info {
  flex: 1;
}

.factory-info .section-title {
  display: block;
}

.factory-info .section-title::after {
  left: 0;
  transform: none;
}

.factory-info .section-subtitle {
  margin: 0;
  max-width: none;
}

.factory-description {
  margin-top: 24px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.factory::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: radial-gradient(circle at top, #041432 0, #020614 50%, #000 100%); */
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  z-index: -1;
}

.factory-video {
  flex: 1;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(212, 175, 55, 0.2);
}

.factory-video video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #000;
}

.factory-carousel {
  position: relative;
  padding: 0 40px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 500px;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-slide::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.carousel-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  color: var(--white);
  z-index: 2;
}

.carousel-slide h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--white);
}

.carousel-slide p {
  margin-bottom: 0;
  opacity: 0.9;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 3;
  backdrop-filter: blur(5px);
}

.carousel-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--secondary-color);
  transform: scale(1.2);
}

/* Product Section */
.product {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.product::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(62, 146, 204, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.product-content {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.product-image {
  flex: 1;
  position: relative;
  text-align: center;
}

.product-image img {
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  filter: drop-shadow(0 20px 40px rgba(10, 36, 99, 0.15));
  transition: var(--transition);
}

.product-image:hover img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2d8a4e, #1e6b3a);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(45, 138, 78, 0.4);
}

.product-details {
  flex: 1;
}

.product-heading {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.product-details > p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-color);
}

.product-features {
  margin: 30px 0;
}

.product-feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 15px;
  background-color: var(--light-bg);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
  transition: var(--transition);
}

.product-feature:hover {
  transform: translateX(5px);
  box-shadow: var(--box-shadow);
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.product-feature h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.product-feature p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Services Section */
.services {
  background-color: var(--light-bg);
}

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

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  transition: var(--transition);
  z-index: -1;
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  height: 100%;
  opacity: 1;
}

.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p {
  color: var(--white);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: var(--secondary-color);
  transition: var(--transition);
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card p {
  color: var(--text-muted);
  transition: var(--transition);
}

/* Contact Section */
.contact {
  background: white;
}

.contact-content {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-top: 5px;
}

.info-item h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.contact-form {
  flex: 1;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  padding: 44px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 540px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 17px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background-color: #041432;
  color: var(--text-light);
  padding: 80px 0 0;
}

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

.footer-about h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-about p {
  margin-bottom: 20px;
  opacity: 0.8;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-links h3,
.footer-newsletter h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-newsletter h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.footer-links-col {
  display: flex;
  flex-direction: row;
  gap: 4em;
}
.footer-newsletter p {
  margin-bottom: 20px;
  opacity: 0.8;
  line-height: 1.8;
}

.newsletter-form {
  display: flex;
  position: relative;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  padding-right: 50px;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-bottom-links {
  margin-top: 10px;
}

.footer-bottom-links a {
  color: var(--white);
  margin: 0 10px;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--secondary-color);
  opacity: 1;
}

/* Language Toggle */
.lang-toggle {
  position: fixed;
  bottom: 95px;
  right: 30px;
  font-size: 1.2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 999;
  transition: var(--transition);
}

.lang-toggle:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

body.rtl .lang-toggle {
  right: auto;
  left: 30px;
}

body.rtl .back-to-top {
  right: auto;
  left: 30px;
}

body.rtl .footer-links h3::after {
  right: 0;
  left: auto;
}

body.ltr .footer-links h3::after {
  left: 0;
  right: auto;
}

body.rtl .factory-info .section-title::after {
  right: 0;
  left: auto;
}

body.ltr .factory-info .section-title::after {
  left: 0;
  right: auto;
}

body.rtl .size-benefits li::before {
  right: -22px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

/* Preloader & Water Loader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.water-loader {
  position: relative;
  width: 130px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* Loading Progress Bar */
.loading-progress-container {
  width: 180px;
  height: 6px;
  background-color: rgba(10, 36, 99, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-top: 10px;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  border-radius: 10px;
  transition: width 0.1s linear;
}

/* Loading Text */
.loading-text {
  font-family: "Poppins", sans-serif;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: pulseText 1.5s infinite ease-in-out;
}

@keyframes pulseText {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* The Glass Cup */
.cup {
  position: relative;
  width: 80px;
  height: 100px;
  border: 6px solid var(--primary-color);
  border-top: 1px solid rgba(10, 36, 99, 0.2);
  border-radius: 0 0 16px 16px;
  background-color: #f8f9fa;
  box-shadow: 0 8px 32px 0 rgba(10, 36, 99, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden;
  z-index: 2;
}

/* Glass shine/highlight effect */
.cup::after {
  content: "";
  position: absolute;
  top: 0;
  right: 8px;
  width: 10px;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  z-index: 5;
  pointer-events: none;
}

/* Water Level */
.water {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(
    to top,
    rgba(4, 4, 120, 0.953),
    var(--accent-color)
  );
  animation: fillWater 4s infinite ease-in-out;
}

/* Wave overlay at the top of the water */
.water::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background-color: #f8f9fa;
  bottom: 92%;
  left: -50%;
  border-radius: 38% 42% 40% 45%;
  animation: waveRotate 2s infinite linear;
}

/* Pouring stream of water */
.water-stream {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  background: linear-gradient(
    to bottom,
    var(--accent-color),
    var(--primary-color)
  );
  border-radius: 3px;
  opacity: 0;
  z-index: 1;
  animation: streamPour 4s infinite ease-in-out;
}

/* Splash drops container */
.splash-drops {
  position: absolute;
  top: 75px; /* aligned with the top of the cup */
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  pointer-events: none;
  z-index: 3;
}

/* Splash drop styling */
.drop {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--accent-color);
  border-radius: 50%;
  opacity: 0;
  bottom: 10px;
  left: 50%;
}

.drop-1 {
  animation: splashLeft 4s infinite ease-out;
}

.drop-2 {
  animation: splashRight 4s infinite ease-out;
}

.drop-3 {
  animation: splashHighLeft 4s infinite ease-out;
}

.drop-4 {
  animation: splashHighRight 4s infinite ease-out;
}

/* Animations */

@keyframes fillWater {
  0% {
    height: 10%;
  }
  70% {
    height: 90%;
  }
  85% {
    height: 90%;
    opacity: 1;
  }
  90% {
    height: 90%;
    opacity: 0;
  }
  100% {
    height: 0%;
    opacity: 0;
  }
}

@keyframes waveRotate {
  0% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(320deg);
  }
}

@keyframes streamPour {
  0% {
    height: 0;
    opacity: 0;
  }
  5% {
    height: 80px;
    opacity: 0.8;
  }
  70% {
    height: 80px;
    opacity: 0.8;
  }
  75% {
    height: 0;
    opacity: 0;
  }
  100% {
    height: 0;
    opacity: 0;
  }
}

/* Splash Left Animation */
@keyframes splashLeft {
  0%,
  20%,
  40%,
  60%,
  80%,
  100% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  10%,
  30%,
  50%,
  70% {
    transform: translate(-10px, -5px) scale(1);
    opacity: 1;
  }
  18%,
  38%,
  58%,
  78% {
    transform: translate(-35px, -15px) scale(0.5);
    opacity: 0;
  }
}

/* Splash Right Animation */
@keyframes splashRight {
  0%,
  20%,
  40%,
  60%,
  80%,
  100% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  12%,
  32%,
  52%,
  72% {
    transform: translate(10px, -7px) scale(1);
    opacity: 1;
  }
  19%,
  39%,
  59%,
  79% {
    transform: translate(35px, -18px) scale(0.4);
    opacity: 0;
  }
}

/* Splash High Left Animation */
@keyframes splashHighLeft {
  0%,
  20%,
  40%,
  60%,
  80%,
  100% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  15%,
  35%,
  55%,
  75% {
    transform: translate(-5px, -15px) scale(1.1);
    opacity: 1;
  }
  22%,
  42%,
  62%,
  82% {
    transform: translate(-20px, -35px) scale(0.3);
    opacity: 0;
  }
}

/* Splash High Right Animation */
@keyframes splashHighRight {
  0%,
  20%,
  40%,
  60%,
  80%,
  100% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  8%,
  28%,
  48%,
  68% {
    transform: translate(5px, -12px) scale(0.9);
    opacity: 1;
  }
  16%,
  36%,
  56%,
  76% {
    transform: translate(20px, -30px) scale(0.2);
    opacity: 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Bottle Sizes Section */
.sizes {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  position: relative;
  overflow: hidden;
}

.sizes::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.sizes::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(62, 146, 204, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.size-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.size-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1;
  background: var(--secondary-color);
  transition: var(--transition);
  z-index: -1;
  opacity: 0;
}

.size-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
}

.size-card:hover::before {
  height: 7px;
  opacity: 1;
}

.size-image {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  overflow: hidden;
}

.size-image img {
  max-width: 100%;
  max-height: 230px;
  object-fit: cover;
  transition: var(--transition);
  filter: drop-shadow(0 10px 20px rgba(10, 36, 99, 0.1));
}

.size-card:hover .size-image img {
  transform: scale(1.08) rotate(-2deg);
}

.size-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
  transition: var(--transition);
}

.size-card:hover .size-title {
  color: var(--secondary-color);
}

.size-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
  transition: var(--transition);
}

.size-card:hover .size-description {
  color: var(--text-color);
}

.size-benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.size-benefits li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-color);
  position: relative;
  padding-left: 25px;
  transition: var(--transition);
  text-align: start;
}

.size-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #30b761;
  font-weight: 800;
  font-size: 1.2rem;
}

.size-benefits li:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    color: var(--text-color) !important;
    padding: 10px 0;
    font-size: 1.1rem;
  }

  .hamburger {
    display: flex;
  }

  .about-content,
  .contact-content,
  .product-content,
  .factory-content {
    flex-direction: column;
  }

  .product-image img {
    max-width: 350px;
  }

  .stats {
    justify-content: center;
  }

  .stat-item {
    min-width: 120px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .carousel-track {
    height: 400px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-about,
  .footer-links,
  .footer-newsletter {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links h3::after,
  .footer-newsletter h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .newsletter-form {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero {
    min-height: 600px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .carousel-track {
    height: 300px;
  }

  .carousel-slide h3 {
    font-size: 1.5rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .back-to-top,
  .scroll-down,
  .carousel-btn,
  .carousel-dots {
    display: none !important;
  }

  body {
    padding: 20px;
    font-size: 12pt;
    line-height: 1.5;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .section {
    padding: 30px 0 !important;
    page-break-inside: avoid;
  }

  .section-title {
    font-size: 18pt !important;
    margin-bottom: 10px !important;
  }

  .section-subtitle {
    font-size: 14pt !important;
    margin-bottom: 20px !important;
  }

  .btn {
    display: none !important;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
    color: var(--text-muted);
  }
}
