/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #28a745;
  --secondary-color: #ffc107;
  --dark-color: #212529;
  --light-color: #f8f9fa;
  --text-color: #333;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* ===== GENERAL STYLES ===== */
html {
  font-size: 14px;
  scroll-behavior: smooth;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

main {
  flex: 1;
}

.footer {
  margin-top: auto;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: var(--border-radius);
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #218838;
  border-color: #1e7e34;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* ===== NAVIGATION ===== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.navbar-brand .logo-icon {
  max-height: 50px;
  width: auto;
  height: auto;
}

.navbar-brand .logo-text {
  max-height: 45px;
  width: auto;
  height: auto;
}

.navbar-brand .logo-text {
  display: inline-flex;
  align-items: center;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  transition: var(--transition);
  color: var(--text-color);
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

.navbar-nav .nav-link.btn {
  color: white;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  margin: 0;
  padding: 0;
}

.hero-slider .carousel-item {
  height: 600px;
  position: relative;
}

.hero-slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider .carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: left;
  padding: 0;
}

.hero-slider .carousel-caption h1 {
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-slider .carousel-caption p {
  color: white;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
  font-size: 1.25rem;
}

.hero-slider .carousel-indicators {
  bottom: 30px;
}

.hero-slider .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 5%;
  opacity: 0.7;
}

.hero-slider .carousel-control-prev:hover,
.hero-slider .carousel-control-next:hover {
  opacity: 1;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 1s;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-slider .carousel-item {
    height: 400px;
  }
  
  .hero-slider .carousel-caption h1 {
    font-size: 2rem;
  }
  
  .hero-slider .carousel-caption p {
    font-size: 1rem;
  }
  
  .hero-slider .carousel-caption .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ===== OLD HERO SECTION (DEPRECATED) ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #218838 100%);
  background-image: url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?w=1200'),
                    linear-gradient(135deg, rgba(40, 167, 69, 0.9) 0%, rgba(33, 136, 56, 0.9) 100%);
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
}

.hero-overlay {
  width: 100%;
  padding: 4rem 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* ===== SECTIONS ===== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
}

/* ===== PACKAGE CARDS ===== */
.package-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.package-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.package-card:hover .package-image img {
  transform: scale(1.1);
}

.package-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.package-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.package-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.package-description {
  color: #6c757d;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.package-features li {
  padding: 0.5rem 0;
  color: #6c757d;
}

.package-features i {
  margin-right: 0.5rem;
}

.package-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.package-price-box {
  display: flex;
  flex-direction: column;
}

.package-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.package-period {
  font-size: 0.875rem;
  color: #6c757d;
}

/* ===== FEATURES SECTION ===== */
.feature-box {
  padding: 2rem;
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-icon i {
  font-size: 3rem;
}

.feature-icon-large {
  font-size: 4rem;
  color: var(--primary-color);
}

.feature-icon-large i {
  font-size: 4rem;
}

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== HOW IT WORKS ===== */
.step-box {
  padding: 2rem 1rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* ===== PARTNERS ===== */
.partner-logo {
  padding: 1rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  transition: var(--transition);
}

.partner-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.partner-logo img {
  max-width: 100%;
  max-height: 80px;
  opacity: 0.7;
  transition: var(--transition);
}

.partner-logo:hover img {
  opacity: 1;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #218838 100%);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}

/* ===== CONTACT PAGE ===== */
.contact-form-box,
.contact-info-box,
.working-hours-box {
  box-shadow: var(--box-shadow);
}

.form-control,
.form-select {
  border-radius: var(--border-radius);
  border: 1px solid #dee2e6;
  padding: 0.75rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* ===== ABOUT PAGE ===== */
.about-box {
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.about-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== PACKAGE DETAIL ===== */
.feature-item-detail {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.feature-item-detail:hover {
  background-color: #e9f7ef !important;
  transform: translateX(5px);
}

.order-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, #218838 100%);
}

.sticky-top {
  top: 100px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-color);
  margin-top: 5rem;
}

.footer h5,
.footer h6 {
  color: white;
  font-weight: 600;
}

.footer a {
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
  display: inline-block;
}

.social-links a {
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  display: inline-block;
}

/* ===== UTILITIES ===== */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .navbar-nav .nav-link.btn {
    margin-top: 1rem;
    text-align: center;
  }
  
  .sticky-top {
    position: relative !important;
    top: 0 !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 400px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .package-card {
    margin-bottom: 2rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* ===== ACCORDION ===== */
.accordion-button:not(.collapsed) {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

/* ===== LOADING STATES ===== */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .cta-section {
    display: none;
  }
}