/* ===================================
   BALKAN MOSAIC FUSION - DESIGN SYSTEM
   Location Voiture Tirana
   =================================== */

/* === 1. CSS CUSTOM PROPERTIES === */
:root {
    /* Colors - Balkan Sunset Modern */
    --primary: #E63946;
    --secondary: #1D3557;
    --accent1: #F4A261;
    --accent2: #2A9D8F;
    --neutral: #F1FAEE;
    --dark: #264653;

    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Playfair Display', serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Effects */
    --glassmorphism: rgba(241, 250, 238, 0.25);
    --glassmorphism-border: rgba(255, 255, 255, 0.18);
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --shadow-hard: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* === 2. GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--neutral);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
}

/* === 3. TYPOGRAPHY === */
.hero-title {
    font-family: var(--font-display);
    letter-spacing: 0.05em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.kinetic-text {
    display: inline-block;
    animation: kinetic-float 3s ease-in-out infinite;
}

@keyframes kinetic-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary), var(--accent1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--dark);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* === 4. HEADER - GLASSMORPHISM === */
#header {
    background: var(--glassmorphism);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glassmorphism-border);
    box-shadow: var(--shadow-soft);
}

#header.scrolled {
    background: rgba(241, 250, 238, 0.95);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent1));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* === 5. BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent1));
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* === 6. HERO SECTION - LIVING MAP === */
#hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent2) 100%);
}

.hero-bg img {
    opacity: 0.4;
}

#hero-canvas {
    z-index: 1;
}

#particles-canvas {
    z-index: 2;
    opacity: 0.6;
}

/* Torn Paper Widget */
.torn-paper-widget {
    position: relative;
    z-index: 10;
    transform: perspective(1000px);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.torn-paper-widget:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
}

.widget-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    clip-path: polygon(0 3%, 2% 0, 5% 2%, 8% 0, 12% 3%, 15% 1%, 18% 4%, 21% 2%, 25% 3%,
            28% 1%, 32% 2%, 35% 4%, 38% 1%, 42% 3%, 45% 1%, 48% 2%, 52% 4%,
            55% 2%, 58% 3%, 62% 1%, 65% 4%, 68% 2%, 72% 3%, 75% 1%, 78% 4%,
            82% 2%, 85% 3%, 88% 1%, 92% 4%, 95% 2%, 98% 3%, 100% 1%, 100% 100%,
            0 100%);
}

.widget-field {
    transition: transform 0.3s ease;
}

.widget-field:hover {
    transform: scale(1.02);
}

.widget-input {
    background: white;
    border: 2px solid var(--primary)/20;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
}

.widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent1));
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.widget-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 50px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% {
        top: 10px;
        opacity: 1;
    }

    50% {
        top: 25px;
        opacity: 0.5;
    }

    100% {
        top: 10px;
        opacity: 1;
    }
}

/* === 7. FLIP CARDS - FLEET SHOWCASE === */
.flip-card {
    perspective: 1000px;
    height: 450px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--primary), var(--accent1));
    color: white;
    padding: 2rem;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-back h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.flip-card-back ul {
    list-style: none;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.flip-card-back .btn-primary {
    background: white;
    color: var(--primary);
}

.flip-card-back .btn-primary:hover {
    background: var(--neutral);
}

/* === 8. DEALS TIMELINE === */
.deals-timeline {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--neutral);
}

.deal-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.deal-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

/* === 9. PARALLAX & ORNAMENT === */
.parallax-content {
    animation: fade-in-up 1s ease;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ornament-frame {
    position: relative;
    padding: 1rem;
}

.ornament-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid transparent;
    border-image: linear-gradient(135deg, var(--primary), var(--accent1), var(--accent2)) 1;
    border-radius: 20px;
    pointer-events: none;
}

/* === 10. CALCULATOR WIDGET - NEOMORPHISM === */
.calculator-widget {
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    border-radius: 30px;
    box-shadow:
        20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
}

.slider-container {
    position: relative;
    padding: 1rem 0;
}

.slider-track {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
}

.slider-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent1));
    border-radius: 10px;
    position: absolute;
    left: 0;
    top: 0;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.calc-option {
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-option:hover,
.calc-option.active {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* === 11. TIP CARDS === */
.tip-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === 12. INSURANCE STEPS === */
.insurance-steps {
    position: relative;
}

.insurance-steps::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent2));
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent1));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    z-index: 1;
}

.step-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* === 13. ROUTE CARDS === */
.route-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.route-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.route-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(230, 57, 70, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 10;
}

/* === 14. REVIEWS - CAROUSEL === */
.reviews-swiper {
    padding: 2rem 0 4rem;
}

.review-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    height: auto;
}

.review-stars {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--dark);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent1));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

/* === 15. LOCATION CARDS === */
.location-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.location-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* === 16. FAQ - ACCORDION === */
.faq-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

/* === 17. FOOTER === */
.footer {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    color: white;
    position: relative;
}

.wave-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    fill: var(--neutral);
    transform: rotateY(180deg);
}

.footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent1);
}

/* === 18. RESPONSIVE === */
@media (max-width: 768px) {
    .section-padding {
        padding: var(--spacing-lg) 0;
    }

    .flip-card {
        height: auto;
    }

    .flip-card-inner {
        transform: none !important;
    }

    .flip-card-back {
        position: relative;
        transform: none;
        margin-top: 1rem;
    }

    .deals-timeline {
        flex-direction: column;
    }

    .deal-card {
        flex: 1;
        min-width: 100%;
    }

    .insurance-steps::before {
        display: none;
    }

    .step-item {
        flex-direction: column;
        gap: 1rem;
    }
}

/* === 19. CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--neutral);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent1));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* === 20. ANIMATIONS === */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

/* === 21. UTILITIES === */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glassmorphism {
    background: var(--glassmorphism);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glassmorphism-border);
}

/* === 22. MODERN CALCULATOR WIDGET === */
.calculator-widget-modern {
    transition: transform 0.3s ease;
}

.calculator-widget-modern:hover {
    transform: translateY(-5px);
}

/* Modern Slider Styles */
.slider-track-modern {
    height: 12px;
    background: linear-gradient(90deg, #e0e0e0, #f0f0f0);
    border-radius: 20px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent1));
    border-radius: 20px;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.3s ease;
}

.slider-thumb-modern {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: white;
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-thumb-modern:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(230, 57, 70, 0.4);
}

/* Modern Calc Cards */
.calc-card-modern {
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calc-card-modern:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.15);
}

.calc-card-modern.active {
    background: linear-gradient(135deg, var(--primary), var(--accent1));
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

/* Insurance Cards */
.insurance-card-modern {
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.insurance-card-modern:hover {
    border-color: var(--accent2);
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.15);
}

.insurance-card-modern.active {
    border-color: var(--accent2);
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.1), rgba(42, 157, 143, 0.05));
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.2);
}