/*
Theme Name: Template Website
Template: astra
Version: 2.0
Description: Optimized landing page cho nail salon và restaurant marketing
*/

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #0b4f7a;
  --primary-dark: #083d5f;
  --primary-light: #1a6fa0;
  --secondary: #10b981;
  --accent: #d97706;
  --accent-restaurant: #2563eb;
  --text-dark: #0b1720;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: var(--white);
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
}

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  padding: 20px 5px 0px 0px;
  color: #D8BFA3;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.site-title {
  position: absolute;
  left: 20px;
  margin: 0;
  z-index: 2;
}

.site-title img {
  width: 130px;
  height: 130px;
  transition: transform 0.3s ease;
}

/* ===== NAVIGATION ===== */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul,
.main-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav > ul.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.main-nav > ul.menu > li {
  position: relative;
}

.main-nav > ul.menu > li > a {
  color: #2C3E50;
  font-size: 18px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  padding: 10px 20px;
  display: block;
  transition: all 0.3s ease;
  position: relative;
}
.main-nav > ul.menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #2C3E50;
  transition: width 0.3s ease;
}

.main-nav > ul.menu > li > a:hover {
  background: transparent;
  color: #2C3E50;
  transform: none;
}
.main-nav > ul.menu > li > a:hover::after {
  width: 100%;
}
/* Sub-menu */
.main-nav ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
  overflow: hidden;
}

.main-nav ul.sub-menu li a {
  color: #2C3E50;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.main-nav ul.sub-menu li a:hover {
  background: var(--primary);
  color: var(--white);
  padding-left: 28px;
}

.main-nav ul.menu > li:hover > ul.sub-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===== LANGUAGE SWITCHER ===== */
.header-lang-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: black;
  transition: all 0.3s ease;
}

.lang-dropdown-btn:hover {
  background: #f0f9ff;
  border-color: black;
  color: black;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(11, 79, 122, 0.2);
}

.current-lang-flag {
  font-size: 24px;
  line-height: 1;
}

.dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.lang-dropdown-btn:hover .dropdown-arrow {
  transform: translateY(2px);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 14px;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.lang-dropdown-menu.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  animation: slideDown 0.3s ease forwards;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.lang-option:hover {
  background: #f0f9ff;
  transform: translateX(8px);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  color: var(--primary);
}

.lang-option.active {
  background: #e0f2fe;
  color: var(--primary);
  font-weight: 700;
}

/* ===== SLIDESHOW STYLES ===== */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
}

.slide-text {
  flex: 1;
  color: white;
}

.slide-badge {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInDown 0.8s ease-out;
}

.slide-badge i {
  margin-right: 8px;
}

.slide-title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #f4e4c1;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.slide-title span {
  display: block;
}

.slide-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #e5e7eb;
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.slide-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #10b981;
  color: white;
}

.btn-primary:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #0b4f7a;
  transform: translateY(-2px);
}

.slide-images {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  animation: fadeInRight 1s ease-out 0.4s backwards;
}

.slide-image-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.slide-image-card:hover {
  transform: translateY(-10px);
}

.slide-image-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.slide-image-card.large {
  grid-column: span 2;
}

/* Navigation Controls */
.slideshow-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.nav-dot.active {
  width: 40px;
  border-radius: 10px;
  background: white;
}

.slideshow-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  pointer-events: none;
}

