/* ============================================
   shokrgozaar.ir - Main Stylesheet
   RTL | Glassmorphism | Dark/Light Mode
   ============================================ */

   /* --- Fonts --- */
@font-face {
    font-family: 'IRANSansWeb';
    /* font-style: normal;
    font-weight: 100; */
    src: url('../fonts/IRANSansWeb(FaNum).eot');
    src: url('../fonts/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSansWeb(FaNum).woff2') format('woff2'),
         url('../fonts/IRANSansWeb(FaNum).woff') format('woff'),
         url('../fonts/IRANSansWeb(FaNum).ttf') format('truetype');
}
/* @font-face {
    font-family: 'IRANSansWeb';
    font-style: normal;
    font-weight: 300;
    src: url('../assets/fonts/IRANSansWeb(FaNum).eot');
    src: url('../assets/fonts/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
         url('../assets/fonts/IRANSansWeb(FaNum).woff2') format('woff2'),
         url('../assets/fonts/IRANSansWeb(FaNum).woff') format('woff'),
         url('../assets/fonts/IRANSansWeb(FaNum).ttf') format('truetype');
}
@font-face {
    font-family: 'IRANSansWeb';
    font-style: normal;
    font-weight: 400;
    src: url('../assets/fonts/IRANSansWeb(FaNum).eot');
    src: url('../assets/fonts/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
         url('../assets/fonts/IRANSansWeb(FaNum).woff2') format('woff2'),
         url('../assets/fonts/IRANSansWeb(FaNum).woff') format('woff'),
         url('../assets/fonts/IRANSansWeb(FaNum).ttf') format('truetype');
}
@font-face {
    font-family: 'IRANSansWeb';
    font-style: normal;
    font-weight: 500;
    src: url('../assets/fonts/IRANSansWeb(FaNum).eot');
    src: url('../assets/fonts/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
         url('../assets/fonts/IRANSansWeb(FaNum).woff2') format('woff2'),
         url('../assets/fonts/IRANSansWeb(FaNum).woff') format('woff'),
         url('../assets/fonts/IRANSansWeb(FaNum).ttf') format('truetype');
}
@font-face {
    font-family: 'IRANSansWeb';
    font-style: normal;
    font-weight: 700;
    src: url('../assets/fonts/IRANSansWeb(FaNum).eot');
    src: url('../assets/fonts/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
         url('../assets/fonts/IRANSansWeb(FaNum).woff2') format('woff2'),
         url('../assets/fonts/IRANSansWeb(FaNum).woff') format('woff'),
         url('../assets/fonts/IRANSansWeb(FaNum).ttf') format('truetype');
}
@font-face {
    font-family: 'IRANSansWeb';
    font-style: normal;
    font-weight: 800;
    src: url('../assets/fonts/IRANSansWeb(FaNum).eot');
    src: url('../assets/fonts/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
         url('../assets/fonts/IRANSansWeb(FaNum).woff2') format('woff2'),
         url('../assets/fonts/IRANSansWeb(FaNum).woff') format('woff'),
         url('../assets/fonts/IRANSansWeb(FaNum).ttf') format('truetype');
} */

/* --- CSS Variables --- */
:root {
    --primary: #6C63FF;
    --primary-light: #A89CFF;
    --primary-dark: #4B44CC;
    --secondary: #FF6584;
    --accent: #43E8C8;
    --accent2: #FFB347;

    /* Dark Mode (default) */
    --bg: #0D0F1A;
    --bg2: #12152B;
    --bg3: #1A1F38;
    --surface: rgba(255,255,255,0.04);
    --surface-hover: rgba(255,255,255,0.08);
    --glass: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.10);
    --glass-strong: rgba(255,255,255,0.10);
    --text-primary: #F0F2FF;
    --text-secondary: #9BA3C8;
    --text-muted: #5A6080;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --navbar-bg: rgba(13, 15, 26, 0.85);
    --card-bg: rgba(255,255,255,0.04);
    --input-bg: rgba(255,255,255,0.06);
    --input-border: rgba(255,255,255,0.12);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

