/* Duck Pro Tape - Custom Styles */
/* Brand Colors: Yellow (#FFD700), Dark Blue (#1E3A8A), Red (#DC2626) */

:root {
  --duck-yellow: #FFD700;
  --duck-blue: #1E3A8A;
  --duck-red: #DC2626;
  --duck-dark: #1F2937;
  --duck-light: #F3F4F6;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--duck-dark);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

.text-warning {
  color: var(--duck-yellow) !important;
}

.bg-warning {
  background-color: var(--duck-yellow) !important;
}

.btn-warning {
  background-color: var(--duck-yellow);
  border-color: var(--duck-yellow);
  color: #000;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background-color: #E6C200;
  border-color: #E6C200;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* AI Image Placeholder Styles */
ai-img {
  display: block;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  width: 100%;
  aspect-ratio: var(--aspect-ratio, auto);
}

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  font-size: 14px;
  text-align: center;
  padding: 1rem;
  max-width: 80%;
  word-wrap: break-word;
}

ai-img::after {
  content: '📷';
  position: absolute;
  top: 15px;
  right: 15px;
  opacity: 0.3;
  font-size: 24px;
}

ai-img.rounded-circle {
  border-radius: 50%;
}

ai-img.card-img-top {
  border-radius: 8px 8px 0 0;
}

/* Promo Bar */
.promo-bar {
  font-size: 14px;
}

.promo-bar .btn {
  padding: 4px 16px;
}

/* Navigation */
.navbar {
  border-bottom: 3px solid var(--duck-yellow);
}

.navbar-brand ai-img {
  height: 50px;
  width: auto;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--duck-yellow) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--duck-yellow);
}

/* Hero Section */
.hero-section {
  position: relative;
}

.hero-section .carousel-item {
  height: 700px;
}

.hero-section ai-img {
  height: 700px;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-section .carousel-caption {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: left;
  padding-bottom: 0;
}

.hero-section .carousel-caption h1 {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero-section .carousel-caption p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--duck-dark) 0%, var(--duck-blue) 100%);
}

.stat-item h2 {
  letter-spacing: -2px;
}

/* Product Cards */
.product-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
  border-color: var(--duck-yellow);
}

.product-card ai-img {
  height: 300px;
}

.product-card .badge {
  font-size: 11px;
  padding: 6px 12px;
}

/* Horizontal Product Cards */
.product-card-horizontal {
  transition: all 0.3s ease;
  overflow: hidden;
  min-height: 280px;
}

.product-card-horizontal img {
    max-width: 100%; 
}

.product-card-horizontal:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
}

.product-card-horizontal ai-img {
  min-height: 280px;
  display: block;
}

.product-card-horizontal .badge {
  font-size: 12px;
  padding: 6px 14px;
  font-weight: 600;
}

.product-card-horizontal .card-title {
  color: var(--duck-dark);
  font-size: 1.5rem;
}

.product-card-horizontal .btn-warning {
  padding: 10px 24px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .product-card-horizontal ai-img {
    min-height: 200px;
  }
}

/* Solution Cards */
.solution-card {
  transition: all 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}

.solution-card ai-img {
  height: 300px;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.solution-card:hover ai-img {
  filter: grayscale(0%);
}

/* Company Strength Section */
.icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certification-logos ai-img {
  height: 80px;
  object-fit: contain;
}

/* Testimonials */
.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.testimonial-card .lead {
  font-style: italic;
  font-size: 1.1rem;
}

/* Inquiry Form Section */
.inquiry-form-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.inquiry-form-section .form-control,
.inquiry-form-section .form-select {
  border: 2px solid #dee2e6;
  transition: border-color 0.3s ease;
}

.inquiry-form-section .form-control:focus,
.inquiry-form-section .form-select:focus {
  border-color: var(--duck-yellow);
  box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--duck-dark) 0%, #111827 100%);
}

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

/* Floating Buttons */
.floating-buttons .btn {
  transition: all 0.3s ease;
}

.floating-buttons .btn:hover {
  transform: scale(1.1);
}

#backToTop {
  transition: opacity 0.3s ease;
}

#backToTop.visible {
  opacity: 1 !important;
}

/* Modal */
.modal-header.bg-warning {
  background-color: var(--duck-yellow) !important;
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 1rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #6c757d;
}

.breadcrumb-item a {
  color: var(--duck-dark);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--duck-yellow);
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--duck-blue) 0%, var(--duck-dark) 100%);
  padding: 80px 0 60px;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 L1200,0 L1200,80 Q900,120 600,80 T0,80 Z" fill="rgba(255,215,0,0.1)"/></svg>');
  background-size: cover;
  opacity: 0.3;
}

.page-banner h1 {
  position: relative;
  z-index: 1;
}

/* Filter Section */
.filter-section {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
}

.filter-section .form-select,
.filter-section .form-control {
  border: 2px solid #dee2e6;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--duck-yellow);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--duck-yellow);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--duck-yellow);
  transform: translateX(-50%);
  z-index: 1;
}

/* Author Card */
.author-card {
  border-left: 5px solid var(--duck-yellow);
  transition: all 0.3s ease;
}

.author-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
  transform: translateX(5px);
}

.author-card ai-img {
  width: 150px;
  height: 150px;
}

.author-card .badge {
  font-size: 12px;
  padding: 6px 12px;
}

/* Blog Card */
.blog-card {
  transition: all 0.3s ease;
  border: none;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}

.blog-card ai-img {
  height: 250px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section .carousel-item,
  .hero-section ai-img {
    height: 500px;
  }

  .hero-section .carousel-caption h1 {
    font-size: 2rem;
  }

  .display-3 {
    font-size: 2.5rem;
  }

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item::before {
    left: 20px;
  }
}

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

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

/* Utility Classes */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hover-scale {
  transition: transform 0.3s ease;
}

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