/* GotPrint Custom Styles - Modern E-commerce Design */

:root {
  /* Brand Colors - Vibrant & Energetic */
  --primary-color: #FF6B35;        /* Vibrant Orange */
  --primary-hover: #E85A2A;
  --secondary-color: #004E89;       /* Deep Blue */
  --secondary-hover: #003D6E;
  --accent-color: #F7B32B;          /* Golden Yellow */
  --neutral-dark: #2D3142;          /* Charcoal */
  --neutral-light: #F8F9FA;         /* Off White */
  --success-color: #06D6A0;         /* Mint Green */
  --warning-color: #F7B32B;         /* Amber */
  --danger-color: #EF476F;          /* Hot Pink */

  /* Typography */
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --card-radius: 12px;
  --btn-radius: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-hover: 0 12px 40px rgba(255, 107, 53, 0.25);
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

body {
  font-family: var(--body-font);
  color: var(--neutral-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
  color: var(--neutral-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }

/* Bootstrap Overrides */
.btn-primary {
  background: var(--primary-color);
  border: none;
  border-radius: var(--btn-radius);
  padding: 12px 32px;
  font-weight: 600;
  font-family: var(--heading-font);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background: var(--secondary-color);
  border: none;
  border-radius: var(--btn-radius);
  padding: 12px 32px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: var(--btn-radius);
  padding: 10px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* Promo Bar - Sticky with urgent design */
.promo-bar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--danger-color) 100%);
  position: sticky;
  top: 0;
  z-index: 1030;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.promo-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  font-size: 0.95rem;
}

.promo-bar .btn {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 6px 20px;
  font-weight: 700;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.promo-bar .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Top Bar */
.top-bar {
  background: var(--neutral-dark);
  font-size: 0.875rem;
}

.top-bar a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--accent-color) !important;
}

.top-bar i {
  color: var(--accent-color);
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  background: white !important;
  box-shadow: var(--shadow-sm);
}

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

.nav-link {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--neutral-dark) !important;
  padding: 8px 18px !important;
  transition: all 0.3s ease;
  position: relative;
}

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

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

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

/* AI Image Placeholder */
ai-img {
  display: block;
  background: linear-gradient(135deg, #FFE5DC 0%, #FFD0BF 100%);
  position: relative;
  overflow: hidden;
}

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  max-width: 90%;
  font-family: var(--heading-font);
}

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

ai-img.rounded-circle {
  border-radius: 50%;
  border: 4px solid var(--primary-color);
}

ai-img.card-img-top {
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  height: 250px;
}

ai-img[logo="true"] {
  background: transparent;
  border: none;
}

ai-img[logo="true"]::before {
  content: 'GotPrint';
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -1px;
}

ai-img[logo="true"]::after {
  content: '🖨️';
  font-size: 20px;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
}

/* Cards */
.card {
  border: none;
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-sm);

}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--neutral-dark);
}

.card-body {
  padding: 1.5rem;
}

.card .btn {
  margin-top: auto;
}

/* Product Card Special Styling */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: 'SALE';
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--danger-color);
  color: white;
  padding: 5px 40px;
  font-weight: 700;
  font-size: 0.75rem;
  transform: rotate(45deg);
  z-index: 11;
  box-shadow: var(--shadow-md);
}

.product-card .badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--success-color);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  z-index: 10;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: var(--primary-color);
  font-weight: 700;
}

.breadcrumb-item a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.breadcrumb-item.active {
  color: var(--neutral-dark);
  font-weight: 600;
}

/* Hero Carousel */
.carousel-item {
  height: 600px;
  position: relative;
}

.carousel-item ai-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(255, 107, 53, 0.92);
  padding: 2rem 3rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  left: 10%;
  right: 10%;
  bottom: 15%;
  box-shadow: var(--shadow-lg);
}

.carousel-caption h1 {
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.carousel-caption p {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--heading-font);
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.author-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
}

.author-card .badge {
  background: var(--primary-color);
  padding: 6px 14px;
  border-radius: 20px;
}

.author-card .badge.bg-secondary {
  background: var(--secondary-color) !important;
}

/* Forms */
.form-label {
  font-weight: 600;
  color: var(--neutral-dark);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #E0E0E0;
  border-radius: var(--btn-radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
}

.form-control.is-invalid {
  border-color: var(--danger-color);
}

.was-validated .form-control:invalid {
  border-color: var(--danger-color);
}

.was-validated .form-control:valid {
  border-color: var(--success-color);
}

/* Footer */
footer {
  background: var(--neutral-dark);
  color: white;
}

footer h5 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 0.5rem;
}

footer a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

footer .list-unstyled li {
  margin-bottom: 0.5rem;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-buttons .btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: none;
}

.floating-buttons .btn:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-hover);
}

.floating-buttons .btn-success {
  background: #25D366;
}

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

.floating-buttons .btn-secondary {
  background: var(--secondary-color);
}

#backToTop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}

/* Modal */
.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--danger-color) 100%);
  border: none;
  border-radius: 12px 12px 0 0;
}

.modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.modal-title {
  font-family: var(--heading-font);
  font-weight: 700;
}

/* Filter Section */
.filter-section {
  background: var(--neutral-light);
  padding: 2rem;
  border-radius: var(--card-radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.filter-section .form-select {
  max-width: 250px;
}

/* Timeline (for About page) */
.timeline {
  position: relative;
  padding: 2rem 0;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 4px solid white;
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
  z-index: 10;
}

.timeline-content {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  width: 45%;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.page-banner h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.page-banner p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Testimonial Carousel */
.testimonial-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
  position: relative;
  margin: 20px;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 100px;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--neutral-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-author ai-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
}

.author-info h6 {
  margin: 0;
  font-weight: 700;
  color: var(--neutral-dark);
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

/* Pricing Table (if needed) */
.pricing-card {
  background: white;
  border: 2px solid #E0E0E0;
  border-radius: var(--card-radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--primary-color);
  border-width: 3px;
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--heading-font);
}

/* Certifications Logo Wall */
.cert-logo {
  height: 80px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.cert-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.6rem; }

  .carousel-item { height: 400px; }
  .carousel-caption { padding: 1.5rem; }

  .timeline::before { left: 20px; }
  .timeline-item::before { left: 20px; }
  .timeline-content { width: calc(100% - 60px); margin-left: 60px !important; }

  .page-banner h1 { font-size: 2.5rem; }
  .page-banner p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
  .stat-number { font-size: 2.5rem; }
  .floating-buttons { right: 15px; bottom: 15px; }
  .floating-buttons .btn { width: 48px; height: 48px; }
}

/* Print Styles */
@media print {
  .promo-bar, .top-bar, .navbar, .floating-buttons, footer { display: none; }
}

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 2s ease-in-out infinite;
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background: var(--primary-color) !important; }
.bg-secondary { background: var(--secondary-color) !important; }
.bg-accent { background: var(--accent-color) !important; }
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--danger-color) 100%) !important;
}
.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important;
}
