/**
 * ArrivalLanka Tourism Website - Main Stylesheet
 *
 * @package ArrivalLanka
 * @version 1.0
 */

/* ================================
   ROOT VARIABLES
   ================================ */
:root {
    /* Primary Colors */
    --primary-blue: #1E40AF;
    --primary-green: #059669;
    --primary-orange: #F97316;

    /* Neutral Colors */
    --neutral-dark: #1F2937;
    --neutral-gray: #6B7280;
    --neutral-light: #F3F4F6;
    --neutral-white: #FFFFFF;

    /* Accent Colors */
    --accent-yellow: #FBBF24;
    --accent-red: #EF4444;

    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;

    /* Fonts */
    --font-sans: 'Poppins', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* ================================
   GLOBAL STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--neutral-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   NAVIGATION
   ================================ */
.nav-link {
    color: var(--neutral-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-nav-link {
    display: block;
    color: var(--neutral-dark);
    font-weight: 500;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.25rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(249, 115, 22, 0.1));
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* ================================
   FLOATING WHATSAPP BUTTON
   ================================ */
.floating-whatsapp {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ================================
   BUTTONS
   ================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #1E3A8A);
    color: white;
    padding: 0.875rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.25);
}

/* ================================
   LINE CLAMP UTILITIES
   ================================ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================
   CARD HOVER EFFECTS
   ================================ */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(30, 64, 175, 0.2);
}

.card-hover:hover::before {
    opacity: 1;
}

/* ================================
   IMAGE HOVER EFFECTS
   ================================ */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

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

/* ================================
   PROSE STYLES (for blog content)
   ================================ */
.prose {
    max-width: 65ch;
}

.prose h2 {
    font-size: 1.875rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.prose h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.prose a:hover {
    color: #1E3A8A;
}

.prose img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.prose blockquote {
    border-left: 4px solid var(--primary-orange);
    padding-left: 1rem;
    font-style: italic;
    color: var(--neutral-gray);
    margin: 1.5rem 0;
}

.prose code {
    background-color: var(--neutral-light);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.prose pre {
    background-color: var(--neutral-dark);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
}

/* ================================
   ANIMATION UTILITIES
   ================================ */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

/* ================================
   LOADING SPINNER
   ================================ */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary-blue);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   SCROLL TO TOP BUTTON (REMOVED)
   ================================ */
/* Back to top buttons removed as per requirement */

/* ================================
   RESPONSIVE UTILITIES
   ================================ */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ================================
   CUSTOM SCROLLBAR
   ================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1E3A8A;
}

/* ================================
   FORM STYLES
   ================================ */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--primary-blue);
    border-color: transparent;
}

/* ================================
   GLIGHTBOX CUSTOM STYLES
   ================================ */
.gslide-description {
    background: rgba(0, 0, 0, 0.75);
    padding: 1rem;
    border-radius: 0.5rem;
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        color: black;
    }

    a {
        text-decoration: underline;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 3.5rem 0;
}

@media (min-width: 640px) {
    .section-padding {
        padding: 4.5rem 0;
    }
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5.5rem 0;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 6.5rem 0;
    }
}

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

/* ================================
   HERO CANVAS STYLES
   ================================ */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ================================
   HERO SECTION STYLES
   ================================ */
.hero-section {
    /* Mobile: Optimized height */
    height: 55vh;
    min-height: 450px;
    max-height: 550px;
}

/* Tablet and up */
@media (min-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 500px;
        max-height: 600px;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .hero-section {
        height: 65vh;
        min-height: 550px;
        max-height: 650px;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .hero-section {
        height: 65vh;
        min-height: 580px;
        max-height: 680px;
    }
}

/* Extra Large Desktop */
@media (min-width: 1536px) {
    .hero-section {
        height: 70vh;
        min-height: 600px;
        max-height: 700px;
    }
}

/* ================================
   HERO SWIPER STYLES
   ================================ */
.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-wrapper {
    height: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 22px;
    font-weight: 900;
}

.hero-swiper .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hero-swiper .swiper-pagination {
    bottom: 40px !important;
    z-index: 20;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-swiper .swiper-pagination-bullet:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 36px;
    border-radius: 6px;
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8));
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 44px;
        height: 44px;
    }

    .hero-swiper .swiper-button-next::after,
    .hero-swiper .swiper-button-prev::after {
        font-size: 18px;
    }

    .hero-swiper .swiper-pagination {
        bottom: 30px !important;
    }
}