.arrow {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.arrow i {
  color: white;
  font-size: 24px;
}

/* ===== TEMPLATES SHOWCASE SECTION ===== */
.templates-showcase {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Package Section */
.package-section {
  margin-bottom: 80px;
}

.package-section:last-of-type {
  margin-bottom: 60px;
}

.package-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.package-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

.package-badge i {
  font-size: 20px;
}

.package-badge.essential {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.package-badge.advanced {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: white;
}

.package-badge.professional {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.package-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top:30px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.package-description {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.template-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out backwards;
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
}

/* Package specific card borders on hover */
.package-section:nth-child(2) .template-card:hover {
  border-color: #10b981;
}

.package-section:nth-child(3) .template-card:hover {
  border-color: #d97706;
}

.package-section:nth-child(4) .template-card:hover {
  border-color: #2563eb;
}

.template-card:nth-child(1) { animation-delay: 0.1s; }
.template-card:nth-child(2) { animation-delay: 0.2s; }
.template-card:nth-child(3) { animation-delay: 0.3s; }
.template-card:nth-child(4) { animation-delay: 0.4s; }
.template-card:nth-child(5) { animation-delay: 0.5s; }
.template-card:nth-child(6) { animation-delay: 0.6s; }

.template-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.template-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.template-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.template-card:hover .template-image img {
  transform: scale(1.1);
}

.template-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 79, 122, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.btn-view-demo {
  padding: 14px 32px;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.template-card:hover .btn-view-demo {
  transform: translateY(0);
}

.btn-view-demo:hover {
  background: var(--secondary);
  color: white;
  transform: scale(1.05);
}

.template-info {
  padding: 28px;
  display: flex; 
  flex-direction: column;
  flex: 1;
}

.template-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.template-category {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.template-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: auto
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #e0f2fe;
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.feature-tag i {
  font-size: 11px;
}

.template-card:hover .feature-tag {
  background: var(--primary);
  color: white;
}

.section-cta {
  text-align: center;
  margin-top: 40px;
}

.btn-large {
  padding: 18px 48px;
  font-size: 18px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-large:hover {
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

/* ===== FOOTER ===== */
.custom-footer {
  background: #fff;
  color: #2C3E50;
  font-family: "Segoe UI", sans-serif;
  border: 1px solid #8dc6ff;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 40px 20px;
  gap: 32px;
}

.footer-col {
  flex: 1 1 250px;
  min-width: 250px;
}

.footer-logo {
  width: 180px;
  height: 180px;
  margin-bottom: 16px;
}

.footer-col h3 {
  font-size: 20px;
  color: #2C3E50;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col a {
  color: #2C3E50;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: #D98760;
  text-decoration: underline;
}

.footer-social {
  margin-top: 16px;
}

.footer-social a {
  display: inline-block;
  margin-right: 12px;
  font-size: 24px;
  color: #2C3E50;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: #D98760;
  transform: scale(1.2) rotate(5deg);
}

.footer-bottom {
  text-align: center;
  background: #d4e7f8;
  padding: 20px 0;
  font-size: 14px;
  margin-top: 20px;
  color: #2C3E50;
}
/* ===== USE TEMPLATE BUTTON - BASIC STYLES ===== */
.btn-use-template {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  margin-top: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  cursor: pointer;
  border: none;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Hover Effect */
.btn-use-template:hover {
  color:white;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Active/Click Effect */
.btn-use-template:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Icon inside button */
.btn-use-template i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-use-template:hover i {
  transform: translateX(3px);
}

/* ===== PACKAGE-SPECIFIC BUTTON COLORS ===== */

/* Essential Package - Green */
.package-section:nth-child(2) .btn-use-template {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.package-section:nth-child(2) .btn-use-template:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Advanced Package - Orange */
.package-section:nth-child(3) .btn-use-template {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.package-section:nth-child(3) .btn-use-template:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

/* Professional Package - Blue */
.package-section:nth-child(4) .btn-use-template {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.package-section:nth-child(4) .btn-use-template:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ===== ALTERNATIVE BUTTON STYLES (Optional) ===== */

/* Outline Style */
.btn-use-template.outline-style {
  background: transparent;
  border: 2px solid #10b981;
  color: #10b981;
  box-shadow: none;
}

.btn-use-template.outline-style:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

/* Solid Flat Style (No Gradient) */
.btn-use-template.flat-style {
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-use-template.flat-style:hover {
  background: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Pill Style with Icon Animation */
.btn-use-template.pill-style {
  border-radius: 100px;
  padding: 16px 32px;
}

.btn-use-template.pill-style:hover i {
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* Glow Effect Style */
.btn-use-template.glow-style {
  position: relative;
  overflow: hidden;
}

.btn-use-template.glow-style::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-use-template.glow-style:hover::before {
  left: 100%;
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet */
@media (max-width: 1024px) {
  .btn-use-template {
    padding: 13px 22px;
    font-size: 15px;
  }
  
  .btn-use-template i {
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .btn-use-template {
    padding: 12px 20px;
    font-size: 15px;
    margin-top: 16px;
  }
  
  .btn-use-template i {
    font-size: 14px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .btn-use-template {
    padding: 12px 18px;
    font-size: 14px;
  }
  
  .btn-use-template i {
    font-size: 13px;
  }
}

/* ===== ACCESSIBILITY ===== */

/* Focus visible for keyboard navigation */
.btn-use-template:focus-visible {
  outline: 3px solid #10b981;
  outline-offset: 3px;
}

/* Disabled state */
.btn-use-template:disabled,
.btn-use-template.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading state */
.btn-use-template.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn-use-template.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  .btn-use-template {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  }
  
  .btn-use-template:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .btn-use-template {
    display: none;
  }
}
/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: slideInUp 1.3s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .main-nav > ul.menu {
    gap: 32px;
  }
  
  .hero-slideshow {
    min-height: 700px;
  }

  .slide-content {
    gap: 40px;
    padding: 0 30px;
  }

  .slide-title {
    font-size: 56px;
  }

  .slide-description {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .slide-buttons {
    gap: 16px;
  }

  .btn {
    padding: 14px 32px;
    font-size: 16px;
  }

  .slide-images {
    gap: 16px;
  }

  .slide-image-card img {
    height: 200px;
  }

  .slideshow-arrows {
    padding: 0 30px;
  }

  .arrow {
    width: 50px;
    height: 50px;
  }

  .arrow i {
    font-size: 20px;
  }

  .slideshow-nav {
    bottom: 30px;
  }
  
  .templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
  
  .section-title {
    font-size: 40px;
  }
}
/* ===== MOBILE LANDSCAPE (900px and below) ===== */
@media (max-width: 900px) {
  .slide-content {
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    text-align: center;
  }

  .slide-text {
    max-width: 100%;
  }

  .slide-title {
    font-size: 48px;
  }

  .slide-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .slide-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .slide-images {
    max-width: 600px;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  /* Header */
  .site-header .container {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .site-title {
    position: static;
  }
  
  .site-title img {
    width: 100px;
    height: 100px;
    margin-left: 0;
  }
  
  .header-lang-switcher {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    width: auto;
  }
  
  .lang-dropdown-btn {
    width: auto;
    justify-content: space-between;
  }
  
  .lang-dropdown-menu {
    width: 200px;
  }
  
  /* Navigation */
  .main-nav {
    width: 100%;
    margin-top: 16px;
  }
  
  .main-nav > ul.menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  .main-nav > ul.menu > li {
    width: 100%;
    text-align: center;
  }
  
  .main-nav > ul.menu > li > a {
    display: block;
    padding: 12px 16px;
  }
  
  .main-nav ul.sub-menu {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8f9fa;
  }
  
  .main-nav ul.menu > li:hover > ul.sub-menu {
    display: block;
    pointer-events: auto;
  }
  
  .hero-slideshow {
    min-height: 100vh;
    height: auto;
  }

  .slide {
    align-items: flex-start;
    padding-top: 100px;
  }

  .slide-content {
    padding: 0 20px;
    gap: 24px;
  }

  .slide-badge {
    padding: 10px 20px;
    font-size: 12px;
    margin-bottom: 16px;
  }

  .slide-title {
    font-size: 42px;
    margin-bottom: 16px;
  }

  .slide-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .slide-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    text-align: center;
  }

  .slide-images {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
  }

  .slide-image-card {
    border-radius: 16px;
  }

  .slide-image-card img {
    height: 180px;
  }

  .slide-image-card.large {
    grid-column: span 1;
  }

  .slide-image-card.large img {
    height: 240px;
  }

  .slideshow-arrows {
    padding: 0 20px;
  }

  .arrow {
    width: 44px;
    height: 44px;
  }

  .arrow i {
    font-size: 18px;
  }

  .slideshow-nav {
    bottom: 20px;
    gap: 8px;
  }

  .nav-dot {
    width: 10px;
    height: 10px;
  }

  .nav-dot.active {
    width: 30px;
  }
  /* Templates Showcase */
  .templates-showcase {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .package-section {
    margin-bottom: 60px;
  }
  
  .package-badge {
    font-size: 14px;
    padding: 10px 24px;
  }
  
  .package-title {
    font-size: 28px;
  }
  
  .package-description {
    font-size: 16px;
    padding: 0 20px;
  }
  
  .templates-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .template-image {
    height: 220px;
  }
  
  .template-info {
    padding: 20px;
  }
  
  .template-title {
    font-size: 20px;
  }
  
  .btn-large {
    width: 100%;
    padding: 16px 32px;
  }
}

/* ===== SMALL MOBILE (480px and below) ===== */
@media (max-width: 480px) {
  .hero-slideshow {
    min-height: 100vh;
  }

  .slide {
    padding-top: 80px;
  }

  .slide-content {
    padding: 0 16px;
    gap: 20px;
  }

  .slide-badge {
    padding: 8px 16px;
    font-size: 11px;
  }

  .slide-badge i {
    margin-right: 6px;
    font-size: 12px;
  }

  .slide-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .slide-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  .slide-images {
    gap: 10px;
  }

  .slide-image-card {
    border-radius: 12px;
  }

  .slide-image-card img {
    height: 150px;
  }

  .slide-image-card.large img {
    height: 200px;
  }

  .slideshow-arrows {
    padding: 0 12px;
  }

  .arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
  }

  .arrow i {
    font-size: 16px;
  }

  .slideshow-nav {
    bottom: 16px;
  }

  .nav-dot {
    width: 8px;
    height: 8px;
  }

  .nav-dot.active {
    width: 24px;
  }
}

/* ===== EXTRA SMALL MOBILE (360px and below) ===== */
@media (max-width: 360px) {
  .slide-title {
    font-size: 28px;
  }

  .slide-description {
    font-size: 13px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .slide-image-card img {
    height: 130px;
  }

  .slide-image-card.large img {
    height: 180px;
  }

  .arrow {
    width: 36px;
    height: 36px;
  }

  .arrow i {
    font-size: 14px;
  }
}


/* Accessibility improvements */
.lang-option:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: -2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .lang-dropdown-btn {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
  }
  
  .lang-dropdown-btn:hover {
    background: #3d3d3d;
    border-color: #0088ff;
  }
  
  .lang-dropdown-menu {
    background: #2d2d2d;
    border-color: #444;
  }
  
  .lang-option {
    color: #fff;
  }
  
  .lang-option:hover {
    background: #3d3d3d;
  }
  
  .lang-option.active {
    background: #1a3a52;
    color: #4da6ff;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .site-header,
  .slideshow-arrows,
  .slideshow-nav,
  .section-cta,
  .btn {
    display: none;
  }
}