/* Custom CSS for LaundrySpace */

/* Root Variables */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --dark-color: #0f172a;
  --light-color: #f8fafc;
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-4 {
  font-weight: 700;
  font-size: 3rem;
}

.display-5 {
  font-weight: 700;
  font-size: 2.5rem;
}

.display-6 {
  font-weight: 600;
  font-size: 2rem;
}

/* Navigation */
.navbar {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: var(--dark-color) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white) !important;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--primary-color);
  transition: all 0.3s ease;
}

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

.language-switch .btn {
  border-radius: 25px;
  transition: all 0.3s ease;
}

.language-switch .btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.6) 100%), url('img/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before { display: none; }

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.hero-section .lead {
  color: var(--gray-300);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Constrain hero text width for readability */
.hero-content { max-width: 760px; }

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.hero-image img:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 500;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

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

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--dark-color);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

/* Process Cards */
.process-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  background: var(--dark-color);
  color: var(--white);
}

.process-card:hover h5,
.process-card:hover p,
.process-card:hover i {
  color: var(--white) !important;
}

.process-card:hover .process-icon {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

/* Feature Cards */
.feature-card {
  padding: 2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--dark-color);
  color: var(--white);
}

.feature-icon {
  margin-bottom: 1rem;
}

.feature-card:hover .feature-icon i {
  color: var(--white) !important;
}

/* Partner Cards */
.partner-card .card {
  border-radius: 20px;
  transition: all 0.3s ease;
}

.partner-card .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
  background: var(--dark-color);
  color: var(--white);
}

.partner-card .card:hover h4,
.partner-card .card:hover p,
.partner-card .card:hover li,
.partner-card .card:hover span {
  color: var(--white) !important;
}
.partner-card .card:hover i {
  color: var(--white) !important;
}

/* Franchise Section */
.franchise-section {
  background: var(--dark-color);
  border-radius: 20px;
  margin: 2rem 0;
}

.franchise-item {
  padding: 1rem;
  transition: all 0.3s ease;
}

.franchise-item:hover {
  transform: translateY(-5px);
}

/* Contact Cards */
.contact-card {
  background: var(--white);
  border-radius: 15px;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background: var(--dark-color);
  color: var(--white);
}

.contact-card:hover h5,
.contact-card:hover p,
.contact-card:hover i {
  color: var(--white) !important;
}

.contact-form .form-control {
  border-radius: 10px;
  border: 2px solid var(--gray-300);
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Footer */
footer {
  background: var(--black);
}

.social-links a {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--primary-color) !important;
}

/* Stats */
.stat-item {
  text-align: center;
  padding: 1.25rem;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: var(--dark-color);
  color: var(--white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.stat-item:hover h3,
.stat-item:hover p {
  color: var(--white) !important;
}

/* Custom Grid for 5 columns */
.col-lg-2-4 {
  flex: 0 0 auto;
  width: 20%;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .col-lg-2-4 {
    width: 50%;
  }
}
@media (min-width: 800px) {
  .banner {
    margin-top: 4rem;
  }
}

@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem;
  }
  .hero-image img {
    margin-top: 0;
  }

  .display-5 {
    font-size: 2rem;
  }

  .hero-section {
    padding: 90px 0 50px;
    text-align: center;
    min-height: auto;
  }
  .hero-content { max-width: 100%; }

  .col-lg-2-4 {
    width: 100%;
  }

  .btn {
    display: block;
    width: 100%;
    margin-bottom: 12px;
  }

  /* Pastikan CTA di hero full width dan tersusun vertikal */
  .hero-section .d-flex {
    flex-direction: column;
    gap: 12px;
  }
  .hero-section .d-flex .btn {
    width: 100% !important;
    margin-bottom: 0;
  }

  .navbar-brand {
    font-size: 1.4rem;
  }
  .navbar {
    padding: 0.7rem 0;
  }

  .feature-card,
  .process-card,
  .contact-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
  }

  .about-stats .stat-item h3 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 1.8rem;
  }
  .display-5 {
    font-size: 1.6rem;
  }
  .hero-section .lead {
    font-size: 0.95rem;
  }

  .process-card,
  .partner-card .card {
    padding: 1.4rem;
  }

  .hero-image .image-placeholder {
    min-height: 260px;
    padding: 2.5rem 1.5rem;
  }

  .contact-form .btn {
    width: 100%;
  }

  footer .col-lg-2,
  footer .col-lg-4 {
    margin-bottom: 1.5rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Language Switch Animation */
#langSwitch {
  transition: all 0.3s ease;
}

#langSwitch:hover {
  transform: scale(1.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Dark mode adjustments */
.bg-dark {
  background: var(--dark-color) !important;
}

.bg-light {
  background: var(--gray-100) !important;
}

.text-white {
  color: var(--white) !important;
}

.text-dark {
  color: var(--dark-color) !important;
}

/* Alert customization */
.alert-info {
  background: var(--primary-color);
  border: none;
  color: var(--white);
  border-radius: 10px;
}

/* Card shadows */
.shadow {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Form styling */
.form-control::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

/* Corporate contact section */
.corporate-contact {
  border-left: 4px solid var(--primary-color);
}

/* Hover effects for images */
img {
  transition: all 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

/* Button group spacing */
.btn-group .btn {
  margin-right: 10px;
  margin-bottom: 10px;
}

.btn-group .btn:last-child {
  margin-right: 0;
}

/* Section spacing */
section {
  position: relative;
}

.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* Custom container padding */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

/* Animation delays for staggered effects */
[data-aos-delay="100"] {
  transition-delay: 0.1s;
}
[data-aos-delay="200"] {
  transition-delay: 0.2s;
}
[data-aos-delay="300"] {
  transition-delay: 0.3s;
}
[data-aos-delay="400"] {
  transition-delay: 0.4s;
}
[data-aos-delay="500"] {
  transition-delay: 0.5s;
}
[data-aos-delay="600"] {
  transition-delay: 0.6s;
}

/* Image Placeholder */
.image-placeholder {
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px dashed var(--gray-400);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.image-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.image-placeholder i {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.image-placeholder:hover i {
  opacity: 1;
  transform: scale(1.1);
}

.image-placeholder h5 {
  margin-top: 1rem;
  font-weight: 600;
}

/* Hero section image placeholder */
.hero-image .image-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  color: white;
  min-height: 400px;
}

.hero-image .image-placeholder:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
  z-index: 1050;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: waFloat 3s ease-in-out infinite;
}

.whatsapp-float i { font-size: 28px; }

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.5);
  filter: brightness(1.05);
}

@keyframes waFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@media (max-width: 576px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
}
