/* ==========================================================================
   Tshirtprint2u Custom Styles - Mobile First with Malaysian Avant-garde Design
   ========================================================================== */

/* CSS Variables */

:root {
  --primary: #0033a0;
  --secondary: #ff6b00;
  --accent: #f4c300;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #28a745;
  --malaysia-red: #cc0001;
  --malaysia-blue: #010066;
  --malaysia-yellow: #ffcc00;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Base Styles */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Typography Scale */

.display-1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.display-2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.display-3 {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
}

.display-4 {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
}

.display-5 {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
}

.display-6 {
  font-size: clamp(1.1rem, 2.5vw, 2rem);
}

/* Header & Navigation */

.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  padding: 0.5rem 0;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.brand-subtext {
  font-size: 0.75rem;
  color: var(--secondary);
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark);
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

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

.btn-cta {
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Offcanvas */

.offcanvas {
  max-width: 320px;
}

.offcanvas-body ul li {
  margin-bottom: 0.5rem;
}

.offcanvas-body ul li a {
  color: var(--dark);
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  transition: var(--transition);
}

.offcanvas-body ul li a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

/* Hero Section */

.hero-section {
  padding-top: 100px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.hero-image img:hover {
  transform: scale(1.02);
}

/* Trust Bar */

.trust-bar {
  overflow: hidden;
  position: relative;
}

.trust-logos-container {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

.trust-logos-track {
  display: flex;
  gap: 60px;
  animation: scroll-logos 40s linear infinite;
  min-width: max-content;
}

.trust-logo {
  flex: 0 0 auto;
  width: 150px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: var(--transition);
}

.trust-logo:hover {
  opacity: 1;
}

.trust-logo img {
  max-width: 100%;
  max-height: 100%;
  filter: grayscale(100%);
  transition: var(--transition);
}

.trust-logo:hover img {
  filter: grayscale(0%);
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-150px * 8 - 60px * 8));
  }
}

/* Services Section */

.service-card {
  transition: var(--transition);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg) !important;
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.specs .badge {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Products Section */

.product-filters .btn {
  padding: 0.5rem 1.5rem;
  border-width: 2px;
  font-weight: 500;
}

.product-filters .btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    overflow-x: auto;
    display: flex;
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .product-card {
    min-width: 280px;
    margin-right: 20px;
  }
}

.product-card {
  border: none;
  transition: var(--transition);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
}

.product-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.badge.bestseller {
  background-color: var(--secondary);
  color: white;
}

.badge.new {
  background-color: var(--success);
  color: white;
}

.badge.hot {
  background-color: var(--malaysia-red);
  color: white;
}

.quick-view-btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .quick-view-btn {
  opacity: 1;
  bottom: 20px;
}

/* Comparison Tables */

.table th {
  font-weight: 600;
  color: var(--primary);
  background-color: rgba(0, 51, 160, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 51, 160, 0.02);
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 51, 160, 0.05);
}

/* About Section */

.about-section {
  position: relative;
}

.success-story {
  border-left: 4px solid var(--primary);
}

/* Difference Section */

.difference-card {
  transition: var(--transition);
}

.difference-card:hover {
  background-color: rgba(0, 51, 160, 0.05);
  transform: translateY(-5px);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 51, 160, 0.1);
}

/* Stats Section */

.stat-card h3 {
  transition: all 1s ease-out;
}

/* Process Section */

.process-step {
  position: relative;
  transition: var(--transition);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md) !important;
}

.step-number {
  position: absolute;
  top: 15px;
  left: 15px;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(0, 51, 160, 0.1);
  line-height: 1;
}

.step-icon {
  position: relative;
  z-index: 1;
}

/* Testimonials */

.testimonial-card {
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.rating {
  font-size: 1.25rem;
  letter-spacing: 2px;
}

blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  position: relative;
  padding-left: 2rem;
}

blockquote:before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  left: 0;
  top: -1rem;
  font-family: Georgia, serif;
}

.carousel-control-prev, .carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.carousel-control-prev {
  left: -25px;
}

.carousel-control-next {
  right: -25px;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
  opacity: 1;
}

/* CTA Section */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #002080 100%);
  position: relative;
  overflow: hidden;
}

.cta-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/images/pattern.png');
  background-size: 300px;
  opacity: 0.1;
  pointer-events: none;
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
  font-weight: 600;
}

.btn-accent:hover {
  background-color: #e0b000;
  border-color: #e0b000;
  transform: translateY(-2px);
}

/* FAQ Section */

.accordion-button {
  font-weight: 600;
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(0, 51, 160, 0.05);
  color: var(--primary);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 51, 160, 0.25);
}

.accordion-body {
  padding: 1.5rem;
  background-color: rgba(0, 51, 160, 0.02);
}

/* Footer */

.footer {
  position: relative;
}

.footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--malaysia-red) 0%, var(--malaysia-red) 33.33%, var(--malaysia-blue) 33.33%, var(--malaysia-blue) 66.66%, var(--malaysia-yellow) 66.66%, var(--malaysia-yellow) 100%);
}

.footer a:hover {
  color: white !important;
  text-decoration: underline !important;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

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

/* WhatsApp Float */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  color: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Back to Top */

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Reveal Animations */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Search Box */

.search-box {
  position: relative;
}

.search-box input {
  padding-right: 40px;
  border-radius: 50px;
  border: 2px solid #dee2e6;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 51, 160, 0.25);
}

.search-box button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  padding: 5px 10px;
}

/* Responsive Adjustments */

@media (max-width: 992px) {
  .navbar-nav {
    padding-top: 1rem;
  }
}

@media (max-width: 992px) {
  .nav-item {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 992px) {
  .hero-section {
    text-align: center;
    padding-top: 80px;
    min-height: auto;
  }
}

@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2rem;
  }
}

@media (max-width: 992px) {
  .trust-logo {
    width: 120px;
  }
}

@media (max-width: 992px) {
  .carousel-control-prev {
    left: 10px;
  }
}

@media (max-width: 992px) {
  .carousel-control-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .display-4 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .trust-logo {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 60px;
  }
}

@media (max-width: 576px) {
  .cta-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .cta-buttons .btn:last-child {
    margin-bottom: 0;
  }
}

/* Print Styles */

/* Loading States */

.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Form Validation Styles */

.is-valid {
  border-color: var(--success) !important;
}

.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.is-invalid ~ .invalid-feedback {
  display: block;
}

