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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #383850;
    overflow-x: hidden;
    /* Better text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Tel links styling - make phone numbers white */
a[href^="tel:"] {
    color: #ffffff !important;
    text-decoration: none !important;
}

a[href^="tel:"]:hover {
    color: #E61D48 !important;
}

/* Additional mobile-specific tel link styles */
.contact-card a[href^="tel:"],
.contact-info a[href^="tel:"],
a[href*="tel:"],
a[href*="+38"] {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Ensure visited links stay white */
a[href^="tel:"]:visited,
.contact-card a[href^="tel:"]:visited {
    color: #ffffff !important;
}

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

/* Improved touch targets for mobile */
a, button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #383850 0%, #40405E 100%);
    position: relative;
}

.navbar {
    position: relative;
    z-index: 1000;
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo i {
    color: #E61D48;
    font-size: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 12px;
}

.nav-links a:hover {
    color: #E61D48;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #E61D48;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero-content {
    text-align: center;
    padding: 80px 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    margin: 40px 0;
    position: relative;
}

.subtitle-line {
    width: 400px;
    height: 3px;
    background-color: #E61D48;
    margin: 0 auto 20px;
    max-width: 90%;
}

.hero-subtitle p {
    font-size: 1.8rem;
    font-weight: 500;
    color: #E61D48;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
}

.hero-card {
    background: rgba(140, 140, 140, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 60px auto;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card h2 {
    font-size: 1.9rem;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.3;
}

.emergency-icon {
    font-size: 3rem;
    color: #E61D48;
    margin-top: 20px;
}

/* Partners Logos */
.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 200px;
    margin-top: 50px;
    padding: 30px 0;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.partner-logo:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.partner-logo-img {
    height: 80px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.partner-logo:hover .partner-logo-img {
    filter: brightness(1);
}

/* Section Styles */
.section-title {
    font-size: 3.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
}

.section-line {
    width: 400px;
    height: 3px;
    background-color: #E61D48;
    margin: 0 auto 60px;
    max-width: 90%;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #383850;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.feature-card {
    background: rgba(217, 217, 217, 0.05);
    padding: 50px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Better touch feedback */
    -webkit-tap-highlight-color: rgba(230, 29, 72, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(230, 29, 72, 0.2);
}

.feature-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    display: block;
}

.feature-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.25);
}

.feature-card p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.4;
}

.feature-line {
    width: 180px;
    height: 2px;
    background-color: #E61D48;
    margin: 0 auto;
}

.important-info {
    background: rgba(255, 0, 55, 0.15);
    padding: 40px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.important-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.25);
}

.important-info p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, #40405E 0%, #383850 100%);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: rgba(217, 217, 217, 0.05);
    padding: 60px 40px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: rgba(230, 29, 72, 0.2);
}

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

.step-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    display: block;
}

.step-card h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.25);
}

.step-card p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.4;
}

.step-line {
    width: 200px;
    height: 2px;
    background-color: #E61D48;
    margin: 0 auto;
}

/* When to Use Section */
.when-to-use {
    padding: 100px 0;
    background: #383850;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    position: relative;
}

.when-to-use .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.when-to-use .use-case {
    background: rgba(217, 217, 217, 0.05) !important;
    padding: 50px 30px !important;
    border-radius: 10px !important;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: rgba(230, 29, 72, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(217, 217, 217, 0.1);
}

.when-to-use .use-case:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(230, 29, 72, 0.2) !important;
}

.use-case-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    display: block;
    text-align: center;
    width: 100%;
}

.use-case h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.25);
    text-align: center;
    width: 100%;
}