[data-theme="light"] {
    --bg: #F0F2FF;
    --bg2: #E8EAFF;
    --bg3: #FFFFFF;
    --surface: rgba(255,255,255,0.7);
    --surface-hover: rgba(255,255,255,0.9);
    --glass: rgba(255,255,255,0.6);
    --glass-border: rgba(108,99,255,0.15);
    --glass-strong: rgba(255,255,255,0.8);
    --text-primary: #1A1F38;
    --text-secondary: #4A5080;
    --text-muted: #8A93C0;
    --shadow: 0 8px 32px rgba(108,99,255,0.12);
    --shadow-lg: 0 20px 60px rgba(108,99,255,0.18);
    --navbar-bg: rgba(240,242,255,0.88);
    --card-bg: rgba(255,255,255,0.7);
    --input-bg: rgba(255,255,255,0.8);
    --input-border: rgba(108,99,255,0.2);
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'IRANSansWeb', Tahoma, Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* Selection */
::selection { background: var(--primary); color: white; }

/* --- Typography --- */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.4; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }

/* --- Layout Helpers --- */
.section-padding { padding: 96px 0; }
.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BACKGROUND MESH
   ============================================ */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.bg-mesh::before,
.bg-mesh::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: meshFloat 12s ease-in-out infinite alternate;
}
.bg-mesh::before {
    width: 600px; height: 600px;
    background: var(--primary);
    top: -100px; right: -100px;
}
.bg-mesh::after {
    width: 500px; height: 500px;
    background: var(--secondary);
    bottom: -100px; left: -100px;
    animation-delay: -6s;
}
.bg-mesh-dot {
    position: absolute;
    width: 400px; height: 400px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.10;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: meshFloat 15s ease-in-out infinite alternate;
    animation-delay: -3s;
}
@keyframes meshFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, -40px) scale(1.1); }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    transition: background var(--transition), border-color var(--transition);
}
.navbar-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
}
@media screen and (max-width: 600px) {
    .navbar-brand {  margin-right: 50px; }
}
.navbar-brand span { color: var(--primary-light); }
/* .logomenu{
    display: flex;
    flex-direction: row-reverse;
}
@media screen and (max-width: 600px) {
    .logomenu{
    display: flex;
    flex-direction: row;
}
} */
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 0.4rem 0.9rem !important;
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary) !important;
    background: var(--surface-hover);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%; right: 50%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-link:hover::after { left: 12px; right: 12px; }

/* Theme Toggle */
.theme-toggle {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 50px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.85rem;
    display: flex; align-items: center; gap: 6px;
}
.theme-toggle:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--primary);
}

/* Mobile Nav */
.navbar-toggler {
    border: 1px solid var(--glass-border);
    background: var(--glass);
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--text-primary);
}
.navbar-toggler-icon {
    filter: invert(1);
}
[data-theme="light"] .navbar-toggler-icon { filter: none; }

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px 0 0;
    margin-top: 70px;
}

.hero-badge {
    display: none;
    align-items: center;
    align-self: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.82rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}
@media (max-width: 600px) {
    .hero-badge {
        display: inline-flex;
        margin-top: 210px;
        /* z-index: -2; */
        margin-right: 10px;
        z-index: 1;
    }
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@media (max-width: 600px) {
    /* .hero-badge { display: none; } */
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}
@media (max-width: 600px) {
    .hero-title { text-align: center; }
}
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 2;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.hero-image{
    border-radius: 20px;
    width: 100%;
}
.hero-image-m-div{
    position: fixed;
    z-index:-2;
    margin: 0;
    padding: 0;
    display: none;
    align-self: flex-start;
    margin-top: -20px;
}
.maindiv{
    display: none;
}
@media (max-width: 500px) { 
    .hero-image-m-div{
        background-image: url('../images/hero_lil.jpg');
        background-attachment: fixed;
        background-size: contain;
        background-position: 0 45px;
        background-repeat: no-repeat;
        display: block;
        width: 100vw;
        height: 300px;
        z-index: -2;
    }
    #hero .container{
        margin-top: 50px;
    }
    #hero{
        margin-top: -100vh;
    }
    .bg-mesh{
        display: none;
    }
