/* ==========================================================================
   1. Root Variables & Reset
   ========================================================================== */
:root {
    --bg-color: #fdf5f7;
    --primary-text: #1a1a2e;
    --highlight-color: #ff007a;
    --border-active: #ffc107;
    --grad-primary: linear-gradient(135deg, #ff007a, #7a00ff);
}

* {
    font-family: Estedad-FD, system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-text);
    overflow-x: hidden;
}

/* ==========================================================================
   2. Base Utility & Section Styles
   ========================================================================== */
.section-title { text-align: center; margin: 80px 0 40px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 900; }
.section-title span { color: var(--highlight-color); }
.section-title p { color: #777; font-size: 1.1rem; }

.saitima-features-section { perspective: 1500px; padding: 60px 0; }
.saitima-how-section { margin-top: 120px; perspective: 1500px; }
.saitima-pricing-section { margin-top: 120px; padding-bottom: 60px; perspective: 2000px; }
.saitima-hover-steps-section { margin-top: 100px; }
.saitima-faq-section { margin-top: 100px; }
.saitima-cta-section { margin: 100px auto; max-width: 900px; padding: 60px 20px; text-align: center; background: linear-gradient(135deg, rgba(255,0,122,0.05), rgba(122,0,255,0.05)); border-radius: 30px; }
.saitima-cta-section h2 { font-size: 2.5rem; margin-bottom: 20px; }
.saitima-cta-section p { font-size: 1.2rem; color: #555; margin-bottom: 40px; }
.saitima-cta-section .btn-primary { padding: 20px 60px; font-size: 1.0rem; border-radius: 50px; background: var(--highlight-color); color: white; border: none; cursor: pointer; }

/* 3D Glass Panel Base */
.glass-panel-3d {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* ==========================================================================
   3. Hero Section (روشن و شیشه‌ای سه‌بعدی)
   ========================================================================== */
.s1-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 4% 70px;
    background: linear-gradient(160deg, #fdf5f7 0%, #f7effb 50%, #f0f2fe 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* لایه پس‌زمینه عمق‌دار */
.s1-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.s1-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; }
.s1-blob-1 { width: 420px; height: 420px; top: -80px; right: -60px; background: radial-gradient(circle, #ff86bd, transparent 70%); animation: s1Blob 16s ease-in-out infinite; }
.s1-blob-2 { width: 380px; height: 380px; bottom: -100px; left: -60px; background: radial-gradient(circle, #a98bff, transparent 70%); animation: s1Blob 20s ease-in-out infinite reverse; }
.s1-blob-3 { width: 300px; height: 300px; top: 40%; left: 40%; background: radial-gradient(circle, #7ad0ff, transparent 70%); opacity: 0.35; animation: s1Blob 18s ease-in-out infinite; }
@keyframes s1Blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -30px) scale(1.12); }
}
.s1-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(122,0,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122,0,255,0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 75%);
}

.s1-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
    text-align: right;
}

/* متن سمت راست */
.s1-text { flex: 1 1 48%; min-width: 300px; max-width: 620px; }
.s1-badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border-radius: 50px; background: rgba(255,255,255,0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 10px 25px rgba(122,0,255,0.10); font-size: 0.9rem; font-weight: 600; color: #1a1a2e; margin-bottom: 24px; }
.s1-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #00c853; box-shadow: 0 0 8px rgba(0,200,83,0.6); flex-shrink: 0; }
.s1-title { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 900; line-height: 1.35; color: #1a1a2e; margin-bottom: 18px; }
.s1-title .highlight-pink,
.s1-title .text-gradient { background: linear-gradient(45deg, #ff007a, #7a00ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.s1-subtitle { font-size: 1.05rem; color: #555; line-height: 1.9; margin-bottom: 30px; max-width: 90%; }

.s1-cta { display: flex; padding: 8px; border-radius: 60px; margin-bottom: 34px; background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 12px 30px rgba(122,0,255,0.10); max-width: 480px; }
.s1-input { flex: 1; border: none; background: transparent; padding: 0 20px; font-size: 1rem; outline: none; color: #333; direction: rtl; }
.s1-btn { padding: 14px 32px; border-radius: 50px; white-space: nowrap; background: var(--grad-primary); color: #fff; border: none; font-weight: bold; cursor: pointer; text-decoration: none; display: inline-block; box-shadow: 0 10px 22px rgba(255,0,122,0.30); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.s1-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(255,0,122,0.42); }

.s1-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.s1-stat strong { display: block; font-size: 1.7rem; color: #1a1a2e; font-weight: 900; }
.s1-stat span { font-size: 0.85rem; color: #666; }
.s1-stat-divider { width: 1px; height: 36px; background: rgba(0,0,0,0.1); }

/* صحنه سه‌بعدی سمت چپ */
.s1-visual { flex: 1 1 42%; min-width: 280px; display: flex; justify-content: center; position: relative; perspective: 1200px; }
.s1-stage { position: relative; width: 100%; max-width: 420px; transform-style: preserve-3d; transition: transform 0.2s ease-out; }
.s1-glow { position: absolute; inset: -12% -12% -20% -12%; background: radial-gradient(ellipse at 50% 55%, rgba(255,0,122,0.22), rgba(122,0,255,0.14) 45%, transparent 72%); filter: blur(30px); z-index: 0; }

.s1-card { position: relative; z-index: 2; width: 100%; border-radius: 20px; overflow: hidden; background: #14121f; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 30px 60px rgba(20,10,40,0.28); transform: translateZ(40px); }
.s1-card-topbar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #1c1a2b; }
.s1-dot { width: 10px; height: 10px; border-radius: 50%; }
.s1-dot-red { background: #ff5f56; } .s1-dot-yellow { background: #ffbd2e; } .s1-dot-green { background: #27c93f; }
.s1-card-filename { margin-right: auto; color: #8a86b8; font-size: 0.72rem; direction: ltr; }
.s1-card-body { padding: 20px 16px; font-family: 'Courier New', monospace; font-size: 0.85rem; line-height: 2; direction: ltr; text-align: left; }
.s1-c-tag { color: #ff5fa2; } .s1-c-attr { color: #c792ea; } .s1-c-str { color: #c3e88d; }
.s1-c-key { color: #ffcb6b; } .s1-c-fn { color: #82aaff; } .s1-c-num { color: #f78c6c; }

/* چیپ‌های شیشه‌ای شناور */
.s1-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 18px 35px rgba(80,0,120,0.14); font-weight: 700; font-size: 0.9rem; color: #1a1a2e; white-space: nowrap; }
.s1-chip-top { top: 8%; right: -8%; transform: translateZ(80px); animation: s1Float 5s ease-in-out infinite; }
.s1-chip-bottom { bottom: 10%; left: -6%; transform: translateZ(70px); animation: s1Float 6s ease-in-out infinite reverse; }
.s1-chip-ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--grad-primary); color: #fff; font-weight: 900; }
.s1-chip-txt strong { display: block; font-size: 0.92rem; line-height: 1.2; }
.s1-chip-txt span { font-size: 0.68rem; color: #888; font-weight: 500; direction: ltr; }
.s1-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #00c853; box-shadow: 0 0 0 rgba(0,200,83,0.5); animation: s1Pulse 1.8s infinite; }
@keyframes s1Float { 0%,100% { transform: translateZ(80px) translateY(0); } 50% { transform: translateZ(80px) translateY(-14px); } }
@keyframes s1Pulse { 0% { box-shadow: 0 0 0 0 rgba(0,200,83,0.5); } 70% { box-shadow: 0 0 0 8px rgba(0,200,83,0); } 100% { box-shadow: 0 0 0 0 rgba(0,200,83,0); } }

/* ==========================================================================
   4. Services / Stack Cards
   ========================================================================== */
.cards-stack-container { position: relative; width: 90vw; max-width: 80%; height: 420px; margin: 0 auto; }
.stack-card { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 50px; border-radius: 30px; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: -20px 0 50px rgba(0, 0, 0, 0.08); will-change: transform; }
.card-content { flex: 1; text-align: right; }
.card-content h3 { font-size: 2.2rem; color: #1a1a2e; margin-bottom: 20px; font-weight: 800;}
.card-content p { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 30px; }
.btn-primary-light { background: var(--grad-primary); color: white; border: none; padding: 12px 30px; border-radius: 50px; font-weight: bold; cursor: pointer; box-shadow: 0 10px 20px rgba(255, 0, 122, 0.2); transition: 0.3s; display: inline-block; }
.btn-primary-light:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(255, 0, 122, 0.4); }
.card-graphic { flex-shrink: 0; width: 350px; height: 250px; }
.mock-graphic { width: 100%; height: 100%; border-radius: 20px; background: linear-gradient(45deg, rgba(122,0,255,0.05), rgba(255,0,122,0.1)); border: 2px dashed rgba(255,0,122,0.3); }

/* ==========================================================================
   5. 3D Features
   ========================================================================== */
.features-grid-3d { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; padding: 0 5%; }
.feature-card-3d { will-change: transform, opacity; width: 320px; padding: 40px 30px; cursor: pointer; backface-visibility: hidden; }
.card-3d-inner { transform-style: preserve-3d; text-align: center; }
.feature-icon-3d { font-size: 3.5rem; margin-bottom: 20px; display: inline-block; transition: transform 0.4s ease; transform: translateZ(20px); }
img.feature-img { width: 75%; }
.feature-card-3d h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 15px; transition: transform 0.4s ease; transform: translateZ(15px); }
.feature-card-3d p { font-size: 1rem; color: #555; line-height: 1.7; transition: transform 0.4s ease; transform: translateZ(10px); }
.feature-card-3d:hover { transform: translateY(-10px) rotateX(10deg); background: rgba(255, 255, 255, 0.6); box-shadow: 0 30px 50px rgba(122, 0, 255, 0.1); }
.feature-card-3d:hover .feature-icon-3d { transform: translateZ(60px) scale(1.1); }
.feature-card-3d:hover h3 { transform: translateZ(40px); }
.feature-card-3d:hover p { transform: translateZ(25px); }

/* ==========================================================================
   6. 3D Steps
   ========================================================================== */
.steps-container-3d { display: flex; justify-content: center; gap: 40px; padding: 0 5%; flex-wrap: wrap; }
.step-box-3d { width: 280px; padding: 40px 25px; position: relative; margin-top: 30px; }
.step-inner-3d { transform-style: preserve-3d; text-align: center; }
.step-number-3d { width: 65px; height: 65px; background: var(--grad-primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; font-size: 1.7rem; font-weight: 900; margin: -70px auto 25px; box-shadow: 0 10px 25px rgba(255, 0, 122, 0.4); transform: translateZ(30px); transition: transform 0.4s ease; }
.step-box-3d h3 { font-weight: 800; margin-bottom: 12px; transform: translateZ(15px); }
.step-box-3d p { color: #666; font-size: 0.95rem; line-height: 1.8; transform: translateZ(10px); }
.step-box-3d:hover { transform: translateY(-8px) rotateY(-10deg); box-shadow: 0 25px 45px rgba(0,0,0,0.08); }
.step-box-3d:hover .step-number-3d { transform: translateZ(60px) translateY(-10px); box-shadow: 0 15px 30px rgba(255, 0, 122, 0.6); }

/* ==========================================================================
   7. 3D Pricing
   ========================================================================== */
.pricing-table-3d { display: flex; justify-content: center; align-items: center; gap: 35px; padding: 0 5%; flex-wrap: wrap; }
.price-card-3d { width: 320px; padding: 45px 30px; transform: rotateY(15deg); }
.price-inner-3d { transform-style: preserve-3d; text-align: center; }
.price-3d { font-size: 2.8rem; font-weight: 900; margin: 25px 0; color: #ff007a; transform: translateZ(20px); }
.price-3d span { font-size: 1rem; color: #777; font-weight: normal; }
.price-card-3d ul { list-style: none; margin-bottom: 35px; text-align: right; transform: translateZ(15px); }
.price-card-3d ul li { margin-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.04); padding-bottom: 10px; font-weight: 600; color: #444;}
.price-card-3d.popular-3d { transform: scale(1.05) translateZ(40px) rotateY(0deg); border: 2px solid rgba(255, 0, 122, 0.4); background: rgba(255, 255, 255, 0.55); box-shadow: 0 20px 50px rgba(255, 0, 122, 0.15); }
.popular-tag-3d { position: absolute; top: -60px; left: 50%; transform: translateX(-50%) translateZ(20px); background: var(--grad-primary); padding: 6px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: bold; color: white; box-shadow: 0 5px 15px rgba(255, 0, 122, 0.3); }
.btn-pricing-3d { width: 100%; padding: 14px 20px; border-radius: 16px; font-weight: 800; font-size: 1.05rem; cursor: pointer; transition: all 0.15s ease; transform: translateZ(25px); }
.btn-outline-pink { background: transparent; border: 2px solid #ff007a; color: #ff007a; box-shadow: 0 5px 0 #cc0062; }
.btn-outline-pink:active { transform: translateZ(25px) translateY(5px); box-shadow: 0 0px 0 #cc0062; }
.btn-outline-purple { background: transparent; border: 2px solid #7a00ff; color: #7a00ff; box-shadow: 0 5px 0 #5900cc; }
.btn-outline-purple:active { transform: translateZ(25px) translateY(5px); box-shadow: 0 0px 0 #5900cc; }
.btn-solid-gradient { background: var(--grad-primary); color: white; border: none; box-shadow: 0 6px 0 #4a0099, 0 10px 20px rgba(122, 0, 255, 0.3); }
.btn-solid-gradient:active { transform: translateZ(25px) translateY(6px); box-shadow: 0 0px 0 #4a0099; }
.price-card-3d:hover { transform: rotateY(0deg) translateY(-10px) scale(1.03); box-shadow: 0 30px 60px rgba(122,0,255,0.15); }
.price-card-3d.popular-3d:hover { transform: scale(1.08) translateZ(60px) translateY(-10px); box-shadow: 0 35px 70px rgba(255, 0, 122, 0.3); }

/* ==========================================================================
   8. Hover Steps & FAQ
   ========================================================================== */
.steps-hover-container { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; justify-items: center; padding: 20px 5% 60px; }
.step-hover-card { width: 90px; height: 90px; border-radius: 45px; overflow: hidden; cursor: pointer; position: relative; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); display: flex; align-items: center; }
.step-hover-number { width: 70px; height: 70px; border-radius: 50%; color: white; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; font-weight: 900; flex-shrink: 0; position: absolute; right: 9px; top: 9px; transition: all 0.5s ease; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
.step-hover-text { opacity: 0; transform: translateX(-30px); visibility: hidden; transition: all 0.4s ease; padding: 20px 100px 20px 20px; width: 350px; }
.step-hover-card:hover { width: 350px; height: 140px; border-radius: 24px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.step-hover-card:hover .step-hover-number { top: 20px; right: 20px; width: 60px; height: 60px; font-size: 1.5rem; }
.step-hover-card:hover .step-hover-text { opacity: 1; transform: translateX(0); visibility: visible; transition-delay: 0.1s; }
.step-hover-text h4 { color: #1a1a2e; font-size: 1.2rem; margin-bottom: 8px; font-weight: 900; }
.step-hover-text p { font-size: 0.95rem; line-height: 1.7; color: #555; }

.faq-container { display: flex; flex-direction: column; gap: 15px; max-width: 880px; margin: 0 auto; width: 100%; padding: 0 5%; }
.faq-item { padding: 20px; border-radius: 20px; cursor: pointer; transition: all 0.4s ease; overflow: hidden; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.8); }
.faq-question { font-weight: bold; font-size: 1.1rem; color: #1a1a2e; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: #7a00ff; transition: transform 0.4s ease; }
.faq-answer { max-height: 0; opacity: 0; transition: all 0.5s ease; color: #555; line-height: 1.8; }
.faq-item:hover { transform: scale(1.02); background: rgba(255, 255, 255, 0.9); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.faq-item:hover .faq-question::after { transform: rotate(45deg); color: #ff007a; }
.faq-item:hover .faq-answer { max-height: 200px; opacity: 1; padding-top: 15px; margin-top: 15px; border-top: 1px solid rgba(0,0,0,0.05); }

/* ==========================================================================
   9. Testimonials Section
   ========================================================================== */
.testimonials-section { position: relative; padding: 5rem 2rem; min-height: 100vh; display: flex; align-items: center; }
.bg-circle { position: absolute; border-radius: 50%; border: 2px solid rgba(233, 30, 99, 0.1); z-index: -1; }
.circle-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.circle-2 { width: 600px; height: 600px; bottom: -200px; left: -200px; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; }
.testimonials-wrapper { display: flex; gap: 3rem; align-items: stretch; }
.logos-slider-container { flex: 1; height: 500px; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent); mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent); }
.logos-columns-wrapper { display: flex; gap: 1.5rem; height: 100%; }
.logos-column { flex: 1; display: flex; flex-direction: column; gap: 1.5rem; will-change: transform; }
.logos-column:hover { animation-play-state: paused; }
@keyframes scrollDown { 0% { transform: translateY(-50%); } 100% { transform: translateY(0%); } }
@keyframes scrollUp { 0% { transform: translateY(0%); } 100% { transform: translateY(-50%); } }
.column-down { animation: scrollDown 25s linear infinite; }
.column-up { animation: scrollUp 25s linear infinite; }
.logo-box { background: #ffffff; border-radius: 1.5rem; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem; cursor: pointer; border: 3px solid transparent; opacity: 0.5; filter: grayscale(100%); flex-shrink: 0; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-box:hover, .logo-box.active { opacity: 1; filter: grayscale(0%); border-color: var(--border-active); transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.04), 0 15px 30px rgba(0, 0, 0, 0.08), inset 0 2px 0 rgba(255, 255, 255, 1); }
.testimonial-content {
    flex: 1.2; position: relative; display: flex; align-items: center; min-height: 400px; overflow: hidden; padding: 3rem 2rem; border-radius: 2rem; background-color: #e6f9f4; background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03), 0 20px 40px rgba(0, 0, 0, 0.05), inset 0 2px 0 rgba(255, 255, 255, 1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background-color 0.5s ease;
}
.testimonial-content:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04), 0 30px 50px rgba(0, 0, 0, 0.07), inset 0 2px 0 rgba(255, 255, 255, 1); }
.text-wrapper { width: 65%; transition: opacity 0.3s ease; position: relative; z-index: 2; }
.quote-icon { position: absolute; top: 1rem; right: 2rem; font-size: 6rem; font-family: serif; color: rgba(0, 0, 0, 0.05); line-height: 1; }
#testimonial-text { font-size: 1.1rem; line-height: 1.8; font-weight: 500; margin-bottom: 2rem; text-align: justify; }
#author-name { font-size: 1.2rem; font-weight: bold; color: #000; margin-bottom: 0.3rem; }
#author-role { font-size: 0.9rem; color: #555; }
.author-img { position: absolute; bottom: 0; left: 2rem; max-height: 350px; width: auto; max-width: 35%; object-fit: contain; object-position: bottom; z-index: 1; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1)); }

/* ==========================================================================
   10. Partners 3D Infinite Slider
   ========================================================================== */
.saitima-partners-section { padding: 100px 0; overflow: hidden; position: relative; }
.partners-header { text-align: center; margin-bottom: 50px; position: relative; }
.partners-bg-text { position: absolute; top: 100%; left: 50%; transform: translate(-50%, -50%); font-size: 10vw; font-weight: 900; color: rgba(0, 0, 0, 0.03); white-space: nowrap; pointer-events: none; z-index: 0; }
.partners-header h2 { font-size: 3.5rem; font-weight: 900; margin: 0; background: linear-gradient(90deg, #100b46, #ff007a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative; z-index: 1; }
.partners-header p { color: #666; font-size: 1.2rem; margin-top: 10px; position: relative; z-index: 1; }
.partners-scene-3d { perspective: 1200px; display: flex; flex-direction: column; gap: 40px; align-items: center; padding: 60px 0; }
.partners-track-wrapper { width: 100vw; overflow: visible; direction: ltr; transform: rotateX(15deg) rotateY(-5deg) rotateZ(2deg); transform-style: preserve-3d; }
.partners-track { display: flex; width: max-content; gap: 30px; flex-wrap: nowrap; }
.partners-list { display: flex; gap: 30px; align-items: center; flex-shrink: 0; flex-wrap: nowrap; }
.move-right { animation: scrollRight 40s linear infinite; }
.move-left { animation: scrollLeft 40s linear infinite; }
@keyframes scrollRight { from { transform: translateX(-50%); } to { transform: translateX(0%); } }
@keyframes scrollLeft { from { transform: translateX(0%); } to { transform: translateX(-50%); } }
.partners-track-wrapper:hover .partners-track { animation-play-state: paused; }
.partner-card-3d { flex-shrink: 0; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 20px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); display: flex; justify-content: center; align-items: center; padding: 20px; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; animation: floatBob 4s ease-in-out infinite alternate; }
.pc-sm { width: 160px; height: 110px; animation-delay: 0s; }
.pc-md { width: 210px; height: 140px; animation-delay: 0.7s; }
.pc-lg { width: 250px; height: 160px; animation-delay: 1.4s; }
.pc-xl { width: 190px; height: 190px; animation-delay: 2.1s; }
@keyframes floatBob { from { transform: translateY(0px); } to { transform: translateY(-15px); } }
.partner-card-3d img { max-width: 70%; max-height: 70%; object-fit: contain; filter: grayscale(100%) opacity(0.4); transition: all 0.4s ease; }
.partner-card-3d:hover { transform: translateY(-10px) translateZ(60px) scale(1.05) !important; box-shadow: 0 25px 50px rgba(255, 0, 122, 0.15), inset 0 0 0 1px rgba(255, 0, 122, 0.1); background: #ffffff; z-index: 10; animation-play-state: paused; }
.partner-card-3d:hover img { filter: grayscale(0%) opacity(1); transform: scale(1.1); }

/* ==========================================================================
   11. Portfolio Slider
   ========================================================================== */
.saitima-portfolio-section { position: relative; width: 100%; min-height: 800px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 0 50px; overflow: hidden; }
.portfolio-bg-text { display: none; }
.portfolio-coverflow-wrapper { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 1400px; position: relative; z-index: 10; perspective: 1500px; }
.portfolio-track { position: relative; width: 380px; height: 480px; transform-style: preserve-3d; margin: 0 40px; }
.port-nav-btn { width: 50px; height: 50px; border-radius: 50%; background: #ff007a; color: #fff; border: none; font-size: 1.2rem; cursor: pointer; box-shadow: 0 10px 20px rgba(255, 0, 122, 0.3); transition: all 0.3s ease; z-index: 20; display: flex; align-items: center; justify-content: center; }
.port-nav-btn:hover { transform: scale(1.1); background: #e6006e; }
.port-card { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; border-radius: 20px; padding: 15px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease; opacity: 0; cursor: pointer; }

/* کارت های ادغام و بهینه‌شده پورتفولیو */
.port-card-inner {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #f4f4f4;
}
.port-card-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.port-card.active { transform: translateX(0) translateZ(120px) rotateY(0deg); opacity: 1; z-index: 10; box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px; }
.port-card.next-1 { transform: translateX(65%) translateZ(-20px) rotateY(-15deg); opacity: 0.85; z-index: 8; }
.port-card.prev-1 { transform: translateX(-65%) translateZ(-20px) rotateY(15deg); opacity: 0.85; z-index: 8; }
.port-card.next-2 { transform: translateX(110%) translateZ(-120px) rotateY(-25deg); opacity: 0.5; z-index: 5; }
.port-card.prev-2 { transform: translateX(-110%) translateZ(-120px) rotateY(25deg); opacity: 0.5; z-index: 5; }
.port-card.hidden-right { transform: translateX(140%) translateZ(-250px) rotateY(-35deg); opacity: 0; z-index: 1; }
.port-card.hidden-left { transform: translateX(-140%) translateZ(-250px) rotateY(35deg); opacity: 0; z-index: 1; }
.portfolio-dynamic-info { text-align: center; margin-top: 60px; z-index: 10; transition: opacity 0.3s ease; }
.info-title { font-size: 2.2rem; color: #0b2447; margin: 0 0 10px 0; display: flex; align-items: center; justify-content: center; gap: 15px; font-weight: 800; }
.info-title::before, .info-title::after { content: ''; display: block; width: 40px; height: 3px; background: #0b2447; }
.info-role { font-size: 1.1rem; color: #888; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 20px 0; }
.info-link-btn { background: var(--grad-primary); box-shadow: 0 8px 20px rgba(122, 0, 255, 0.3); color: #fff; border: none; padding: 12px 30px; border-radius: 50px; text-decoration: none; display: inline-block; transition: 0.3s; }
.info-link-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(255, 0, 122, 0.4); }

/* لایه اصلی که فقط نگهدارنده متن است (بدون افکت بلور) */
.port-card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; text-align: center; z-index: 10;
    background: transparent; backdrop-filter: none;
    transform: translateY(101%); will-change: transform; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* لایه شیشه‌ای مجزا */
.port-card-overlay::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1); z-index: -1;
}

/* اعمال انیمیشن بالا آمدن برای هاور روی **همه** کارت‌ها */
.port-card:hover .port-card-overlay { transform: translateY(0); }

/* استایل متون (کاملاً شارپ و وکتور) */
.port-card-title { font-size: 1.3rem; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; line-height: 1.4; transform: translateZ(1px); }
.port-card-excerpt { font-size: 0.95rem; color: #333; margin-bottom: 15px; line-height: 1.6; font-weight: 500; transform: translateZ(1px); }

/* دکمه (که حالا تگ span است) */
.port-card-btn { background: linear-gradient(135deg, #ff007a, #7a00ff); color: #fff !important; padding: 8px 25px; border-radius: 50px; font-size: 0.9rem; font-weight: bold; box-shadow: 0 5px 15px rgba(255, 0, 122, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; display: inline-block; transform: translateZ(1px); }
.port-card-inner:hover .port-card-btn { transform: translateY(-3px) scale(1.05) translateZ(1px); box-shadow: 0 8px 20px rgba(122, 0, 255, 0.4); }

/* ==========================================================================
   12. Mouse Scroll Indicator
   ========================================================================== */
.saitima-scroll-indicator { position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 20; animation: bounceMouse 2s infinite ease-in-out; }
.saitima-scroll-indicator .scroll-text { color: #ffffff; font-size: 0.85rem; font-weight: 500; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); letter-spacing: 1px; }
.saitima-scroll-indicator .mouse-icon { width: 32px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 15px; position: relative; box-shadow: 0 0 15px rgba(255, 0, 122, 0.3); background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.saitima-scroll-indicator .wheel { width: 4px; height: 8px; background: #ff007a; border-radius: 2px; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); animation: scrollWheel 1.5s infinite; box-shadow: 0 0 5px rgba(255, 0, 122, 0.8); }

@keyframes bounceMouse { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 12px); } }
@keyframes scrollWheel { 0% { top: 8px; opacity: 1; height: 8px; } 50% { top: 18px; opacity: 1; height: 4px; } 100% { top: 22px; opacity: 0; height: 4px; } }

/* ==========================================================================
   13. Fully Responsive & Media Queries
   ========================================================================== */
/* Tablet */
@media (max-width: 992px) {
    /* منوی هدر منحصراً در style.css با .header-nav.is-open کنترل می‌شود؛ رول‌های عمومیِ «nav ul» حذف شدند چون کل منو را می‌شکستند */

    .price-card-3d, .price-card-3d.popular-3d { transform: none !important; width: 100%; max-width: 340px; }

    .testimonials-wrapper { flex-direction: column-reverse; gap: 2rem; }
    .logos-slider-container { height: 350px; }
    .testimonial-content { flex-direction: column; padding: 2.5rem 1.5rem 0 1.5rem; }
    .text-wrapper { width: 100%; text-align: center; padding-bottom: 1.5rem; }
    #testimonial-text { text-align: center; }
    .author-img { position: relative; left: 0; max-height: 280px; max-width: 100%; margin: 0 auto; display: block; }
}

@media (max-width: 900px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-action-box { flex-direction: column; border-radius: 20px; background: transparent; box-shadow: none; border: none; padding: 0; gap: 15px; }
    .hero-input { background: rgba(255,255,255,0.6); padding: 15px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.8); }
    .hero-btn { width: 100%; border-radius: 15px; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .hero-stats .divider { display: none; }
    .stack-card { flex-direction: column; padding: 30px; text-align: center; }
    .card-content { text-align: center; }
    .card-graphic { display: none; }
}

/* Mobile & Performance Lock */
#services-sheet { height: 400vh; } /* desktop scroll-jack height; disabled on mobile below */

@media (max-width: 768px) {
    /* Performance Fixes */
    .glass-panel-3d, .stack-card, .step-hover-card, .faq-item, .partner-card-3d, .full-box-face {
        backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important; box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    }
    .floating-badge, .partner-card-3d, .pulse-dot, .pulse-dot-pink::after { animation: none !important; transform: none !important; }
    html, body { -webkit-overflow-scrolling: touch; overscroll-behavior-y: none; }

    /* Layout Locks */
    .hero-modern, .hero-container { overflow-x: hidden !important; max-width: 100vw !important; }
    .hero-visual { display: block !important; width: 100% !important; margin-top: 40px !important; margin-bottom: 20px !important; position: relative !important; }
    .hero-mockup { width: 85% !important; max-width: 300px !important; margin: 0 auto !important; display: block !important; transform: none !important; box-shadow: 0 15px 35px rgba(0,0,0,0.05) !important; }
    .floating-badge { position: absolute !important; transform: scale(0.7) !important; z-index: 10 !important; }
    .badge-1 { top: -10px !important; right: 5% !important; left: auto !important; }
    .badge-2 { bottom: 20px !important; left: 5% !important; right: auto !important; }
    .box-swap-wrapper { transform-origin: center center !important; will-change: transform !important; }
    img.space-man { display: none; }

    .step-hover-card:hover { width: 100%; height: auto; min-height: 140px; }
    .step-hover-text { width: 100%; }

    /* Portfolio Mobile */
    .portfolio-track { width: 260px; height: 360px; margin: 0 15px; }
    .port-nav-btn { width: 40px; height: 40px; }
    .info-title { font-size: 1.5rem; }
    .port-card.next-1 { transform: translateX(55%) translateZ(-50px) rotateY(-15deg); }
    .port-card.prev-1 { transform: translateX(-55%) translateZ(-50px) rotateY(15deg); }
    .port-card.next-2 { transform: translateX(85%) translateZ(-120px) rotateY(-20deg); }
    .port-card.prev-2 { transform: translateX(-85%) translateZ(-120px) rotateY(20deg); }

}

@media (max-width: 600px) {
    .logos-columns-wrapper { gap: 0.8rem; }
    .logo-box { padding: 1rem; border-radius: 1rem; }
    .section-title h2 { font-size: 2rem; }
}


/* ==========================================================================
   14. Mobile Homepage Fix  (رفع بهم‌ریختگی صفحه اصلی در موبایل)
   ========================================================================== */
@media (max-width: 768px) {

    /* سکشن اول: تک‌ستونه و جمع‌وجور روی موبایل */
    .s1-hero { min-height: auto; padding: 100px 5% 45px; overflow-x: hidden; }
    .s1-container { flex-direction: column; text-align: center; gap: 26px; width: 100%; }
    .s1-text { width: 100%; max-width: 100%; min-width: 0; }
    .s1-badge { font-size: 0.78rem; padding: 7px 16px; margin-bottom: 16px; }
    .s1-title { font-size: clamp(1.45rem, 6vw, 1.9rem); line-height: 1.5; margin-bottom: 14px; }
    .s1-subtitle { max-width: 100%; font-size: 0.92rem; line-height: 1.8; margin-bottom: 24px; }

    /* CTA عمودی و تمام‌عرض تا دکمه بیرون نزند */
    .s1-cta {
        flex-direction: column;
        max-width: 320px;
        width: 100%;
        margin: 0 auto 26px;
        padding: 12px;
        gap: 10px;
        border-radius: 18px;
        background: #ffffff;
    }
    .s1-input { width: 100%; text-align: center; padding: 12px 14px; border-radius: 12px; background: #f4eef2; }
    .s1-btn { width: 100%; text-align: center; padding: 14px 20px; }

    .s1-stats { justify-content: center; gap: 18px; }
    .s1-stat strong { font-size: 1.4rem; }
    .s1-stat span { font-size: 0.75rem; }
    .s1-visual { width: 100%; min-width: 0; margin-top: 6px; perspective: none; }
    .s1-stage { max-width: 300px; transform: none !important; }
    .s1-card { transform: none; }
    .s1-chip { display: none; }
    .s1-blob { opacity: 0.35; filter: blur(50px); }
    .s1-grid { display: none; }

    /* 2) استک کارت‌های خدمات -> کارت‌های عمودی (حذف 400vh) */
    #services-sheet { height: auto !important; }
    #services-sheet .sticky-frame { position: relative !important; top: auto !important; height: auto !important; padding: 40px 0 50px !important; overflow: visible !important; justify-content: flex-start !important; }
    .cards-stack-container { position: relative !important; width: 100% !important; max-width: 100% !important; height: auto !important; display: flex !important; flex-direction: column !important; gap: 20px !important; padding: 0 5% !important; }
    .stack-card { position: relative !important; top: auto !important; left: auto !important; width: 100% !important; height: auto !important; transform: none !important; flex-direction: column !important; padding: 28px 22px !important; text-align: center !important; gap: 18px !important; }
    .stack-card .card-content { text-align: center !important; }
    .stack-card .card-graphic { display: none !important; }

    /* 3) همکاران -> حذف چرخش سه‌بعدی، حفظ اسلایدر */
    .saitima-partners-section { padding: 50px 0 !important; }
    .partners-header h2 { font-size: 1.9rem !important; }
    .partners-bg-text { font-size: 18vw !important; }
    .partners-scene-3d { perspective: none !important; padding: 20px 0 !important; gap: 22px !important; }
    .partners-track-wrapper { width: 100% !important; transform: none !important; }
    .partner-card-3d { animation: none !important; }
    .pc-sm, .pc-md, .pc-lg, .pc-xl { width: 130px !important; height: 88px !important; }

    /* 4) اسلایدر نمونه‌کارها (کاورفلو) -> مهار در عرض صفحه */
    .saitima-portfolio-section { min-height: 0 !important; padding: 55px 0 40px !important; }
    .portfolio-track { width: 72vw !important; max-width: 290px !important; height: 380px !important; margin: 0 6px !important; }
    .port-card.next-2, .port-card.prev-2, .port-card.hidden-right, .port-card.hidden-left { opacity: 0 !important; }
    .port-card.next-1 { transform: translateX(40%) translateZ(-60px) rotateY(-12deg) !important; opacity: 0.4 !important; }
    .port-card.prev-1 { transform: translateX(-40%) translateZ(-60px) rotateY(12deg) !important; opacity: 0.4 !important; }
    .port-nav-btn { width: 42px !important; height: 42px !important; }

    /* 5) نظرات -> حذف ارتفاع اجباری 100vh */
    .testimonials-section { min-height: 0 !important; padding: 50px 1rem !important; }
    .logos-slider-container { height: 260px !important; }
    .author-img { max-height: 210px !important; }

    /* 6) مراحل هاوری -> نمایش دائمی متن (بدون نیاز به هاور) */
    .steps-hover-container { gap: 18px !important; padding: 10px 5% 40px !important; }
    .step-hover-card { width: 100% !important; height: auto !important; min-height: 104px !important; border-radius: 20px !important; background: rgba(255,255,255,0.9) !important; }
    .step-hover-card .step-hover-number { position: absolute !important; right: 16px !important; top: 50% !important; transform: translateY(-50%) !important; width: 56px !important; height: 56px !important; font-size: 1.4rem !important; }
    .step-hover-text { opacity: 1 !important; visibility: visible !important; transform: none !important; width: 100% !important; padding: 20px 90px 20px 18px !important; }

    /* 7) تنظیم فواصل کلی بخش‌ها */
    .section-title { margin: 48px 0 26px !important; }
    .section-title h2 { font-size: 1.7rem !important; }
    .saitima-features-section { padding: 40px 0 !important; }
    .saitima-how-section, .saitima-pricing-section, .saitima-hover-steps-section, .saitima-faq-section { margin-top: 50px !important; }
    .saitima-cta-section { margin: 60px auto !important; padding: 45px 20px !important; }
    .saitima-cta-section h2 { font-size: 1.8rem !important; }
}

/* تنظیمات ریزتر برای موبایل‌های کوچک */
@media (max-width: 480px) {
    .hero-title-3d { font-size: 1.7rem !important; }
    .hero-title { font-size: 1.7rem !important; }
    .saitima-typewriter-badge { font-size: 0.95rem !important; padding: 10px 18px !important; }
    .hero-stats { gap: 16px !important; }
    .stat-item strong { font-size: 1.4rem !important; }
    .portfolio-track { width: 80vw !important; height: 340px !important; }
}
@media (max-width: 992px) {
    .logos-slider-container {
        height: 120px !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent) !important;
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent) !important;
        padding-bottom: 10px !important;

        /* -- اضافه شدن قفل اسکرول -- */
        scroll-snap-type: x mandatory !important;
    }

    .logos-slider-container::-webkit-scrollbar {
        display: none !important;
    }

    .logos-columns-wrapper {
        display: flex !important;
        flex-direction: row !important;
        width: max-content !important;
        height: auto !important;
        gap: 15px !important;
        animation: none !important;
        align-items: center !important;

        /* -- محاسبه دقیق فاصله برای قرارگیری اولین و آخرین لوگو در مرکز -- */
        padding: 10px calc(50vw - 40px) !important;
    }

    .logos-column {
        display: contents !important;
    }

    .logo-box {
        width: 80px !important;
        height: 80px !important;
        padding: 12px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;

        /* -- دستور قفل شدن دقیقاً در مرکز -- */
        scroll-snap-align: center !important;
    }
}

/* ==========================================================================
   15. Portfolio Dark Stage
   ========================================================================== */

.saitima-portfolio-section {
    background: radial-gradient(ellipse at 50% 0%, #1e0638 0%, #0d0d1f 50%, #000510 100%) !important;
}

.portfolio-bg-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.035) !important;
    color: rgba(255, 255, 255, 0.035) !important;
}

.portfolio-coverflow-wrapper {
    position: relative;
}

/* floor glow below cards */
.portfolio-coverflow-wrapper::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 0, 122, 0.35) 0%, rgba(122, 0, 255, 0.15) 50%, transparent 75%);
    filter: blur(25px);
    pointer-events: none;
    z-index: 0;
}

.port-nav-btn {
    background: linear-gradient(135deg, #ff007a, #7a00ff) !important;
    box-shadow: 0 0 20px rgba(255, 0, 122, 0.6), 0 0 50px rgba(122, 0, 255, 0.3) !important;
    border: 1px solid rgba(255, 150, 200, 0.3) !important;
    z-index: 20;
}

/* active card — premium glow ring */
.port-card {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease, filter 0.5s ease, box-shadow 0.5s ease;
}

.port-card.active {
    box-shadow:
        0 0 0 1.5px rgba(255, 0, 122, 0.6),
        0 25px 60px rgba(255, 0, 122, 0.4),
        0 0 120px rgba(122, 0, 255, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.5) !important;
    filter: brightness(1.05) saturate(1.1);
}

/* side cards — dim & blur for depth */
.port-card.next-1,
.port-card.prev-1 {
    filter: brightness(0.65) saturate(0.5);
}

.port-card.next-2,
.port-card.prev-2 {
    filter: brightness(0.4) saturate(0.3) blur(2px);
}

/* ambient glow blob behind active card */
.portfolio-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    width: 800px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 0, 122, 0.22) 0%, rgba(122, 0, 255, 0.12) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
    animation: ambientPulse 4s ease-in-out infinite alternate;
    will-change: opacity;
}

@keyframes ambientPulse {
    from { opacity: 0.8; transform: translate(-50%, -52%) scale(1); }
    to   { opacity: 1;   transform: translate(-50%, -52%) scale(1.08); }
}

/* responsive: disable heavy effects on mobile */
@media (max-width: 768px) {
    .portfolio-ambient-glow { display: none; }
    .portfolio-coverflow-wrapper::after { display: none; }
    .port-card.next-1, .port-card.prev-1,
    .port-card.next-2, .port-card.prev-2 { filter: none; }
    .hero-glare, .hero-crease { display: none; }
}

/* =========================================
   Extracted from inline styles (front-page.php)
========================================= */
#services-sheet {
    position: relative;
    display: block;
    z-index: 2;
    background: transparent;
}
#services-sheet .sticky-frame {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.services-sheet-title {
    margin-bottom: 40px;
    z-index: 10;
    text-align: center;
}
.stack-card-offscreen {
    transform: translateX(150%);
}
.card-graphic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}
.step-hover-bg-1 { background: linear-gradient(135deg, #ff007a, #7a00ff); }
.step-hover-bg-2 { background: linear-gradient(135deg, #00c6ff, #0072ff); }
.step-hover-bg-3 { background: linear-gradient(135deg, #ff7a00, #ff007a); }
.step-hover-bg-4 { background: linear-gradient(135deg, #00b09b, #96c93d); }

/* =========================================
   فاصله‌ی عمودیِ یکنواخت بین سکشن‌های صفحه اصلی
   مارجینِ برابرِ بالا/پایین؛ با هم‌فروکشِ مارجین، فاصله‌ی بین هر دو سکشن برابر می‌شود.
   #services-sheet (اسکرول‌جکِ ۴۰۰vh) عمداً کنار گذاشته شده تا انیمیشنش نشکند.
========================================= */
.s1-hero { margin-bottom: 100px; }

.saitima-features-section,
.saitima-product-slider-section,
.saitima-partners-section,
.saitima-how-section,
.saitima-pricing-section,
.saitima-hover-steps-section,
.testimonials-section,
.saitima-portfolio-section,
.saitima-faq-section,
.saitima-cta-section {
    margin-top: 100px;
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .s1-hero { margin-bottom: 60px; }
    .saitima-features-section,
    .saitima-product-slider-section,
    .saitima-partners-section,
    .saitima-how-section,
    .saitima-pricing-section,
    .saitima-hover-steps-section,
    .testimonials-section,
    .saitima-portfolio-section,
    .saitima-faq-section,
    .saitima-cta-section {
        margin-top: 60px;
        margin-bottom: 60px;
    }
}
