:root {
    --yellow: #FFD700;
    --white: #fff;
    --light-blue: #87CEEB;
    --gray: #333;
    --light-gray: #f9f9f9;
    --border-color: #ddd;
    --red: #FF0000;
    --star-color: #FFD700;
    --gradient-start: #FFD700;
    --gradient-end: #FFA500;
}

body {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--gray);
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid var(--yellow);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left .telegram-btn {
    background-color: var(--light-blue);
    border: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-left .telegram-btn:hover {
    background-color: #63b8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.header-logo h1 {
    margin: 0;
    font-size: 2em;
    color: var(--yellow);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

.header-right {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8em;
    color: var(--yellow);
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #FFC700;
}

#nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

#nav-menu li {
    margin-left: 25px;
}

#nav-menu a {
    text-decoration: none;
    color: var(--gray);
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

#nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--yellow);
    transition: width 0.3s ease;
}

#nav-menu a:hover::after {
    width: 100%;
}

#nav-menu a:hover {
    color: var(--yellow);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--border-color);
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        animation: slideIn 0.3s ease;
    }
    #nav-menu.active {
        display: flex;
    }
    #nav-menu li {
        margin: 15px 0;
    }
}

section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

section.in-view {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    color: var(--gray);
    border-bottom: 3px solid var(--yellow);
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

#hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    text-align: center;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.callofduty.com/content/dam/atvi/callofduty/cod-touchui/mw2/home/hero-desktop.jpg') no-repeat center center/cover;
    opacity: 0.3;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.6em;
    margin-bottom: 40px;
    animation: pulse 2s infinite;
}

.hero-btn {
    background: linear-gradient(45deg, var(--yellow), #FFC107);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.hero-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

#features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    animation: float 3s infinite ease-in-out;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.feature-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.feature-item i {
    font-size: 3.5em;
    color: var(--yellow);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: rotate(360deg);
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
}

.ordering-container {
    text-align: center;
}

.packs-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 20px 0;
}

.pack-group {
    margin-bottom: 20px;
}

.pack-group h3 {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 2em;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

.pack-group .pack-boxes {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pack-group .pack-boxes .pack-box {
    flex: 0 0 250px;
    width: 250px;
    box-sizing: border-box;
}

.pack-box {
    width: 300px;
    border: 2px solid var(--border-color);
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pack-box:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transform: translateY(-5px);
}

.pack-box.selected {
    border-color: var(--yellow);
    box-shadow: 0 0 20px var(--yellow);
}

.pack-box img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.pack-box:hover img {
    transform: scale(1.1);
}

.pack-box h4 {
    margin: 10px 0;
    color: var(--gray);
    font-size: 1.2em;
    flex-grow: 1;
}

.pack-box .prices {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.pack-box .real-price {
    text-decoration: line-through;
    color: #999;
    margin: 0;
}

.pack-box .discount-price {
    color: var(--red);
    font-weight: bold;
    font-size: 1.2em;
    margin: 0;
}

.pack-box .buy-btn {
    background: linear-gradient(45deg, var(--yellow), #FFC107);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    font-size: 1.2em;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-box .buy-btn i, .pack-box .buy-btn svg {
    font-size: 1.4em;
}

.pack-box .buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

#order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pack-note {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#order-form input, #order-form select, #order-form button {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

#order-form input:focus, #order-form select:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#order-form button {
    background: linear-gradient(45deg, var(--yellow), #FFC107);
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

#order-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.modal-content input {
    text-align: center;
    direction: rtl;
}

.modal-content input::placeholder {
    text-align: center;
}

@media (max-width: 1000px) {
    .pack-group .pack-boxes {
        justify-content: center;
    }
    .pack-box {
        width: 250px;
    }
    .pack-box img {
        width: 150px;
        height: 150px;
    }
}

#testimonials {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
}

.testimonial-item {
    background: linear-gradient(135deg, var(--white), var(--light-gray));
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.4s ease;
    animation: bounceIn 0.8s ease-out;
}

.testimonial-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.stars {
    color: var(--star-color);
    margin-bottom: 15px;
}

.stars i {
    margin: 0 3px;
    animation: twinkle 1.5s infinite alternate;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1em;
}

#faq-accordion .accordion-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-question {
    cursor: pointer;
    padding: 20px;
    background: linear-gradient(90deg, var(--light-gray), var(--white));
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.accordion-question.active::after {
    transform: rotate(180deg);
}

.accordion-question:hover {
    background: linear-gradient(90deg, #e0e0e0, #ffffff);
}

.accordion-answer {
    display: none;
    padding: 20px;
    background: var(--white);
    animation: slideDown 0.3s ease-out;
}

#contact {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-btn {
    background: linear-gradient(45deg, var(--light-blue), #63b8ff);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.4);
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.6);
}

footer {
    background: linear-gradient(135deg, var(--gray), #444);
    color: var(--white);
    padding: 50px 20px 30px;
    text-align: center;
    border-top: 3px solid var(--yellow);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 15px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin: 10px 0;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--yellow);
}

.footer-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.circle-img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--yellow);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.circle-img:hover {
    transform: scale(1.2) rotate(5deg);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 0.9em;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, var(--white), var(--light-gray));
    padding: 40px;
    border-radius: 15px;
    position: relative;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: all 0.3s ease;
    animation: popIn 0.3s ease-out forwards;
}

.modal-content.show {
    transform: scale(1);
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 1.8em;
    color: var(--gray);
    transition: all 0.3s ease;
}

.close:hover {
    color: var(--red);
    transform: rotate(90deg);
}

.modal-content h3 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8em;
    color: var(--gray);
}

.modal-content input,
.modal-content select,
.modal-content button {
    width: 100%;
    margin: 15px 0;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.modal-content input:focus,
.modal-content select:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.modal-content button {
    background: linear-gradient(45deg, var(--yellow), #FFC107);
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.modal-content button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

#order-details {
    margin-top: 15px;
    color: #555;
    text-align: center;
    font-size: 1.1em;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, var(--yellow), #FFC107);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    z-index: 1000;
}

#back-to-top.show {
    opacity: 1;
}

#back-to-top:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes twinkle {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideDown {
    from { max-height: 0; opacity: 0; }
    to { max-height: 200px; opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content .input-group {
    display: flex;
    gap: 10px;
}

@media (max-width: 768px) {
    .modal-content .input-group {
        flex-direction: column;
        gap: 0px;
    }
}

#confirm-btn {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    font-weight: bold;
}

#c2c-confirmation-modal .modal-content {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

#c2c-confirmation-modal .modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    animation: rotateGradient 10s infinite linear;
}

#c2c-confirmation-modal .modal-content > * {
    position: relative;
    z-index: 1;
}

#c2c-confirmation-modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8em;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

#c2c-confirmation-modal .close:hover {
    color: #ff4444;
}

#c2c-confirmation-modal .order-id {
    color: #2ecc71; /* Green for order ID */
    font-weight: bold;
}

#c2c-confirmation-modal .order-status {
    color: #e74c3c; /* Red for order status */
    font-weight: bold;
}

#c2c-confirmation-modal .card-number,
#c2c-confirmation-modal .card-name {
    font-size: 1.1em;
    color: #333;
    font-weight: 500;
}

#c2c-confirmation-modal .contact-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

#c2c-confirmation-modal .contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.6);
}

#c2c-confirmation-modal #c2c-close-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

#c2c-confirmation-modal #c2c-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.6);
}

#c2c-confirmation-modal .order-amount {
    color: #27ae60; /* A vibrant green for the amount */
    font-weight: bold;
    font-size: 1.2em;
}

@keyframes slideIn {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