.maindiv {
    display: flex;
    height: 100vh;
    background: var(--bg2);
    margin-top: -50px;
    position: sticky;
    top: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    
    /* افکت محو شدن از بالا به پایین - بدون خط */
    mask-image: linear-gradient(to bottom, transparent 0px, black 45px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black 45px);
}

.maindiv::before,
.maindiv::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: meshFloat 12s ease-in-out infinite alternate;
}

.maindiv::before {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.maindiv::after {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -6s;
}

.maindiv-dot {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: meshFloat 15s ease-in-out infinite alternate;
    animation-delay: -3s;
}

@keyframes meshFloat {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(40px, -40px) scale(1.1);
    }
}
}
/* Result Cards */
.hero-result-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 100%;
    margin: auto;
    margin-top: 50px;
}
@media (max-width: 500px) {
    .hero-result-cards { grid-template-columns: repeat(2, 1fr); margin-top: 30px;}
}

.result-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
    animation: floatCard 4s ease-in-out infinite alternate;
}
.result-card:nth-child(2) { animation-delay: -1s; }
.result-card:nth-child(3) { animation-delay: -2s; }
.result-card:nth-child(4) { animation-delay: -3s; }

@keyframes floatCard {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}
.result-card:hover {
    background: var(--glass-strong);
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.02) !important;
    animation-play-state: paused;
    box-shadow: 0 12px 40px rgba(108,99,255,0.2);
}
.result-card-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: white;
}
.result-card-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Hero Visual (right side on desktop) */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.hero-circle {
    width: 420px; height: 420px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary) 0%, var(--accent) 40%, var(--secondary) 70%, var(--primary) 100%);
    opacity: 0.12;
    filter: blur(2px);
    animation: rotateSlow 20s linear infinite;
    position: absolute;
}
@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.hero-graphic {
    position: relative;
    z-index: 1;
    width: 320px; height: 320px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: 8px;
}
.hero-graphic i { font-size: 4rem; color: var(--primary-light); }
.hero-graphic p { font-size: 0.9rem; color: var(--text-secondary); text-align: center; padding: 0 20px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-glass {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(108,99,255,0.35);
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.btn-primary-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108,99,255,0.5);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
}

.btn-outline-glass {
    background: var(--glass);
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.btn-outline-glass:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--primary-light) !important;
}

/* ============================================
   WHY SECTION
   ============================================ */
#why { background: transparent; }

.why-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
    border-radius: 3px 3px 0 0;
}
.why-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    background: var(--surface-hover);
}
.why-card:hover::before { transform: scaleX(1); }

.why-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.6rem;
}
.why-icon-1 { background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(108,99,255,0.05)); color: var(--primary-light); }
.why-icon-2 { background: linear-gradient(135deg, rgba(67,232,200,0.2), rgba(67,232,200,0.05)); color: var(--accent); }
.why-icon-3 { background: linear-gradient(135deg, rgba(255,101,132,0.2), rgba(255,101,132,0.05)); color: var(--secondary); }
.why-icon-4 { background: linear-gradient(135deg, rgba(255,179,71,0.2), rgba(255,179,71,0.05)); color: var(--accent2); }

.why-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.why-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.8; }

/* ============================================
   TIMELINE
   ============================================ */
#process { background: transparent; }

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: 28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
}

.timeline-item {
    position: relative;
    padding-right: 72px;
    padding-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    right: 15px;
    top: 4px;
    width: 28px; height: 28px;
    background: var(--bg);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-light);
    z-index: 1;
    transition: all var(--transition);
}
.timeline-item:hover .timeline-dot {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(108,99,255,0.5);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px 22px;
    backdrop-filter: blur(12px);
    transition: all var(--transition);
}
.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.timeline-step { font-size: 0.75rem; color: var(--primary-light); font-weight: 600; margin-bottom: 4px; }
.timeline-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.timeline-desc { font-size: 0.85rem; color: var(--text-secondary); }

