:root {
    --orange: rgba(231, 82, 2, 255);
    --black: #000000;
    --white: #ffffff;
    --dark-gray: #121212;
    --animation-timing: 0.3s;
    --whatsapp-color: #25D366;
    --telegram-color: #0088cc;
    --viber-color: #7360F2;
    --phone-color: #4CAF50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--white);
    background-color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    touch-action: manipulation; /* Prevents double-tap zoom on iOS */
}

/* Taxi checkerboard background pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(45deg, var(--dark-gray) 25%, transparent 25%),
            linear-gradient(-45deg, var(--dark-gray) 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, var(--dark-gray) 75%),
            linear-gradient(-45deg, transparent 75%, var(--dark-gray) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    opacity: 0.3;
    z-index: -1;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0 0, 0 30px, 30px -30px, -30px 0px; }
    50% { background-position: 30px 30px, 30px 60px, 60px 0px, 0px 30px; }
    100% { background-position: 0 0, 0 30px, 30px -30px, -30px 0px; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Separator */
.separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.4s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Header actions styling */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Support Button - Large orange button */
.support-button {
    background-color: var(--orange);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(231, 82, 2, 0.3);
    z-index: 1;
    white-space: nowrap;
    cursor: pointer;
}

.support-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.support-button:hover {
    background-color: rgba(231, 82, 2, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 82, 2, 0.4);
}

.support-button:hover::before {
    left: 100%;
}

.support-button i {
    font-size: 16px;
}

.button-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Telegram header button specific styles */
.telegram-header-button {
    background-color: var(--orange);
}

.telegram-header-button i {
    color: var(--white);
}

/* Contact Circle Button - Small circle for Telegram */
.contact-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--telegram-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 136, 204, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.contact-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.6);
}

.contact-circle i {
    color: var(--white);
    font-size: 18px;
}

/* Telegram icon button - Orange circular button */
.telegram-icon-button {
    background-color: var(--orange);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(231, 82, 2, 0.3);
    cursor: pointer;
}

.telegram-icon-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 82, 2, 0.4);
}

.telegram-icon-button i {
    font-size: 18px;
    color: var(--white);
}

/* Hide button state - improved animation */
header.hide-button .header-button {
    transform: scale(0.9);
    opacity: 0;
    visibility: hidden;
}

