/* Base Styles */
/* Prevent horizontal scroll globally */
html, body {
    overflow-x: hidden;
}

.brand-title {
    position: relative;
    font-size: clamp(1rem, 2.5vw, 1.55rem);
    margin: 0;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, #1fa5fd, #0dcaf0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.brand-link {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.main-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(31, 165, 253, 0.1);
    width: 100%;
    max-width: 100vw;
}

/* Top Bar Styles */
.top-bar {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-bar__actions {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
}

.contact-link {
    color: #c1d1e9;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-link:hover {
    color: #1fa5fd;
    background: rgba(31, 165, 253, 0.1);
}

/* Navigation Wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 100%;
}

.nav-brand {
    display: inline-block;
    perspective: 1000px;
}

.nav-brand img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-brand:hover img {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: clamp(16px, 3vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: #c1d1e9;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #1fa5fd;
    background: rgba(31, 165, 253, 0.1);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* Store Button Highlighting */
.nav-link--store {
    background: linear-gradient(135deg, rgba(31, 165, 253, 0.15), rgba(13, 202, 240, 0.15));
    border: 1px solid rgba(31, 165, 253, 0.3);
    color: #fff;
    font-weight: 500;
    position: relative;
    animation: storeGlow 3s ease-in-out infinite alternate;
}

@keyframes storeGlow {
    0% {
        box-shadow: 0 0 10px rgba(31, 165, 253, 0.3),
                    0 0 20px rgba(31, 165, 253, 0.1);
    }
    100% {
        box-shadow: 0 0 15px rgba(31, 165, 253, 0.5),
                    0 0 30px rgba(31, 165, 253, 0.2),
                    0 0 40px rgba(13, 202, 240, 0.1);
    }
}

.nav-link--store:hover {
    background: linear-gradient(135deg, rgba(31, 165, 253, 0.25), rgba(13, 202, 240, 0.25));
    border-color: rgba(31, 165, 253, 0.5);
    transform: translateY(-3px);
    animation: none;
    box-shadow: 0 5px 20px rgba(31, 165, 253, 0.4),
                0 0 25px rgba(31, 165, 253, 0.3);
}

.nav-link--store i {
    color: #1fa5fd;
    filter: drop-shadow(0 0 4px rgba(31, 165, 253, 0.3));
}

.nav-link--store:hover i {
    transform: scale(1.2);
    color: #0dcaf0;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    margin-right: 10px;
}

.hamburger {
    display: block;
    width: 30px;
    height: 5px;
    background: #c1d1e9;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 5px;
    background: #c1d1e9;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.mobile-contacts {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(31, 165, 253, 0.1);
    display: none;
}

.mobile-contacts__title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.mobile-contacts__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(31, 165, 253, 0.05);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-contact-item:hover {
    background: rgba(31, 165, 253, 0.1);
    transform: translateX(4px);
}

.mobile-contact-item i {
    font-size: 1.2rem;
    color: #1fa5fd;
    width: 24px;
    text-align: center;
}

.toggle-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-contact-info .label {
    font-size: 0.8rem;
    color: #8b9bb4;
}

.toggle-contact-info .value {
    font-size: 0.95rem;
    color: #fff;
}

.mobile-order-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(90deg, #1fa5fd 0%, #0dcaf0 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 165, 253, 0.3);
}

.mobile-order-btn i {
    transition: transform 0.3s ease;
}

.mobile-order-btn:hover i {
    transform: translateX(4px);
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(31, 165, 253, 0.1);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1fa5fd;
}

.menu-close i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.menu-close:hover {
    background: rgba(31, 165, 253, 0.2);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nav-brand svg {
    width: 100px;
    height: auto;
    color: #c1d1e9;
    filter: drop-shadow(0 0 8px rgba(31, 165, 253, 0.3));
}

.nav-brand svg .st0 {
    transform-origin: center;
    animation: glowTriangle 3s infinite ease-in-out;
}

.nav-brand svg path:not(.st0),
.nav-brand svg polygon:not(.st0),
.nav-brand svg rect:not(.st0) {
    fill: currentColor;
    transition: fill 0.3s ease;
}

.nav-brand:hover svg path:not(.st0),
.nav-brand:hover svg polygon:not(.st0),
.nav-brand:hover svg rect:not(.st0) {
    fill: #1fa5fd;
}

.nav-brand:hover svg {
    filter: drop-shadow(0 0 15px rgba(31, 165, 253, 0.6));
}

@keyframes glowTriangle {
    0% {
        stroke: rgba(31, 165, 253, 0.4);
        stroke-width: 0.1963;
    }
    50% {
        stroke: rgba(31, 165, 253, 1);
        stroke-width: 0.5;
        filter: drop-shadow(0 0 5px #1fa5fd);
    }
    100% {
        stroke: rgba(31, 165, 253, 0.4);
        stroke-width: 0.1963;
    }
}

.nav-brand svg {
    animation: logoReveal 1.2s ease-out;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Styles */
body.no-scroll {
    overflow: hidden;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(90deg, #1fa5fd 0%, #0dcaf0 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 165, 253, 0.3);
}

.order-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1200px) {
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 12px;
    }
    
    .nav-link i {
        font-size: 1.2rem;
    }
    
    .nav-link--store {
        padding: 15px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-link--store i {
        font-size: 1.4rem;
    }
}

@media (max-width: 991px) {
    .desktop-only {
        display: none;
    }
    
    .nav-link--store {
        padding: 15px;
        border-radius: 0;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, rgba(9, 16, 26, 0.98) 0%, rgba(9, 16, 72, 0.98) 100%);
        padding: 80px 24px 24px;
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-list {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-link {
        padding: 16px;
        border-radius: 12px;
        background: rgba(31, 165, 253, 0.05);
        transform: translateX(30px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active .nav-link {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-menu.active .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .nav-menu.active .nav-link:nth-child(2) {
        transition-delay: 0.15s;
    }
    
    .nav-menu.active .nav-link:nth-child(3) {
        transition-delay: 0.2s;
    }
    
    .nav-menu.active .nav-link:nth-child(4) {
        transition-delay: 0.25s;
    }
    
    .nav-menu.active .nav-link:nth-child(5) {
        transition-delay: 0.3s;
    }
    
    .nav-link--store {
        background: linear-gradient(135deg, rgba(31, 165, 253, 0.2), rgba(13, 202, 240, 0.2));
        border: 1px solid rgba(31, 165, 253, 0.4);
        animation: storeMobileGlow 3s ease-in-out infinite alternate;
    }
    
    @keyframes storeMobileGlow {
        0% {
            box-shadow: 0 0 15px rgba(31, 165, 253, 0.3);
        }
        100% {
            box-shadow: 0 0 25px rgba(31, 165, 253, 0.5),
                        0 0 35px rgba(13, 202, 240, 0.2);
        }
    }
    
    .nav-link--store:hover {
        animation: none;
        box-shadow: 0 0 30px rgba(31, 165, 253, 0.6);
    }
    
    .nav-link span {
        display: inline-block;
    }
    
    .nav-menu.active .menu-close {
        display: flex;
        animation: fadeInRotate 0.5s ease;
        animation-delay: 0.2s;
        animation-fill-mode: both;
    }
    
    @keyframes fadeInRotate {
        from {
            opacity: 0;
            transform: scale(0.8) rotate(-90deg);
        }
        to {
            opacity: 1;
            transform: scale(1) rotate(0deg);
        }
    }
    
    .mobile-contacts {
        margin-top: 32px;
        padding-top: 24px;
        display: block;
        border-top: 1px solid rgba(31, 165, 253, 0.1);
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s ease;
    }
    
    .nav-menu.active .mobile-contacts {
        transform: translateY(0);
        opacity: 1;
        transition-delay: 0.4s;
    }
}

@media (max-width: 768px) {
    .nav-brand svg {
        width: 60px;
    }
}

@media (max-width: 576px) {
    .top-bar {
        padding: 8px 0;
    }
    
    .brand-title {
        font-size: 0.9rem;
    }
    
    .contact-link {
        padding: 6px;
    }
    
    .nav-brand img {
        height: 32px;
    }
}