/* ============================================
   PORTFOLIO SLIDER
   ============================================ */
#portfolio { background: transparent; }

.portfolio-slider-container {
    position: relative;
    /* overflow: hidden; */
}
@media (max-width: 900px) {
    .portfolio-slider-container { overflow: hidden; }
}
.portfolio-slider {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding-bottom: 8px;
}

.portfolio-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 24px 60px rgba(108,99,255,0.2);
    color: inherit;
}

.portfolio-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: var(--bg3);
}
.portfolio-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover .portfolio-card-image img { transform: scale(1.05); }

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,15,26,0.8), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 16px;
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.portfolio-card-overlay span {
    color: white;
    font-size: 0.82rem;
    background: var(--primary);
    border-radius: 20px;
    padding: 4px 14px;
}

.portfolio-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.portfolio-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.portfolio-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 12px;
}
.portfolio-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.meta-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.meta-tech {
    background: rgba(108,99,255,0.15);
    color: var(--primary-light);
    border: 1px solid rgba(108,99,255,0.2);
}
.meta-designer {
    background: rgba(67,232,200,0.1);
    color: var(--accent);
    border: 1px solid rgba(67,232,200,0.2);
}

/* Slider Controls */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}
.slider-btn {
    width: 44px; height: 44px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
    font-size: 0.9rem;
    outline: none;
}
.slider-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.slider-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.slider-dots {
    display: flex;
    gap: 6px;
}
.slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    outline: none;
    padding: 0;
}
.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* No image placeholder */
.portfolio-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
}
.portfolio-no-img i { font-size: 3rem; color: var(--text-muted); }

/* ============================================
   PRICING
   ============================================ */
#pricing { background: transparent; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 40px 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.pricing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-xl);
    background: linear-gradient(135deg, rgba(108,99,255,0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.pricing-card:hover::after { opacity: 1; }
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(108,99,255,0.08), var(--card-bg));
}
.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 0 0 4px 4px;
}

.pricing-badge {
    display: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.pricing-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 8px;
}
.pricing-type i { color: var(--primary-light); }
.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}
.pricing-amount span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.pricing-per { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-divider { border: none; border-top: 1px solid var(--glass-border); margin: 1.25rem 0; }

.pricing-features { list-style: none; padding: 0; }
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 6px 0;
}
.pricing-features li i { color: var(--accent); font-size: 0.7rem; flex-shrink: 0; }

.pricing-free-badge {
    background: linear-gradient(135deg, rgba(67,232,200,0.15), rgba(67,232,200,0.05));
    border: 1px solid rgba(67,232,200,0.3);
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}
.pricing-free-badge i { font-size: 1.5rem; color: var(--accent); margin-bottom: 8px; }
.pricing-free-badge p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }
.pricing-free-badge strong { color: var(--accent); }

/* ============================================
   QUESTIONNAIRE FORM
   ============================================ */
#form-section { background: transparent; }

.form-glass {
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 680px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}
@media (max-width: 576px) {
    .form-glass { padding: 32px 20px; }
}

.form-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 8px;
}
.form-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 10px !important;
    color: var(--text-primary) !important;
    font-family: 'IRANSansWeb', Tahoma, sans-serif !important;
    font-size: 0.9rem !important;
    padding: 10px 16px !important;
    transition: all var(--transition) !important;
    direction: rtl;
}
.form-control:focus, .form-select:focus {
    background: var(--surface-hover) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15) !important;
    outline: none !important;
    color: var(--text-primary) !important;
}
.form-control::placeholder { color: var(--text-muted) !important; }
.form-select option { background: var(--bg2); color: var(--text-primary); }

/* Checkboxes & Radios */
.goal-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
@media (max-width: 400px) {
    .goal-checkbox-group { grid-template-columns: 1fr; }
}