.use-case p {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.4;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.use-case-line {
    width: 180px;
    height: 2px;
    background-color: #E61D48;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

/* Contact section title color (both languages) */
.contact .section-title {
    color: #383850 !important;
    -webkit-text-fill-color: #383850 !important;
    text-shadow: none !important;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex: 1;
    text-align: center;
}

.contact-card p {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Add breathing room between multiple lines in a contact card */
.contact-card p + p {
    margin-top: 8px;
}

.cta-button {
    text-align: center;
}

.activate-btn {
    background: linear-gradient(135deg, #E61D48 0%, #CC1A40 100%);
    color: #ffffff;
    border: none;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(230, 29, 72, 0.3);
    text-decoration: none;
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(230, 29, 72, 0.3);
}

.activate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(230, 29, 72, 0.4);
}

.activate-btn i {
    margin-right: 10px;
}

.activate-btn:active {
    transform: scale(0.95);
}

/* Footer */
.footer {
    background: #2A2A3E;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.footer-logo-image {
    height: 60px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.footer-logo i {
    color: #E61D48;
}

.footer p {
    color: #ffffff;
    font-size: 1rem;
}

/* Download App (store badges) */
.download-app {
    padding: 0 0 20px;
    background: #383850;
}

.download-app .app-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.download-app .app-badges img {
    height: 44px;
    width: auto;
    display: block;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Enhanced Mobile Responsive Design */

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    /* Mobile-specific tel link override */
    a[href^="tel:"],
    .contact-card a[href^="tel:"],
    .contact-info a[href^="tel:"],
    a[href*="tel:"],
    a[href*="+38"] {
        color: #ffffff !important;
        text-decoration: none !important;
        -webkit-text-fill-color: #ffffff !important;
        -webkit-appearance: none !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }
    
    .hero-subtitle p {
        font-size: 1rem;
    }
    
    .subtitle-line {
        width: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-line {
        width: 200px;
    }
    
    .hero-card {
        padding: 20px 15px;
        margin: 30px auto;
    }
    
    .hero-card h2 {
        font-size: 1.2rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        font-size: 3.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
    }
    
    .feature-card p {
        font-size: 1rem;
    }
    
    .step-card {
        padding: 30px 20px;
    }
    
    .step-icon {
        font-size: 3.5rem;
    }
    
    .step-card h3 {
        font-size: 1.6rem;
    }
    
    .step-card p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
        margin-bottom: 60px;
    }
    
    .use-case {
        padding: 40px 25px;
    }

    .use-case-icon {
        font-size: 4rem;
        margin-bottom: 20px;
    }

    .use-case h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .use-case p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .contact-subtitle {
        font-size: 1.8rem;
    }
    
    .contact-card {
        padding: 20px 15px;
    }
    
    .contact-card p {
        font-size: 1rem;
    }
    
    .activate-btn {
        font-size: 1rem;
        padding: 15px 25px;
    }
    
    .important-info {
        padding: 20px 15px;
    }
    
    .important-info h3 {
        font-size: 1.4rem;
    }
    
    .important-info p {
        font-size: 1rem;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(56, 56, 80, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        font-size: 1.5rem;
        padding: 15px 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .language-switcher {
        margin: 0;
        padding: 0;
        border: none;
    }
    
    .partners-logos {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .partner-logo-img {
        max-width: 100px;
        max-height: 50px;
    }
    
    /* Mobile: horizontal scrolling contact cards */
    .contact-info {
        flex-direction: row;
        align-items: stretch;
        gap: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }
    .contact-info::-webkit-scrollbar { height: 6px; }
    .contact-info::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
    .contact-card {
        flex: 0 0 85%;
        min-width: 260px;
        scroll-snap-align: start;
    }
    
    /* Ensure process steps do not overflow on small widths */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Store badges: slightly smaller on phones */
    .download-app .app-badges {
        gap: 12px;
    }
    .download-app .app-badges img {
        height: 40px;
    }
}

/* Small devices (tablets, 481px to 768px) – keep row layout with wrapping */
@media (min-width: 481px) and (max-width: 768px) {
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 20px;
        overflow: visible;
    }
    .contact-card {
        flex: 1 1 calc(50% - 20px);
        min-width: 280px;
        padding: 24px;
    }
}

/* Small devices (tablets, 481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle p {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .features-grid,
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .use-cases {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 700px;
        margin: 0 auto;
        justify-items: center;
        justify-content: center;
    }

    .hero-card {
        padding: 40px 25px;
    }

    .hero-card h2 {
        font-size: 1.6rem;
    }

    .activate-btn {
        font-size: 1.2rem;
        padding: 18px 35px;
    }

    .partners-logos {
        gap: 50px;
        flex-wrap: wrap;
    }

    .partner-logo-img {
        max-width: 140px;
        max-height: 70px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 10px 15px;
    }
    
    .language-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-top: 15px;
        margin-top: 15px;
    }
}

/* Medium devices (small laptops, 769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
    
    .use-cases {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
        max-width: 900px;
        margin: 0 auto;
        justify-items: center;
        justify-content: center;
    }
    
    .partners-logos {
        gap: 100px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    transition: color 0.3s ease !important;
    padding: 8px 12px !important;
}

.lang-link:hover {
    color: #E61D48 !important;
}

.lang-link.active {
    color: #E61D48 !important;
    font-weight: 600 !important;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .step-card:hover,
    .partner-logo:hover,
    .activate-btn:hover {
        transform: none;
    }
    
    .feature-card:active,
    .step-card:active {
        transform: scale(0.98);
    }
    
    .activate-btn:active {
        transform: scale(0.95);
    }
}

.when-to-use .section-title {
    width: 100%;
    text-align: center;
    margin: 0 auto 30px;
    display: block;
}

.when-to-use .section-line {
    margin: 0 auto 60px;
    display: block;
}

.when-to-use .use-cases {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px;
    margin-bottom: 60px;
}

.when-to-use .use-case {
    padding: 40px 25px !important;
}

.when-to-use .use-case-icon {
    font-size: 4rem;
}

.when-to-use .use-case h3 {
    font-size: 1.5rem;
}

.when-to-use .use-case p {
    font-size: 1rem;
} 