/* ===== BIODEGRADABLE PHONE CASES - MAIN STYLES ===== */
/* Note: Bootstrap 5, Font Awesome, and Google Fonts should be self-hosted for production */

/* ===== COLOR PALETTE ===== */
:root {
  /* Primary Colors */
  --color-eco-green: #2D5016;
  --color-sage-green: #9CAF88;
  --color-earth-brown: #8B4513;
  --color-sky-blue: #87CEEB;
  --color-natural-beige: #F5F5DC;
  
  /* Light Shades */
  --color-eco-green-light: #4A7729;
  --color-sage-green-light: #B8C4A8;
  --color-earth-brown-light: #A0522D;
  --color-sky-blue-light: #B0E0E6;
  --color-natural-beige-light: #FAFAFA;
  
  /* Dark Shades */
  --color-eco-green-dark: #1A2F0C;
  --color-sage-green-dark: #7A8A6B;
  --color-earth-brown-dark: #654321;
  --color-sky-blue-dark: #4682B4;
  --color-natural-beige-dark: #E6E6D4;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-eco-green) 0%, var(--color-sage-green) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--color-earth-brown) 0%, var(--color-natural-beige) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-sky-blue) 0%, var(--color-sage-green-light) 100%);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-eco-green-dark);
  background-color: var(--color-natural-beige-light);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Accessibility - Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--color-eco-green);
  margin-bottom: 1rem;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-eco-green-dark);
}

/* ===== HEADER & NAVIGATION ===== */
.navbar {
  background: var(--gradient-primary) !important;
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(45, 80, 22, 0.1);
}

.navbar-brand {
  font-size: 1.2rem !important;
  font-weight: 700;
  color: var(--color-natural-beige) !important;
}

.navbar-nav .nav-link {
  color: var(--color-natural-beige-light) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--color-natural-beige) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-accent);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.webp') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-image {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.2);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--color-natural-beige);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  background: white;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.15);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-eco-green);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--color-eco-green-dark);
  margin-bottom: 1rem;
}

/* ===== SERVICES ===== */
.service-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.15);
}

.service-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-earth-brown);
  margin: 1rem 0;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-natural-beige);
}

.service-features li:last-child {
  border-bottom: none;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
  margin: 1rem;
  text-align: center;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--color-eco-green-dark);
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-eco-green);
}

/* ===== TEAM ===== */
.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 4px solid var(--color-sage-green-light);
  transition: all 0.3s ease;
}

.team-photo:hover {
  transform: scale(1.05);
  border-color: var(--color-eco-green);
}

/* ===== FAQ ===== */
.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(45, 80, 22, 0.1);
  overflow: hidden;
}

.faq-question {
  background: var(--color-sage-green-light);
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--color-eco-green-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--color-sage-green);
}

.faq-answer {
  padding: 1rem 1.5rem;
  color: var(--color-eco-green-dark);
  line-height: 1.7;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  max-width: 100%;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
}

.form-control {
  border: 2px solid var(--color-natural-beige);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-eco-green);
  box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(45, 80, 22, 0.2);
}

/* ===== FOOTER ===== */
.footer {
  background-color: #B0E0E6;
  color: var(--color-natural-beige-light);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--color-sage-green-light);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--color-natural-beige-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--color-sage-green-light);
}

.footer-bottom {
  border-top: 1px solid var(--color-eco-green);
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
}

/* ===== UTILITIES ===== */
.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-secondary { background: var(--gradient-secondary) !important; }
.bg-gradient-accent { background: var(--gradient-accent) !important; }
.text-eco-green { color: var(--color-eco-green) !important; }

/* ===== RESPONSIVE FIXES ===== */
.container, .container-fluid {
  max-width: 100% !important;
  overflow-x: hidden;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12,
.col-xxl-1, .col-xxl-2, .col-xxl-3, .col-xxl-4, .col-xxl-5, .col-xxl-6, .col-xxl-7, .col-xxl-8, .col-xxl-9, .col-xxl-10, .col-xxl-11, .col-xxl-12,
[class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
}

.breadcrumb-item img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

/* ===== PRICE PLANS ===== */
.price-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.15);
}

.price-card.featured {
  border: 3px solid var(--color-eco-green);
  transform: scale(1.05);
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-earth-brown);
  margin: 1rem 0;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.price-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-natural-beige-light);
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li i {
  color: var(--color-eco-green);
  margin-right: 0.5rem;
}

/* ===== CASE STUDIES ===== */
.case-study-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-eco-green);
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.15);
}

/* ===== PROCESS STEPS ===== */
.process-step {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  position: relative;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.15);
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* ===== TIMELINE ===== */
.timeline-item {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
  margin-bottom: 2rem;
  position: relative;
  border-left: 4px solid var(--color-sage-green);
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -8px;
  top: 2rem;
  width: 12px;
  height: 12px;
  background: var(--color-eco-green);
  border-radius: 50%;
}

/* ===== CAREER ===== */
.career-item {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.career-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.15);
}

.career-role {
  background: var(--gradient-accent);
  color: var(--color-eco-green-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
}

/* ===== CORE INFO ===== */
.coreinfo-item {
  background: var(--gradient-secondary);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  color: var(--color-eco-green-dark);
}

.coreinfo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.15);
}

.coreinfo-item h5 {
  color: var(--color-eco-green-dark);
  font-weight: 700;
}

/* ===== BLOG ===== */
.blog-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(45, 80, 22, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 2rem;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(45, 80, 22, 0.15);
}

.blog-meta {
  color: var(--color-sage-green-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-link {
  color: var(--color-eco-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-link:hover {
  color: var(--color-earth-brown);
}

/* ===== NAVBAR TOGGLER ICON ===== */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== SCROLL TO TOP ===== */
#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
  transition: all 0.3s ease;
}

#scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

/* ===== REMOVED CUSTOM GRID CLASSES - USING STANDARD BOOTSTRAP CLASSES ===== */
/* Previously used .col-lg-2-4 has been replaced with .col-lg-2 for better Bootstrap compatibility */

/* ===== RESPONSIVE IMAGES ===== */
.hero-image img { width: 100%; max-width: 100%; height: auto; object-fit: cover; }
.service-image img { width: 100%; max-width: 100%; height: auto; object-fit: cover; }
.gallery-image img { width: 100%; max-width: 100%; height: auto; object-fit: cover; }
.team-image img { width: 100%; max-width: 100%; height: auto; object-fit: cover; }
.feature-image img { width: 100%; max-width: 100%; height: auto; object-fit: cover; }

/* ===== SAFE SIZING FOR ALL ELEMENTS ===== */
.container-fluid,
.container {
  width: 100%;
  max-width: 100% !important;
  overflow-x: hidden;
}

img {
  max-width: 100% !important;
  height: auto !important;
}

table {
  width: 100% !important;
  table-layout: fixed !important;
}

.form-control,
.btn,
.card,
.alert {
  max-width: 100% !important;
}

.btn {
  word-wrap: break-word;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

p, span, div, h1, h2, h3, h4, h5, h6 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== ADDITIONAL OVERFLOW PREVENTION ===== */
section, .section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.card, .service-card, .testimonial-card, .price-card, .case-study-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.navbar {
  width: 100%;
  max-width: 100vw;
}
