/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Light Mode */
    --color-primary: hsl(215, 85%, 55%);
    --color-primary-glow: hsl(215, 90%, 65%);
    --color-secondary: hsl(260, 75%, 65%);
    --color-accent: hsl(25, 95%, 60%);
    --color-background: hsl(220, 25%, 97%);
    --color-foreground: hsl(220, 15%, 15%);
    --color-muted: hsl(220, 10%, 45%);
    --color-card: hsl(0, 0%, 100%);
    --color-border: hsl(220, 15%, 90%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(215, 85%, 55%), hsl(260, 75%, 65%));
    --gradient-blue: linear-gradient(135deg, hsl(215, 85%, 55%), hsl(215, 90%, 65%));
    --gradient-purple: linear-gradient(135deg, hsl(260, 75%, 65%), hsl(270, 75%, 70%));
    --gradient-orange: linear-gradient(135deg, hsl(25, 95%, 60%), hsl(35, 95%, 60%));
    --gradient-pink: linear-gradient(135deg, hsl(340, 85%, 65%), hsl(350, 85%, 70%));
    --gradient-hero: linear-gradient(135deg, hsl(210, 100%, 95%), hsl(270, 100%, 95%), hsl(340, 100%, 95%));
    
    /* Shadows */
    --shadow-soft: 0 4px 24px -4px rgba(66, 125, 232, 0.15);
    --shadow-card: 0 2px 12px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--gradient-hero);
    color: var(--color-foreground);
    line-height: 1.6;
    direction: rtl;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-foreground);
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.desktop-only {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-foreground);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    animation: slideDown 0.3s ease-out;
}

.nav-mobile.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--color-foreground);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-primary);
    opacity: 1;
}

.mobile-btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 10rem 0 8rem;
}

.bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse 4s ease-in-out infinite;
}

.bg-circle-1 {
    top: -10rem;
    right: -10rem;
    width: 24rem;
    height: 24rem;
    background: rgba(66, 125, 232, 0.1);
}

.bg-circle-2 {
    top: 15rem;
    left: -10rem;
    width: 20rem;
    height: 20rem;
    background: rgba(147, 112, 219, 0.1);
    animation-delay: 1s;
}

.bg-circle-3 {
    bottom: -10rem;
    right: 33%;
    width: 24rem;
    height: 24rem;
    background: rgba(255, 138, 76, 0.1);
    animation-delay: 2s;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.hero-icon-1 {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--gradient-primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-icon-2 {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background: var(--gradient-orange);
    transform: rotate(12deg);
    font-size: 0.875rem;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.badge-pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: pulse 2s ease-in-out infinite;
}

.hero-badge p {
    color: var(--color-muted);
    font-size: 1.125rem;
    margin: 0;
}

/* Services Section */
.services-section {
    position: relative;
    z-index: 10;
    padding-bottom: 8rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-lg);
}

.card-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover .card-overlay {
    opacity: 0.1;
}

.overlay-blue { background: var(--gradient-blue); }
.overlay-purple { background: var(--gradient-purple); }
.overlay-orange { background: var(--gradient-orange); }
.overlay-pink { background: var(--gradient-pink); }

.card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    opacity: 0;
    filter: blur(15px);
    transition: var(--transition-smooth);
}

.service-card:hover .card-glow {
    opacity: 0.2;
}

.glow-blue { background: var(--gradient-blue); }
.glow-purple { background: var(--gradient-purple); }
.glow-orange { background: var(--gradient-orange); }
.glow-pink { background: var(--gradient-pink); }

.card-content {
    position: relative;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.service-text {
    flex: 1;
    text-align: right;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-title {
    color: var(--color-primary);
}

.service-description {
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0;
}

.service-icon {
    position: relative;
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(6deg);
}

.icon-blue { background: var(--gradient-blue); }
.icon-purple { background: var(--gradient-purple); }
.icon-orange { background: var(--gradient-orange); }
.icon-pink { background: var(--gradient-pink); }

.icon-glow {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    filter: blur(20px);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.service-card:hover .icon-glow {
    opacity: 1;
}

.service-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    position: relative;
    z-index: 10;
}

.card-shine {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover .card-shine {
    opacity: 1;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    position: relative;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, hsl(220, 15%, 95%), hsl(220, 15%, 90%));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.social-glow {
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.social-link:hover .social-glow {
    opacity: 1;
}

.social-link:hover {
    color: white;
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    z-index: 10;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .desktop-only {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 8rem 0 6rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
    }
    
    .hero-badge p {
        font-size: 0.875rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .card-content {
        padding: 1.5rem;
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .service-text {
        text-align: center;
    }
    
    .service-icon {
        width: 4rem;
        height: 4rem;
    }
}
