/* =========================
   Graham Packaging Custom Styles
   Color Scheme: Deep Blue + Vibrant Orange
   ========================= */

:root {
  --primary-blue: #0A2463;
  --primary-blue-light: #1E3A8A;
  --vibrant-orange: #FF6B35;
  --orange-hover: #E85A2B;
  --dark-navy: #001233;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --white: #FFFFFF;
  --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);
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #212529;
  overflow-x: hidden;
}

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

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

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

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

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

.bg-gradient-light {
  background: linear-gradient(135deg, #F0F4F8 0%, #E6EEF5 100%);
}

.bg-light-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
}

/* Buttons */
.btn-orange {
  background-color: var(--vibrant-orange);
  color: var(--white);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-orange:hover {
  background-color: var(--orange-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary-dark {
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
}

.btn-primary-dark:hover {
  background-color: var(--primary-blue-light);
  color: var(--white);
}

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

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

/* Navigation */
.navbar {
  transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--primary-blue);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--vibrant-orange);
}

.navbar-light .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--vibrant-orange);
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #F8FAFC 0%, #E6EEF5 100%);
}

.hero-bg-diagonal {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 36, 99, 0.03) 0%, rgba(30, 58, 138, 0.05) 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

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

.min-vh-75 {
  min-height: 75vh;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--primary-blue);
  border: 2px solid rgba(255, 107, 53, 0.1);
}

.hero-image-stack {
  position: relative;
}

.hero-image-stack::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(10, 36, 99, 0.2));
  border-radius: 1rem;
  z-index: -1;
}

/* Stats Section */
.stat-card {
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

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

/* Product Cards */
.product-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 53, 0.3);
}

.product-card-overlay {
  position: relative;
  overflow: hidden;
}

.product-card-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 36, 99, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card-overlay::after {
  opacity: 1;
}

/* Solution Cards */
.solution-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid #E9ECEF;
  transition: all 0.3s ease;
}

.solution-card:hover {
  border-color: var(--vibrant-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.solution-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(10, 36, 99, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Why Choose Us */
.why-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: 0.75rem;
  border-left: 4px solid var(--vibrant-orange);
  transition: all 0.3s ease;
}

.why-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(10px);
}

/* Certifications */
.cert-logo {
  transition: all 0.3s ease;
  opacity: 0.7;
  filter: grayscale(100%);
}

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

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid #E9ECEF;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  color: rgba(255, 107, 53, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  border-color: var(--vibrant-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

/* Forms */
.form-container {
  box-shadow: var(--shadow-lg);
}

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

.form-control-lg {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

/* Floating Buttons */
.floating-btn {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

#backToTop {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

/* AI Image Placeholder */
ai-img {
  display: block;
  background: linear-gradient(135deg, #E9ECEF 0%, #DEE2E6 100%);
  position: relative;
  width: 100%;
  aspect-ratio: attr(size);
}

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

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

ai-img.rounded-circle {
  border-radius: 50%;
  aspect-ratio: 1/1;
}

ai-img.rounded-4 {
  border-radius: 1rem;
}

ai-img.card-img-top {
  border-radius: 1rem 1rem 0 0;
}

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

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--vibrant-orange);
}

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

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

/* Modal */
.modal-content {
  border-radius: 1rem;
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 100px 100px;
  opacity: 0.3;
}

/* Filter Section */
.filter-section {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid #E9ECEF;
}

.filter-btn {
  border: 2px solid #E9ECEF;
  background: var(--white);
  color: var(--primary-blue);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--vibrant-orange);
  color: var(--white);
  border-color: var(--vibrant-orange);
}

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

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

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

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--vibrant-orange);
  border: 4px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

/* Author Card */
.author-card {
  background: var(--white);
  border-left: 4px solid var(--vibrant-orange);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

/* Blog Card */
.blog-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid #E9ECEF;
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  border-color: var(--vibrant-orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.blog-meta {
  font-size: 0.875rem;
  color: var(--medium-gray);
}

.blog-meta i {
  color: var(--vibrant-orange);
}

/* Map Container */
.map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #E9ECEF;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contact Info Cards */
.contact-info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid #E9ECEF;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.contact-info-card:hover {
  border-color: var(--vibrant-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.contact-info-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(10, 36, 99, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* Error Pages */
.error-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-size: 120px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-blue), var(--vibrant-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-bg-diagonal {
    display: none;
  }

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

  .timeline-dot {
    left: 30px;
  }
}

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

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

  .error-code {
    font-size: 80px;
  }
}

/* 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 */
.shadow-orange {
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.border-orange {
  border-color: var(--vibrant-orange) !important;
}

.bg-light-blue {
  background-color: #F0F4F8;
}