/* ================================
   ERROR PAGES
   ================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}

/* ================================
   PACKAGES CAROUSEL STYLES
   ================================ */

/* Wrapper Container */
.packages-carousel-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    padding: 0 0.5rem;
}

/* Swiper Container */
.packages-swiper {
    width: 100%;
    padding: 15px 5px 65px 5px !important;
    overflow: hidden;
}

/* Swiper Slide */
.packages-swiper .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

/* Package Card */
.package-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.package-card img {
    transition: transform 0.6s ease;
}

.package-card:hover img {
    transform: scale(1.05);
}

/* Navigation Arrows */
.packages-swiper .swiper-button-next,
.packages-swiper .swiper-button-prev {
    color: var(--primary-blue);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    border: 2px solid transparent;
}

.packages-swiper .swiper-button-next::after,
.packages-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: 900;
}

.packages-swiper .swiper-button-next:hover,
.packages-swiper .swiper-button-prev:hover {
    background: linear-gradient(135deg, var(--primary-blue), #1E3A8A);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
    border-color: var(--primary-blue);
}

.packages-swiper .swiper-button-next:active,
.packages-swiper .swiper-button-prev:active {
    transform: scale(1.05);
}

.packages-swiper .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pagination */
.packages-swiper .swiper-pagination {
    bottom: 20px !important;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.packages-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    opacity: 0.25;
    margin: 0 5px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    cursor: pointer;
}

.packages-swiper .swiper-pagination-bullet:hover {
    opacity: 0.5;
    transform: scale(1.1);
}

.packages-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    width: 32px;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
}

.packages-swiper .swiper-pagination-bullet-active-main {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
}

/* Responsive Styles */

/* Mobile Phones (up to 639px) */
@media (max-width: 639px) {
    .packages-carousel-wrapper {
        padding: 0 0.25rem;
    }

    .packages-swiper {
        padding: 10px 8px 55px 8px !important;
    }

    .packages-swiper .swiper-button-next,
    .packages-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .packages-swiper .swiper-button-next::after,
    .packages-swiper .swiper-button-prev::after {
        font-size: 14px;
    }

    .packages-swiper .swiper-button-next {
        right: 2px;
    }

    .packages-swiper .swiper-button-prev {
        left: 2px;
    }
}

/* Tablets (640px to 1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
    .packages-carousel-wrapper {
        padding: 0 1rem;
    }

    .packages-swiper {
        padding: 15px 15px 65px 15px !important;
    }

    .packages-swiper .swiper-button-next {
        right: -8px;
    }

    .packages-swiper .swiper-button-prev {
        left: -8px;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .packages-carousel-wrapper {
        padding: 0 2rem;
    }

    .packages-swiper {
        padding: 20px 40px 70px 40px !important;
    }

    .packages-swiper .swiper-button-next {
        right: -12px;
    }

    .packages-swiper .swiper-button-prev {
        left: -12px;
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .packages-carousel-wrapper {
        padding: 0 2.5rem;
    }

    .packages-swiper {
        padding: 20px 45px 70px 45px !important;
    }

    .packages-swiper .swiper-button-next {
        right: -10px;
    }

    .packages-swiper .swiper-button-prev {
        left: -10px;
    }
}

/* Extra Large Desktop (1536px and up) */
@media (min-width: 1536px) {
    .packages-carousel-wrapper {
        padding: 0 3rem;
    }

    .packages-swiper {
        padding: 20px 50px 70px 50px !important;
    }
}

/* Smooth Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.packages-swiper .swiper-slide-active .package-card {
    animation: slideIn 0.5s ease-out;
}

/* ================================
   ADMIN SPECIFIC STYLES (Basic)
   ================================ */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: var(--neutral-dark);
    color: white;
    overflow-y: auto;
    z-index: 50;
}

