:root {
    --color-bg: #0f0f0f;
    --color-text: #f0f0f0;
    --color-primary: #e50914;
    /* Netflix-like Red */
    --color-primary-dark: #b20710;
    --color-accent: #1e1e1e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-heading: 'Vazir', sans-serif;
    --font-body: 'Vazir', sans-serif;
    --radius-lg: 20px;
    --radius-md: 12px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(229, 9, 20, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

/* Header */
header {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

nav ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    /* RTL */
    background: var(--color-primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--color-primary);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 2rem;
    background: radial-gradient(circle at center, rgba(30, 30, 30, 1) 0%, rgba(15, 15, 15, 1) 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.4rem;
    color: #aaa;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    position: relative;
    z-index: 1;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* Sections */
.content-section {
    padding: 6rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--color-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-accent);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    background: #252525;
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* Portfolio & Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-accent);
    transition: 0.3s;
}

.portfolio-card:hover {
    transform: scale(1.02);
}

.portfolio-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.portfolio-card h3,
.portfolio-card p {
    padding: 0 1.5rem;
}

.portfolio-card h3 {
    margin-top: 1rem;
    color: #fff;
}

.portfolio-card p {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}


/* Pricing */
.pricing-card {
    background: var(--color-accent);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    background: linear-gradient(145deg, #1e1e1e, #151515);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.price {
    font-size: 2rem;
    color: var(--color-primary);
    margin: 1rem 0;
    font-weight: 800;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: right;
    color: #ccc;
}

.pricing-card li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.quote-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-md);
    position: relative;
    border-left: 4px solid var(--color-primary);
}

.quote-card p {
    font-style: italic;
    color: #ddd;
}

.quote-card span {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--color-primary);
}

/* Footer */
footer {
    background: #000;
    color: #777;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid #222;
}

footer a {
    color: #f0f0f0;
    transition: 0.3s;
}

footer a:hover {
    color: var(--color-primary);
}


/* Chatbot Widget */
#chatbot-widget button {
    background: var(--color-primary);
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}

#chatbot-widget button:hover {
    transform: scale(1.1);
}

#chat-window {
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: #1a1a1a;
    color: white;
}

#chat-messages {
    background: #121212;
}

#chatInput {
    background: #2a2a2a;
    color: white;
    border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 15px;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}