/* Call Button - Styling for header */
.call-button {
    background-color: var(--phone-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    z-index: 1;
    white-space: nowrap;
}

.call-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.call-button:hover {
    background-color: rgba(76, 175, 80, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.call-button:hover::before {
    left: 100%;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--orange);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.accent {
    color: var(--orange);
}

/* Telegram Button */
.telegram-button {
    background-color: var(--orange);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(231, 82, 2, 0.3);
    z-index: 1;
    white-space: nowrap;
}

/* Header button specific styles */
.header-button {
    transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.telegram-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.telegram-button:hover {
    background-color: rgba(231, 82, 2, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 82, 2, 0.4);
}

.telegram-button:hover::before {
    left: 100%;
}

/* Keep the large telegram button at the bottom intact */
.telegram-button.large {
    background-color: var(--orange);
    padding: 18px 35px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 8px;
    min-width: 250px;
}

.telegram-button.large:hover {
    background-color: rgba(231, 82, 2, 0.9);
}

.glow-effect {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(231, 82, 2, 0.5); }
    100% { box-shadow: 0 0 20px rgba(231, 82, 2, 0.8), 0 0 30px rgba(231, 82, 2, 0.4); }
}

.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Main Content */
main {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.content-box {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    outline: 1px solid rgba(255, 255, 255, 0.05); /* Fix for the seam */
}

content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    z-index: -1;
}

h1 {
    font-size: 36px;
    margin-bottom: 25px;
    line-height: 1.3;
    position: relative;
    overflow-wrap: break-word;
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Prevent overflow */
}

p {
    margin-bottom: 15px;
    overflow-wrap: break-word;
}

.advantages {
    margin: 40px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

ul {
    list-style-type: none;
    margin-bottom: 30px;
}

li {
    margin-bottom: 15px;
    padding-left: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

li.active {
    opacity: 1;
    transform: translateX(0);
}

.feature-item i {
    font-size: 18px;
    flex-shrink: 0;
}

.highlight {
    font-size: 22px;
    font-weight: 700;
    border-left: 3px solid var(--orange);
    padding: 15px;
    margin: 30px 0;
    background-color: rgba(231, 82, 2, 0.1);
    border-radius: 0 8px 8px 0;
}

.cta {
    font-size: 20px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.button-container {
    text-align: center;
    margin-top: 40px;
    position: relative;
}

/* Contact Section - New Design */
.contact-section {
    margin-top: 40px;
    background: rgba(18, 18, 18, 0.8);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    padding: 30px 20px;
    text-align: center;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(to right, var(--orange) 0%, rgba(255, 166, 0, 0.8) 100%);
}

.contact-header {
    margin-bottom: 25px;
}

.contact-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin-top: 8px;
}

.contact-phone {
    margin-bottom: 25px;
}

.phone-link {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(231, 82, 2, 0.15);
    padding: 12px 25px;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.phone-link:hover {
    background: rgba(231, 82, 2, 0.25);
    transform: translateY(-2px);
}

.phone-link i {
    font-size: 20px;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.icon-button {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 30px;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.icon-button:hover {
    transform: translateY(-5px);
}

.icon-button.telegram {
    background-color: var(--telegram-color);
}

.icon-button.whatsapp {
    background-color: var(--whatsapp-color);
}

.icon-button.viber {
    background-color: var(--viber-color);
}

/* Floating Contact Panel - Updated Design */
.floating-contact {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: rgba(18, 18, 18, 0.97);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 320px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.floating-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(to right, var(--orange) 0%, rgba(255, 166, 0, 0.8) 100%);
}

.floating-contact.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.floating-contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-contact-header h3 {
    font-size: 18px;
    margin: 0;
    color: var(--white);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-contact-header h3::before {
    content: '\f2a0';
    font-family: 'Font Awesome 6 Free';
    color: var(--orange);
    font-size: 16px;
}

.close-button {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.floating-contact-buttons {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* New contact button styles for the floating panel */
.floating-contact-buttons a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    margin: 5px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.floating-contact-buttons a:hover {
    transform: translateX(5px);
}

.floating-contact-buttons a i {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.floating-contact-buttons a:hover i {
    transform: scale(1.1);
}

.floating-contact-buttons .telegram {
    color: var(--telegram-color);
}

.floating-contact-buttons .telegram i {
    background-color: rgba(0, 136, 204, 0.15);
}

.floating-contact-buttons .whatsapp {
    color: var(--whatsapp-color);
}

.floating-contact-buttons .whatsapp i {
    background-color: rgba(37, 211, 102, 0.15);
}

.floating-contact-buttons .viber {
    color: var(--viber-color);
}

.floating-contact-buttons .viber i {
    background-color: rgba(115, 96, 242, 0.15);
}

.floating-contact-buttons .phone {
    color: var(--phone-color);
}

.floating-contact-buttons .phone i {
    background-color: rgba(76, 175, 80, 0.15);
}

/* Additional UI improvements */
@media (hover: hover) {
    .icon-button:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    }
    
    .phone-link:hover {
        background: rgba(231, 82, 2, 0.3);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(231, 82, 2, 0.3);
    }
}

/* Improved mobile responsiveness */
@media (max-width: 768px) {
    .floating-contact {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .floating-contact {
        max-width: 280px;
    }
    
    .floating-contact-buttons a {
        padding: 10px 12px;
    }
    
    .floating-contact-buttons a i {
        width: 26px;
        height: 26px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .support-button, .telegram-header-button {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .button-text {
        font-size: 13px;
    }
    
    .call-button {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .contact-circle {
        width: 36px;
        height: 36px;
    }
    
    .support-button {
        padding: 8px 15px;
    }
    
    .telegram-icon-button {
        width: 36px;
        height: 36px;
    }
    
    .telegram-icon-button i {
        font-size: 16px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-effect {
    white-space: normal; /* Allow wrapping */
    border-right: 3px solid var(--orange);
    overflow: visible; /* Fix text visibility */
    width: auto; /* Allow proper width */
    display: inline;
    animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--orange); }
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        gap: 20px;
    }

    .content-box {
        padding: 30px 20px; /* More compact padding */
    }

    h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    p {
        margin-bottom: 12px; /* Reduced spacing between paragraphs */
    }
    
    .advantages {
        margin: 30px 0;
        padding: 15px;
    }
    
    ul {
        margin-bottom: 20px;
    }
    
    li {
        margin-bottom: 10px;
        gap: 8px;
    }
    
    .highlight {
        margin: 20px 0;
        padding: 12px;
    }
    
    .phone-link {
        font-size: 20px;
        padding: 10px 20px;
    }
    
    .icon-button {
        width: 55px;
        height: 55px;
        font-size: 25px;
    }
    
    .typing-effect {
        white-space: normal;
        border-right: none;
        animation: none;
        width: 100%;
        display: block;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .highlight {
        font-size: 20px;
        padding: 12px;
    }
    
    .contact-buttons {
        grid-template-columns: 1fr;
    }
    
    .contact-button {
        width: 100%;
        padding: 12px 15px;
    }
    
    .floating-contact {
        width: 95%;
    }
}

@media (max-width: 480px) {
    header .container {
        padding: 0 15px;
    }
    
    .content-box {
        padding: 25px 15px; /* Even more compact for small screens */
    }
    
    h1 {
        font-size: 24px;
        margin-bottom: 18px;
    }
    
    .advantages {
        margin: 20px 0;
        padding: 12px;
    }
    
    .highlight {
        font-size: 17px;
        padding: 10px;
        margin: 15px 0;
    }
    
    .cta {
        font-size: 17px;
        margin-bottom: 25px;
    }
    
    .contact-section {
        padding: 25px 15px;
    }
    
    .phone-link {
        font-size: 18px;
        padding: 8px 16px;
    }
    
    .icon-button {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .contact-icons {
        gap: 15px;
    }
    
    .telegram-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .telegram-button.large {
        width: 100%;
        padding: 16px 20px;
    }

    h1 {
        font-size: 24px;
    }
    
    .highlight {
        font-size: 18px;
        padding: 10px;
    }
    
    .cta {
        font-size: 18px;
    }
    
    .advantages {
        padding: 15px;
    }
    
    li {
        align-items: flex-start;
    }
    
    .feature-item i {
        margin-top: 3px;
    }
    
    .contact-section {
        padding: 20px 15px;
    }
    
    .contact-button {
        padding: 12px 15px;
        min-width: 0;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .contact-circle {
        width: 36px;
        height: 36px;
    }
}