.goal-check-item {
    position: relative;
}
.goal-check-item input[type="checkbox"],
.goal-check-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.goal-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.85rem;
    color: var(--text-secondary);
    user-select: none;
}
.goal-check-label .check-box {
    width: 18px; height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 5px;
    flex-shrink: 0;
    transition: all var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.goal-check-item input:checked + .goal-check-label {
    background: rgba(108,99,255,0.1);
    border-color: var(--primary);
    color: var(--text-primary);
}
.goal-check-item input:checked + .goal-check-label .check-box {
    background: var(--primary);
    border-color: var(--primary);
}
.goal-check-item input:checked + .goal-check-label .check-box::after {
    content: '✓';
    font-size: 11px;
    color: white;
    font-weight: 700;
}
.goal-check-label:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
    color: var(--text-primary);
}

.radio-group {
    display: flex;
    gap: 12px;
}
.radio-item { position: relative; flex: 1; }
.radio-item input[type="radio"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.radio-label .radio-dot {
    width: 16px; height: 16px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: all var(--transition);
    flex-shrink: 0;
}
.radio-item input:checked + .radio-label {
    background: rgba(108,99,255,0.1);
    border-color: var(--primary);
    color: var(--text-primary);
}
.radio-item input:checked + .radio-label .radio-dot {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.2);
}

.consent-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
}

/* Submitted state */
.form-submitted {
    text-align: center;
    padding: 24px 0;
}
.success-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(67,232,200,0.2), rgba(67,232,200,0.05));
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin: 0 auto 1.5rem;
    animation: successPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.submitted-data {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 20px;
    text-align: right;
    margin-top: 1.5rem;
}
.submitted-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
}
.submitted-row:last-child { border-bottom: none; }
.submitted-key {
    color: var(--text-secondary);
    font-size: 0.78rem;
    min-width: 80px;
    flex-shrink: 0;
    padding-top: 2px;
}
.submitted-val { color: var(--text-primary); font-weight: 500; }

/* Form toast */
.form-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bg2);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px 24px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 280px;
    justify-content: center;
    font-family: 'IRANSansWeb', Tahoma, sans-serif;
}
.form-toast.show { transform: translateX(-50%) translateY(0); }
.form-toast.success { border-color: var(--accent); color: var(--accent); }
.form-toast.error { border-color: var(--secondary); color: var(--secondary); }

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0 32px;
    text-align: center;
}
.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--primary-light); }
.footer-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-divider { border-color: var(--glass-border); margin: 0.5rem auto; max-width: 200px; }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-up:nth-child(1) { transition-delay: 0.05s; }
.fade-up:nth-child(2) { transition-delay: 0.15s; }
.fade-up:nth-child(3) { transition-delay: 0.25s; }
.fade-up:nth-child(4) { transition-delay: 0.35s; }

/* ============================================
   LOADING OVERLAY
   ============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}
.loader-logo span { color: var(--primary-light); }
.loader-bar {
    width: 120px;
    height: 3px;
    background: var(--glass-border);
    border-radius: 3px;
    overflow: hidden;
}
.loader-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    animation: loaderAnim 1.2s ease forwards;
}
@keyframes loaderAnim {
    from { width: 0; }
    to   { width: 100%; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .portfolio-card { flex: 0 0 calc(50% - 12px); }
    .hero-result-cards { max-width: 340px; }
    .form-glass { padding: 32px 24px; }
    .timeline::before { right: 20px; }
    .timeline-item { padding-right: 56px; }
    .timeline-dot { right: 7px; }
}

@media (max-width: 767px) {
    .section-padding { padding: 72px 0; }
    .portfolio-card { flex: 0 0 calc(100% - 0px); min-width: 260px; }
    .hero-visual { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .goal-checkbox-group { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero-result-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .hero-cta-group { flex-direction: column; }
    .hero-cta-group .btn-primary-glass,
    .hero-cta-group .btn-outline-glass { width: 100%; justify-content: center; }
}