.admin-content {
    margin-left: 250px;
    padding: 2rem;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }
}

/* ================================
   ENHANCED UI UTILITIES
   ================================ */

/* Smooth gradient backgrounds */
.gradient-bg-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1E3A8A 100%);
}

.gradient-bg-secondary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #EA580C 100%);
}

.gradient-bg-success {
    background: linear-gradient(135deg, var(--primary-green) 0%, #047857 100%);
}

/* Glass morphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Smooth box shadows */
.shadow-soft {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
}

/* Animated gradient border */
@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-border {
    position: relative;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange), var(--primary-green));
    background-size: 200% 200%;
    animation: gradient-border 3s ease infinite;
}

/* Improved focus states for accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 3px;
}

/* Better text selection */
::selection {
    background-color: var(--primary-blue);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-blue);
    color: white;
}

/* Improved image loading state */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

img[src] {
    background: none;
}

/* Skeleton loading animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    animation: skeleton-loading 1.5s ease-in-out infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

/* Responsive text utilities */
.text-responsive-sm {
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.text-responsive-base {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.text-responsive-lg {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
}

.text-responsive-xl {
    font-size: clamp(1.25rem, 3.5vw, 2rem);
}

/* Enhanced hover lift effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Mobile optimizations */
@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    h1 {
        letter-spacing: -0.03em;
    }

    /* Improve touch targets */
    button,
    a[role="button"],
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Print optimizations */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    h2, h3 {
        page-break-after: avoid;
    }
}

/* ================================
   CUSTOMER REVIEWS SECTION - DARK THEME
   ================================ */

/* Reviews Swiper Container */
.reviews-swiper {
    width: 100%;
    padding: 10px 5px;
    overflow: hidden;
    position: relative;
}

/* Reviews Swiper Slide - Equal Height */
.reviews-swiper .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

/* Testimonial Card - Equal Height */
.testimonial-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 320px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Testimonial Text - Line Clamp */
.testimonial-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
}

/* Hide default swiper navigation arrows */
.reviews-swiper .swiper-button-next,
.reviews-swiper .swiper-button-prev {
    display: none !important;
}

/* Custom Navigation Buttons */
button.reviews-prev,
button.reviews-next {
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

button.reviews-prev:hover,
button.reviews-next:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

button.reviews-prev:active,
button.reviews-next:active {
    transform: scale(1.05);
}

/* Pagination Container - Centered with Arrows */
.reviews-pagination {
    position: static !important;
    width: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Pagination Bullets - Dark Theme */
.reviews-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    margin: 0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    cursor: pointer;
    display: inline-block;
}

.reviews-pagination .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.reviews-pagination .swiper-pagination-bullet-active {
    background: linear-gradient(90deg, var(--primary-orange), #FBBF24);
    width: 24px;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.5);
}

/* Line Clamp Utilities */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Styles */

/* Mobile Phones (up to 639px) */
@media (max-width: 639px) {
    .reviews-swiper {
        padding: 8px 4px;
    }

    .testimonial-card {
        min-height: 300px;
    }

    .testimonial-text {
        -webkit-line-clamp: 4;
        font-size: 14px;
    }

    button.reviews-prev,
    button.reviews-next {
        width: 36px;
        height: 36px;
    }

    .reviews-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }

    .reviews-pagination .swiper-pagination-bullet-active {
        width: 18px;
    }
}

/* Tablets (640px to 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .reviews-swiper {
        padding: 10px 8px;
    }

    .testimonial-card {
        min-height: 320px;
    }
}

/* Tablets (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .reviews-swiper {
        padding: 10px 10px;
    }

    .testimonial-card {
        min-height: 340px;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .reviews-swiper {
        padding: 15px 10px;
    }

    .testimonial-card {
        min-height: 340px;
    }

    .testimonial-text {
        -webkit-line-clamp: 5;
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .reviews-swiper {
        padding: 15px 15px;
    }

    .testimonial-card {
        min-height: 350px;
    }
}

/* Extra Large Desktop (1536px and up) */
@media (min-width: 1536px) {
    .reviews-swiper {
        padding: 15px 20px;
    }
}
