/* Mobile-first base styles */
:root {
    --padding-mobile: 1rem;
    --font-size-mobile: 14px;
    --card-width-mobile: 90%;
}

body {
    font-size: var(--font-size-mobile);
    line-height: 1.5;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #fff;
    position: relative;
}

/* Base viewport fixes */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none; /* Initially hidden */
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: 0;
    top: 0;
    left: 0;
}
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 2rem;
    background-color: rgba(0, 0, 0, 0.8);
}

.nav-logo {
    height: 40px;
    width: auto;
    margin-right: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
}

.nav-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: column;
    padding: var(--padding-mobile);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

h1 {
    color: #fff;
    text-align: center;
    margin-top: 20px;
}

.catalog-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    flex-direction: column;
    padding: var(--padding-mobile);
}

.catalog-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.catalog-button {
    padding: 0.8rem 1.2rem;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    padding: 1rem;
    margin: 0.2rem 0;
    text-align: center;
}

.catalog-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.catalog-button.active {
    background: var(--accent-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
}

.product {
    background-color: #fff;
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product img {
    max-width: 100%;
    height: auto;
}

.product p {
    margin: 10px 0 0;
    color: #333;
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px; 
}

.product-description {
    margin: 10px 0 0;
    color: #333;
}

.about-content {
    color: #ff0000;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-content p {
    margin: 15px 0;
    color: #333;
    line-height: 1.6;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    text-align: center;
    z-index: 1000;
}

footer p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-close:hover {
    opacity: 1;
}

.social-media {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-media a {
    margin: 0 10px;
    display: inline-block;
}

.social-media img {
    height: 20px;
    width: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

social-media img:hover {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.5rem;
    }

    .social-media {
        margin-top: 0.5rem;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: linear-gradient(145deg, rgba(30,30,30,0.9), rgba(20,20,20,0.9));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.product-card h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #fff;
    text-align: center;
}

.product-card .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff3366;
    margin: 0.5rem 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.product-card:hover img {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card img {
    width: 100%;
    height: 250px; /* Increased height */
    object-fit: contain; /* Changed from cover to contain */
    background: rgba(0, 0, 0, 0.2); /* Optional: adds subtle background */
    border-radius: 4px;
    padding: 0.5rem;
    box-sizing: border-box;
}

.product-card:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
}

.product-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #1a1a1a;
    color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.modal-content p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.info-btn {
    margin: 0.5rem;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    transition: all 0.3s ease;
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.order-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

.order-btn {
    display: inline-block;
    width: auto;
    min-width: 120px;
    max-width: 200px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    border: none;
    margin: 0;
    box-shadow: none;
    transition: transform 0.2s;
}

.order-btn:hover {
    transform: translateY(-2px);
}

/* Remove animation and extra styling */
.order-btn {
    animation: none;
}

/* Container fixes */
.order-btn {
    display: block;
    width: 80%;
    max-width: 300px;
    padding: 1rem;
    margin: 1rem auto;
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.order-btn:hover {
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .order-btn {
        width: auto;
        min-width: 200px;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 51, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 51, 102, 0);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.service-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.service-short {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.service-card .order-btn {
    margin-top: auto;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    padding-bottom: 60px; /* Space for footer */
    min-height: calc(100vh - 200px);
    padding-bottom: 80px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #fff;
    margin: 2rem auto;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: var(--padding-mobile);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.promo-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
    max-width: 95vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-card:hover {
    transform: translateY(-5px);
}

.price-container {
    margin: 1.5rem 0;
}

.original-price {
    text-decoration: line-through;
    color: #666;
    margin-right: 1rem;
}

.discounted-price {
    color: #ff3366;
    font-size: 1.5rem;
    font-weight: bold;
}

.includes-list {
    text-align: left;
    margin: 1.5rem 0;
}

.includes-list ul {
    list-style: none;
    padding: 0;
}

.includes-list li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.includes-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff3366;
}

/* Tablet breakpoint */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 2rem;
    }
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
    .nav-container {
        flex-direction: row;
    }

    .nav-links {
        flex-direction: row;
    }

    .catalog-bar {
        flex-direction: row;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-card {
        width: auto;
    }
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.nav-links a {
    width: 90%;
    max-width: 300px;
    padding: 0.8rem;
    text-align: center;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0.2rem 0;
}

.catalog-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 0.5rem;
    box-sizing: border-box;
}

.catalog-button {
    width: 90%;
    max-width: 300px;
    padding: 0.8rem;
    text-align: center;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 0.2rem 0;
}

.order-btn {
    width: 90%;
    max-width: 300px;
    padding: 1rem;
    text-align: center;
    margin: 1rem auto;
    display: block;
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.order-btn:hover {
    transform: translateY(-2px);
}

.emergency-notice {
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
    padding: 1.5rem;
    margin: 1rem auto;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.emergency-notice h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.emergency-notice p {
    color: white;
    line-height: 1.6;
    margin: 0;
}

.discount-banner {
    background: linear-gradient(45deg, #ff8800, #ff6600);
    padding: 1.5rem;
    margin: 1rem auto;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: glow 2s infinite;
}

.discount-banner p {
    color: white;
    line-height: 1.6;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.discount-highlight {
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255,136,0,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,136,0,0.8); }
    100% { box-shadow: 0 0 5px rgba(255,136,0,0.5); }
}

@media (min-width: 768px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-links {
        flex-direction: row;
        justify-content: flex-end;
        width: auto;
    }

    .nav-links a {
        width: auto;
    }

    .catalog-bar {
        flex-direction: row;
        justify-content: center;
    }

    .catalog-button {
        width: auto;
    }

    .order-btn {
        width: auto;
        min-width: 200px;
    }
}

.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.contact-modal .modal-content {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-btn {
    padding: 1.2rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.telegram-btn {
    background: linear-gradient(45deg, #0088cc, #00a2ff);
}

.chat-btn {
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.contact-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    transition: transform 0.3s ease;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 400px;
    margin: 3rem auto;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-5px);
}

.contact-button.telegram {
    background: linear-gradient(45deg, #0088cc, #00a2ff);
}

.contact-button.email {
    background: linear-gradient(45deg, #ff3366, #ff6b6b);
}

.contact-button.chat {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.contact-button i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .contact-methods {
        padding: 0 1rem;
    }
    
    .contact-button {
        padding: 1.2rem;
        font-size: 1rem;
    }
}

.featured-product {
    margin: 3rem auto;
    max-width: 400px;
    text-align: center;
}

.featured-product h2 {
    color: #ff3366;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255,51,102,0.3);
}

.product-card.featured {
    transform: scale(1.05);
    border: 2px solid #ff3366;
}

.product-card.featured:hover {
    transform: scale(1.08);
}

.product-desc {
    color: #e0e0e0;
    margin: 1rem 0;
    line-height: 1.4;
}

.product-details {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    margin: 1rem 0;
}

.product-details h4 {
    color: #ff3366;
    margin: 0.5rem 0;
}

.shipping-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shipping-info h3 {
    color: #ff3366;
    margin-bottom: 1rem;
}

.highlight {
    color: #ff3366;
    font-weight: bold;
}