/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
}

:root {
    --primary-color: #2A265F;
    --secondary-color: #4CAF50;
    --accent-color: #FF5722;
    --text-color: #333;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    font-family: 'Vazir', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2A265F 0%, #1a1845 100%);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.header.scrolled {
    padding: 0.5rem 1rem;
    background: rgba(42, 38, 95, 0.95);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.logo span {
    color: var(--secondary-color);
}

/* منوی همبرگر برای موبایل */
.hamburger {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    transition: color 0.3s;
    position: relative;
    font-weight: 500;
}

.nav-links li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links li a:hover:after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://milancc.click/img/cccam1.png?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s;
    font-weight: bold;
}

.cta-btn:hover {
    background-color: #45a049;
}

/* Features Section */
.features {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-top: 4px solid transparent;
}

.feature-card:hover {
    border-top-color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
    padding: 4rem 1rem;
    background-color: #f5f5f5;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.pricing p {
   text-align: center;
   margin-bottom: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.price-card b {
    font-size: 22px;
    color: red;
    display: block;
    margin-bottom: 1rem;
}

.price-card.popular {
    border: 2px solid var(--secondary-color);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.price {
    margin: 1.5rem 0;
    font-size: 2rem;
    color: var(--primary-color);
}

.price span:first-child {
    font-weight: bold;
}

/* لیست ویژگی‌ها در کارت قیمت */
.price-card ul {
    list-style-type: none;
    padding-right: 0;
    margin-right: 0;
    text-align: right;
    margin: 1.5rem 0;
}

.price-card ul li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    list-style-type: none;
}

.price-card ul li:last-child {
    border-bottom: none;
}

.price-card ul li:before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #8A2BE2;
    font-weight: bold;
    font-size: 16px;
}

.order {
    background: var(--secondary-color);
    color: #fff;
    display: block;
    text-align: center;
    padding: 12px 0;
    margin-top: 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.order:hover {
    background-color: #3d8b40;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* بخش پست */
.post {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: justify;
}

.post a {
    text-decoration: none;
    color: var(--primary-color);
}

.post a:hover {
    color: var(--secondary-color);
}

img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* واتساپ شناور */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
}

.whatsapp-icon {
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    animation: pulse 2s infinite;
    position: relative;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.whatsapp-popup {
    position: absolute;
    bottom: 70px;
    left: 0;
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    text-align: center;
    z-index: 1001;
}

.whatsapp-popup:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.whatsapp-popup p {
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.whatsapp-btn {
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    font-size: 14px;
    display: block;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffc107;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

/* آیکون‌های شبکه‌های اجتماعی در فوتر */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    transition: all 0.3s;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    font-size: 20px;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: #ff0000 !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* منوی موبایل */
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--primary-color);
        display: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 10px 10px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        padding: 1rem;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* واتساپ در موبایل */
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
    
    .whatsapp-popup {
        width: 220px;
        bottom: 65px;
        left: 0;
    }
    
    .whatsapp-popup:after {
        left: 15px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .whatsapp-popup {
        width: 200px;
        bottom: 60px;
    }
}