/* ===================================
   MP Logistic - Professional Transport Website
   Colors: Dark Blue (#0A2463), Black (#1A1A1A), White (#FFFFFF)
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0A2463;
    --primary-dark: #061738;
    --primary-light: #1E3A8A;
    --secondary-color: #25D366;
    --accent-color: #FFB800;
    --dark: #1A1A1A;
    --dark-gray: #2A2A2A;
    --gray: #666666;
    --light-gray: #E5E5E5;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 30px var(--shadow-heavy);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo .logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    cursor: pointer;
}

.logo span {
    color: var(--dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    font-size: 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher - Beautiful Large Flags */
.language-switcher {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lang-btn {
    display: inline-block;
    text-decoration: none;
    background: white;
    border: 2px solid transparent;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.15);
}

.lang-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(10, 36, 99, 0.25);
    transform: translateY(-1px);
}

/* Flag Colors */
.flag-icon {
    display: block;
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-size: 15px;
}

/* Latvia Flag - Maroon/White/Maroon */
.flag-lv {
    background: linear-gradient(to bottom, 
        #9D2235 0%, #9D2235 40%, 
        white 40%, white 60%, 
        #9D2235 60%, #9D2235 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.lang-btn[data-lang="lv"]::before {
    background: linear-gradient(to bottom, 
        #9D2235 0%, #9D2235 40%, 
        white 40%, white 60%, 
        #9D2235 60%, #9D2235 100%);
}

.lang-btn[data-lang="lv"].active::before,
.lang-btn[data-lang="lv"]:hover::before {
    opacity: 0.1;
}

/* Russia Flag - White/Blue/Red */
.flag-ru {
    background: linear-gradient(to bottom, 
        white 0%, white 33.33%, 
        #0039A6 33.33%, #0039A6 66.66%, 
        #D52B1E 66.66%, #D52B1E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.lang-btn[data-lang="ru"]::before {
    background: linear-gradient(to bottom, 
        white 0%, white 33.33%, 
        #0039A6 33.33%, #0039A6 66.66%, 
        #D52B1E 66.66%, #D52B1E 100%);
}

.lang-btn[data-lang="ru"].active::before,
.lang-btn[data-lang="ru"]:hover::before {
    opacity: 0.1;
}

/* UK/English Flag - Red/White/Blue */
.flag-en {
    background: linear-gradient(135deg, 
        #012169 0%, #012169 25%, 
        white 25%, white 50%, 
        #C8102E 50%, #C8102E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.lang-btn[data-lang="en"]::before {
    background: linear-gradient(135deg, 
        #012169 0%, #012169 25%, 
        white 25%, white 50%, 
        #C8102E 50%, #C8102E 100%);
}

.lang-btn[data-lang="en"].active::before,
.lang-btn[data-lang="en"]:hover::before {
    opacity: 0.1;
}

/* Active state solid colors for better visibility */
.lang-btn.active .flag-lv {
    color: #9D2235;
    -webkit-text-fill-color: #9D2235;
}

.lang-btn.active .flag-ru {
    color: #0039A6;
    -webkit-text-fill-color: #0039A6;
}

.lang-btn.active .flag-en {
    color: #C8102E;
    -webkit-text-fill-color: #C8102E;
}

.btn-call {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-heavy);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.95) 0%, rgba(10, 36, 99, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center !important;
    color: var(--white);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
    text-align: center !important;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--dark);
}

.btn-primary:hover {
    background: #FFD400;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 184, 0, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
}

.hero-features {
    display: flex;
    gap: 60px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.feature-item i {
    font-size: 24px;
    color: var(--accent-color);
}

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

/* Section Styles */
section {
    padding: 100px 0;
}

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

.section-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: #F9FAFB;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-heavy);
}

.service-card:hover::before {
    height: 100%;
}

.service-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-card.featured h3,
.service-card.featured p {
    color: var(--white);
}

.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.95);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 36px;
    color: var(--white);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-features i {
    color: var(--secondary-color);
    font-size: 16px;
}

/* About Section */
.about-wrapper {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    animation: fadeInUp 0.8s ease;
}

.about-description {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-features {
    margin-bottom: 40px;
}

.about-feature {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon-wrap {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrap i {
    color: var(--white);
    font-size: 24px;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-text p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-image {
    position: relative;
    animation: fadeInRight 0.8s ease;
}

.image-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-heavy);
}

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

.badge-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-heavy);
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-card i {
    font-size: 32px;
    color: var(--secondary-color);
}

.badge-card strong {
    display: block;
    color: var(--dark);
    font-size: 16px;
    margin-bottom: 4px;
}

.badge-card p {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Testimonials Section */
.testimonials {
    background: #F9FAFB;
}

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

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--shadow-heavy);
}

.stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.stars i {
    color: var(--accent-color);
    font-size: 18px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--white);
    font-size: 24px;
}

.author-info h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: var(--gray);
}

/* Contact Section */
.contact-info-center {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-methods {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: var(--light-gray);
    transform: translateX(5px);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon.whatsapp {
    background: var(--secondary-color);
}

.method-icon i {
    color: var(--white);
    font-size: 22px;
}

.method-info h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 4px;
}

.method-info p {
    font-size: 15px;
    color: var(--gray);
}

.quick-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-call-large,
.btn-whatsapp-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-call-large {
    background: var(--primary-color);
    color: var(--white);
}

.btn-call-large:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-whatsapp-large {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-whatsapp-large:hover {
    background: #1EBE54;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-section .footer-brand {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-section h3 span,
.footer-section .footer-brand span {
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contacts i {
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px var(--shadow-heavy);
        padding: 30px;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .nav-cta .btn-call {
        display: none; /* Hide phone button on mobile */
    }
    
    .nav-cta .language-switcher {
        display: flex; /* Show language switcher on mobile */
        order: -1; /* Move above menu */
    }
    
    .language-switcher {
        padding: 4px;
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .lang-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-stats {
        justify-content: space-around;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}
