/* Graphic Packaging International - Custom Styles */

:root {
  --primary-color: #0066B2;
  --primary-dark: #004A85;
  --secondary-color: #00A651;
  --secondary-dark: #008040;
  --accent-color: #FF6B35;
  --neutral-dark: #2C3E50;
  --neutral-medium: #7F8C8D;
  --neutral-light: #F8F9FA;
  --white: #FFFFFF;

  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --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 24px rgba(0,0,0,0.15);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Custom Bootstrap Overrides */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border: none;
  color: var(--white);
  padding: 12px 32px;
  font-weight: 600;
}

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

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

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

.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

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

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

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

/* AI Image Placeholder */
ai-img {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

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: 1.5rem;
  max-width: 90%;
  z-index: 2;
}

ai-img::after {
  content: '🎨';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  opacity: 0.4;
  z-index: 1;
}

ai-img[logo="true"] {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

ai-img[logo="true"]::before {
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

ai-img[logo="true"]::after {
  content: '📦';
  color: var(--white);
}

ai-img.rounded-circle {
  border-radius: 50% !important;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

ai-img.card-img-top {
  border-radius: 8px 8px 0 0;
  aspect-ratio: 4/3;
}

/* Promo Bar */
.promo-bar {
  background: linear-gradient(90deg, var(--accent-color) 0%, #FF8C61 100%);
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 3px solid rgba(255,255,255,0.2);
}

.promo-bar .btn {
  padding: 6px 20px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--white);
  transition: var(--transition);
}

.promo-bar .btn:hover {
  background-color: var(--white);
  color: var(--accent-color);
  transform: scale(1.05);
}

/* Top Bar */
.top-bar {
  background-color: var(--neutral-dark);
  font-size: 14px;
  border-bottom: 2px solid var(--primary-color);
}

.top-bar a {
  text-decoration: none;
  transition: var(--transition);
}

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

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

/* Navigation */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  border-bottom: 3px solid var(--primary-color);
}

.navbar-brand {
  padding: 0;
}

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

.navbar-nav .nav-link {
  color: var(--neutral-dark);
  font-weight: 600;
  font-size: 15px;
  padding: 0.75rem 1.25rem !important;
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
}

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

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

.navbar .btn-primary {
  padding: 10px 28px;
  font-size: 14px;
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,102,178,0.95) 0%, rgba(0,166,81,0.85) 100%);
  padding: 100px 0 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-carousel .carousel-item {
  height: 600px;
}

.carousel-caption {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  padding: 3rem;
  border-radius: 12px;
  bottom: 80px;
}

.carousel-caption h2 {
  color: var(--white);
  font-size: 3rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, var(--neutral-light) 0%, #E3F2FD 100%);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--neutral-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card Styles */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

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

.card-img-top {
  border-radius: 12px 12px 0 0;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: 1.75rem;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--neutral-medium);
  line-height: 1.6;
}

/* Product Card */
.product-card {
  position: relative;
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--primary-color);
}

.product-card .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--accent-color);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  z-index: 10;
}

.product-card .card-footer {
  background-color: var(--neutral-light);
  border-top: none;
  padding: 1.25rem 1.75rem;
}

/* Solution Card */
.solution-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--neutral-light) 100%);
  border-left: 4px solid var(--primary-color);
}

.solution-card:hover {
  border-left-color: var(--secondary-color);
}

.solution-card .card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  margin-bottom: 1.5rem;
}

/* Author Card */
.author-card {
  background: linear-gradient(135deg, var(--white) 0%, #E8F5E9 100%);
  border-left: 5px solid var(--secondary-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.author-card ai-img {
  width: 150px;
  height: 150px;
  border: 4px solid var(--secondary-color);
  box-shadow: var(--shadow-md);
}

.author-card h4 {
  color: var(--neutral-dark);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.author-card .badge {
  background-color: var(--primary-color);
  font-size: 13px;
  padding: 6px 14px;
  margin-right: 8px;
}

/* Certification Wall */
.certification-wall {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.certification-item {
  text-align: center;
  padding: 1.5rem;
  transition: var(--transition);
}

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

.certification-item ai-img {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #F1F8E9 0%, #DCEDC8 100%);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

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

.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  width: 45%;
}

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

.timeline-year {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.filter-btn {
  padding: 10px 24px;
  margin: 0.5rem;
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

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

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-section .btn-light {
  background-color: var(--white);
  color: var(--primary-color);
  font-weight: 700;
  padding: 14px 36px;
  box-shadow: var(--shadow-md);
}

.cta-section .btn-light:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
}

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

.form-control,
.form-select {
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  padding: 12px 16px;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0,102,178,0.1);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--neutral-dark) 0%, #1a252f 100%);
  color: var(--white);
}

footer h5 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 12px;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  padding: 0.3rem 0;
}

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

footer .text-white-50 {
  color: rgba(255,255,255,0.6) !important;
}

footer .border-top {
  border-color: rgba(255,255,255,0.1) !important;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
}

.floating-buttons .btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

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

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

.floating-buttons .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.floating-buttons .btn-secondary {
  background-color: var(--neutral-medium);
  opacity: 0;
  transition: var(--transition);
}

.floating-buttons .btn-secondary.visible {
  opacity: 1;
}

#backToTop {
  opacity: 0;
  pointer-events: none;
}

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

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.breadcrumb-item {
  font-weight: 600;
  font-size: 14px;
}

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

.breadcrumb-item.active {
  color: var(--neutral-medium);
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 100px 0 60px;
  margin-bottom: 3rem;
  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 width="80" height="80" xmlns="http://www.w3.org/2000/svg"><circle cx="40" cy="40" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.5;
}

.page-banner h1 {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.page-banner p {
  font-size: 1.3rem;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

/* Modal */
.modal-header {
  border-bottom: 3px solid var(--primary-color);
}

.modal-title {
  color: var(--white);
  font-weight: 700;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }

  .hero-content h1 {
    font-size: 2.5rem;
  }

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

  .stat-number {
    font-size: 2.5rem;
  }

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

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

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

  .carousel-caption h2 {
    font-size: 1.8rem;
  }

  .floating-buttons {
    right: 16px;
    bottom: 16px;
  }

  .floating-buttons .btn {
    width: 48px;
    height: 48px;
  }
}

/* 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 */
.section-padding {
  padding: 80px 0;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-primary-thick {
  border-left: 5px solid var(--primary-color);
}

.border-secondary-thick {
  border-left: 5px solid var(--secondary-color);
}
