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

:root {
  --primary-color: #FF8C00;
  --secondary-color: #1B3A6B;
  --accent-color: #FF6B00;
  --text-color: #333;
  --text-light: #666;
  --bg-white: #fff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: transparent;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('images/CachedImage.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(0.2px);
  transform: scale(1.03);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(230, 234, 238, 0.38);
  z-index: -1;
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(15px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes iconFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes iconScale {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardHoverGlow {
  0% {
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.1);
  }
  100% {
    box-shadow: 0 20px 50px rgba(255, 140, 0, 0.3);
  }
}

/* Animate elements */
.animate-on-scroll {
  animation: cardSlideIn 0.6s ease-out forwards !important;
}

[data-animate] {
  animation-duration: 0.6s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

[data-animate="fade-in"] {
  animation-name: fadeIn;
}

[data-animate="fade-in-up"] {
  animation-name: fadeInUp;
}

[data-animate="fade-in-left"] {
  animation-name: fadeInLeft;
}

[data-animate="fade-in-right"] {
  animation-name: fadeInRight;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  border-bottom: 1px solid rgba(224, 224, 224, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  animation: fadeIn 0.6s ease-out;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.company-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF8C00;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #FF8C00;
}

/* Hero Section */
.hero {
  background: rgba(244, 246, 248, 0.74);
  color: #333;
  padding: 120px 20px;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

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

.hero-title {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -1px;
  color: #FF8C00;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
  font-weight: 300;
  color: #000;
}

.cta-button {
  display: inline-block;
  background: #FF8C00;
  color: var(--white);
  padding: 16px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
  border: 2px solid transparent;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 140, 0, 0.4);
}

/* Services Section */
.services {
  padding: 80px 20px;
  background: rgba(244, 246, 248, 0.74);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.section-title {
  font-size: 40px;
  text-align: center;
  margin-bottom: 60px;
  color: #FF8C00;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #FF8C00;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  border: 2px solid transparent;
  opacity: 0;
  transform: translateY(30px);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  --bg-image: none;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  z-index: 1;
  transition: filter 0.4s ease;
}

.card-overlay {
  position: relative;
  z-index: 2;
  padding: 30px;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .card-overlay {
  transform: scale(1.05);
}

.card-overlay h3 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.card-overlay p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 50px rgba(255, 140, 0, 0.3);
  border-color: #FF8C00;
}

.service-card:hover::before {
  filter: blur(5px) brightness(0.85);
}

.service-card .icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover .icon {
  transform: scale(1.1);
}

.service-card .service-icon-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  display: inline-block;
  transition: transform 0.3s ease;
  animation: iconScale 0.5s ease-out;
}

.service-card:hover .service-icon-image {
  transform: scale(1.1);
  animation: iconFloat 3s ease-in-out infinite;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover h3 {
  transform: scale(1.1);
}

.service-card p {
  color: #ffffff;
  line-height: 1.7;
  font-size: 14px;
  margin-bottom: 20px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.portfolio-btn {
  display: inline-block;
  background: #FF8C00;
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.portfolio-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.5);
}

/* About Section */
.about {
  padding: 80px 20px;
  background: rgba(244, 246, 248, 0.74);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 32px;
  color: #FF8C00;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-light);
  font-size: 15px;
}

.about-text strong {
  color: var(--secondary-color);
}

.factory-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-color);
  transition: transform 0.4s ease;
}

.about-image:hover .factory-image {
  transform: scale(1.03);
}

/* Contact Section */
.contact {
  padding: 80px 20px;
  background: rgba(244, 246, 248, 0.74);
  color: #333;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.section-title-light {
  font-size: 40px;
  text-align: center;
  margin-bottom: 60px;
  color: #FF8C00;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title-light::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #FF8C00;
  border-radius: 2px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 0px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #FF8C00;
  grid-column: 1 / -1;
}

.info-item {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.6s ease-out backwards;
}

.info-item:nth-child(1) { animation-delay: 0.2s; }
.info-item:nth-child(2) { animation-delay: 0.3s; }
.info-item:nth-child(3) { animation-delay: 0.4s; }

.info-item .label {
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

.info-item a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.info-item a:hover {
  color: #FF8C00;
  transform: translateX(5px);
}

.map-container {
  grid-column: 1 / -1;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #f0f0f0;
}

.map-container h4 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.map-container iframe:hover {
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.15);
}

.map-container a {
  display: inline-block;
  margin-top: 12px;
  color: #FF8C00;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.map-container a:hover {
  color: #E07B00;
  transform: translateX(5px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeInRight 0.6s ease-out;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: #fff;
  color: #333;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #333;
  background: #fff;
}

.contact-form select {
  color: #333;
}

.contact-form select option {
  background: var(--secondary-color);
  color: var(--white);
}

.contact-form button {
  background: #FF8C00;
  color: var(--white);
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

/* Footer */
.footer {
  background: var(--text-color);
  color: var(--white);
  text-align: center;
  padding: 40px 20px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.footer p {
  margin: 8px 0;
  opacity: 0.8;
  font-size: 14px;
}

/* Floating Contact Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.float-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.float-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.float-btn:hover::before {
  left: 100%;
}

.phone-btn {
  background: linear-gradient(135deg, #FF6B35, #FF5252);
  color: var(--white);
}

.whatsapp-btn {
  background-color: #25D366; /* Official WhatsApp green */
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  animation: whatsappPulse 2s infinite;
}
.float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.float-btn:active {
  transform: scale(0.95);
}

.icon-svg {
  width: 32px;
  height: 32px;
  color: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

.whatsapp-svg {
  width: 30px;
  height: 30px;
  fill: white;
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-container {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }

  .logo-img {
    height: 45px;
  }

  .company-name {
    font-size: 14px;
  }

  .hero {
    padding: 60px 20px;
    min-height: 400px;
  }

  .hero-title {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .cta-button {
    padding: 14px 35px;
    font-size: 15px;
  }

  .section-title,
  .section-title-light {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
    min-height: 300px;
  }

  .card-overlay {
    padding: 20px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .service-card p {
    font-size: 13px;
  }

  /* Optimize animations for tablets */
  @media (prefers-reduced-motion: reduce) {
    .service-card {
      animation: none;
    }

    .service-card:hover .service-icon-image {
      animation: none;
    }
  }

  .portfolio-btn {
    padding: 9px 20px;
    font-size: 12px;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .map-container iframe {
    height: 250px;
  }

  .about-text h3 {
    font-size: 26px;
  }

  .about-text p {
    font-size: 14px;
  }

  .factory-image {
    max-height: 300px;
  }

  .contact-info h3,
  .contact-form {
    font-size: 14px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 12px;
    font-size: 16px;
  }

  .contact-form button {
    padding: 14px;
    font-size: 14px;
    min-height: 44px;
  }

  .floating-buttons {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }

  .float-btn {
    width: 55px;
    height: 55px;
    min-height: 55px;
  }

  .icon-svg {
    width: 28px;
    height: 28px;
  }

  .whatsapp-svg {
    width: 28px;
    height: 28px;
  }

  .footer {
    padding: 30px 20px;
  }

  .footer p {
    font-size: 13px;
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .nav-menu {
    gap: 8px;
    flex-direction: column;
  }

  .nav-container {
    padding: 12px 15px;
    flex-wrap: wrap;
  }

  .logo-section {
    gap: 6px;
    width: 100%;
  }

  .logo-img {
    height: 40px;
  }

  .company-name {
    font-size: 11px;
  }

  .nav-link {
    font-size: 12px;
    padding: 5px 0;
  }

  .hero {
    padding: 50px 15px;
    min-height: 350px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 13px;
    min-height: 44px;
  }

  .section-title,
  .section-title-light {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .section-title::after,
  .section-title-light::after {
    width: 60px;
    height: 3px;
    bottom: -12px;
  }

  .services,
  .about,
  .contact {
    padding: 50px 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-card {
    padding: 20px 15px;
    border-radius: 8px;
    min-height: 280px;
  }

  .card-overlay {
    padding: 15px;
  }

  .service-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .service-card p {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .portfolio-btn {
    padding: 8px 16px;
    font-size: 11px;
    min-height: 40px;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-text h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .about-text p {
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  .factory-image {
    max-height: 250px;
    border-radius: 8px;
  }

  .contact-info h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .info-item {
    margin-bottom: 18px;
  }

  .info-item .label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .info-item a {
    font-size: 13px;
  }

  .contact-form {
    gap: 12px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    min-height: 44px;
  }

  .contact-form textarea {
    min-height: 100px;
    resize: vertical;
  }

  .contact-form button {
    padding: 14px;
    font-size: 13px;
    min-height: 44px;
    margin-top: 5px;
  }

  .floating-buttons {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    min-height: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  .float-btn:active {
    transform: scale(0.92);
  }

  .icon-svg,
  .whatsapp-svg {
    width: 24px;
    height: 24px;
  }

  .footer {
    padding: 25px 15px;
  }

  .footer p {
    font-size: 12px;
    margin: 5px 0;
  }

  /* Container adjustments for small screens */
  .container {
    padding: 0 15px;
  }

  /* Better touch targets */
  button,
  input,
  select,
  textarea,
  a {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .section-title,
  .section-title-light {
    font-size: 18px;
    margin-bottom: 25px;
  }

  .service-card {
    padding: 15px 12px;
    min-height: 260px;
  }

  .card-overlay {
    padding: 12px;
  }

  .service-card h3 {
    font-size: 14px;
  }

  /* Further optimize animations for very small screens */
  .service-card {
    animation-duration: 0.4s;
  }

  .service-card:hover .service-icon-image {
    animation: iconFloat 2.5s ease-in-out infinite;
  }
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .service-card {
    animation: none !important;
  }

  .service-card:hover .service-icon-image {
    animation: none !important;
    transform: scale(1.05);
  }
}
