/* ============================================================
   BASE & FONTS
   ============================================================ */

:root {
    --blue:        #0070F0;
    --blue-light:  rgba(0, 112, 240, 0.1);
    --dark:        #393939;
    --mid-gray:    #72777A;
    --white:       #FFFFFF;
    --chat-bg:     #F2F4F5;
    --chat-radius: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Peyda', 'Vazirmatn', Tahoma, sans-serif;
    background-color: #ffffff;
    color: var(--dark);
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}
.call-tagline a {
    all: unset;
    cursor: pointer;
}

.main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================================================
   NAVBAR
   — sits on the white body, no fixed positioning
   ============================================================ */
.site-navbar {
    background-color: #ffffff;
    padding: 10px 15px;
}

/* Logo */
.logo-nika {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 25px;
    color: var(--dark);
    line-height: 1;
}

.logo-ai {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--blue);
    line-height: 1;
    letter-spacing: -0.02em;
}

/* Logo link with data-slide attribute */
.navbar-brand[data-slide] {
    cursor: pointer;
    transition: opacity 0.2s;
}

.navbar-brand[data-slide]:hover {
    opacity: 0.8;
}

/* Nav links */
.site-navbar .nav-link {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--dark);
    transition: color 0.2s;
}

.site-navbar .nav-link:hover {
    color: var(--blue);
}

/* Demo button */
.btn-demo {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--blue);
    background: var(--blue-light);
    border: 1px solid var(--blue);
    border-radius: 12px;
    padding: 8px 16px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.btn-demo:hover {
    background: var(--blue);
    color: #fff;
}

/* ============================================================
   HERO WRAPPER
   — the container constrains the hero box, adds padding
   ============================================================ */
.hero-wrapper {
    flex: 1;
    min-height: 0;
    padding-bottom: 16px;
    height: 100%;
}

/* ============================================================
   HERO SECTION
   — a rounded box with the background image inside
   ============================================================ */
.hero-section {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 40px 32px;
    height: 100%;
}

.gradient {
    background: linear-gradient(180deg, #F5F6FF 0%, rgba(245, 246, 255, 0.00) 100%);
}

.hero-contents {
    display: flex;
    gap: 10px;
}

/* Background image */
.hero-bg-img {
    position: absolute;
    inset: 0;
    background-image: url('./assets/img/hero-bg.webp');
    background-size: cover;
    background-position: center center;
    z-index: 0;
}

/* Dark gradient overlay — heavier on RTL right side (text area) */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        -90deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 0;
}

.hero-bg-img,
.hero-bg-overlay {
    border-radius: 30px;
}

/* ============================================================
   HERO – RIGHT COLUMN (headline + CTAs)
   ============================================================ */
.powered-by {
    opacity: 0.9;
}

.powered-label {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: var(--white);
}

.hero-label {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #9A9A9A;
}

.powered-logo {
    height: 18px;
    width: auto;
    object-fit: contain;
}

/* Main headline */
.hero-title {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 900;
    line-height: 1.35;
    color: var(--white);
    margin-bottom: 20px;
}

.how-hero-title {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 900;
    line-height: 1.35;
    color: #393939;
    margin-bottom: 20px;
}

.how-text {
    color: #393939;
    font-family: 'Peyda', Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 2;
    text-align: center;
}

.title-gradient {
    background: linear-gradient(180deg, #FFC0BE 49%, #2195FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tagline pill */
.hero-tagline {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 5px 0px 5px 20px;
    font-size: 18px;
    color: var(--white);
    width: fit-content;
    background: linear-gradient(90deg, rgb(255 255 255 / 16%) 0%, rgba(255, 255, 255, 0) 100%);
}
.call-tagline {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 5px 0px 5px 20px;
    font-size: 18px;
    color: #393939;
    width: fit-content;
    background: linear-gradient(90deg, #0d6efd26 0%, rgba(255, 255, 255, 0) 100%);
}

.tagline-bold {
    font-weight: 700;
    margin-left: 4px;
}

.tagline-light {
    font-weight: 300;
}

.tagline-avatar {
    width: 44px;
    height: 44px;
}
.tagline-avatar img{
    border-radius: 50%;
}

/* CTA buttons */
.btn-cta-primary {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--white);
    background: linear-gradient(81deg, #12934D 0%, #206EEF 100%);
    border-radius: 12px;
    padding: 12px 24px;
    border: none;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-cta-primary:hover {
    color: var(--white);
    opacity: 0.88;
}

.btn-cta-ghost {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(9.5px);
    -webkit-backdrop-filter: blur(9.5px);
    border-right: 2px solid rgb(255 255 255);
    border-radius: 12px;
    padding: 12px 24px;
    min-height: 50px;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-cta-ghost:hover {
    background: #fff;
    color: #0070F0;
    transition: 0.2s;
}

.btn-cta-how-ghost {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 18px;
    background: #393939;
    backdrop-filter: blur(9.5px);
    -webkit-backdrop-filter: blur(9.5px);
    border-right: 2px solid rgb(255 255 255);
    border-radius: 12px;
    padding: 12px 24px;
    min-height: 50px;
    white-space: nowrap;
    transition: background 0.2s;
    color: #fff;
}

.btn-cta-how-ghost:hover {
    background: var(--blue);
    color: #fff;
    transition: 0.2s;
}

/* ============================================================
   FEATURE TAGS (left column)
   ============================================================ */
.feature-tags {
    width: 100%;
}
.coming-soon-tag{
    position: absolute;
    width: fit-content;
    color: #ffffff;
    /* background-color: #fff; */
    top: -15%;
    align-items: center;
    padding: 2px 16px;
    border-radius: 6px;
    font-size: 14px;
background: rgb(13 110 253);
}
.feature-tag {
    position: relative;
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    color: var(--white);
    text-align: center;
    border-radius: 0 20px 20px 20px;
    padding: 14px 12px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.feature-tag--active {
    background: var(--blue);
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
}

.feature-tag--glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(7.5px);
}

/* hero-left: feature-tags + chat-window side by side */
.hero-left {
    display: flex;
    align-items: stretch;
    gap: 12px;
    height: 100%;
}

/* feature-tags takes ~30% of hero-left */
.feature-tags {
    flex: 0 0 22%;
    width: 30%;
}

/* chat-window takes remaining ~70% */
.chat-window {
    flex: 0 0 78%;
    width: 70%;
}

/* ============================================================
   CHAT WINDOW
   ============================================================ */
.chat-window {
    border-radius: 24px;
    border: 1px solid #C4C4C4;
    border-right: none;
    backdrop-filter: blur(8.5px);
    -webkit-backdrop-filter: blur(8.5px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: linear-gradient(183deg, rgba(245, 246, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Chat top bar */
.chat-topbar {
    padding: 21px 19px;
    flex-shrink: 0;
}

.chat-topbar button {
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #E3E5E5;
    width: 44px;
    display: flex;
    height: 44px;
    align-items: center;
}

.chat-bot-name {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #202325;
}

.chat-bot-status {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--mid-gray);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #7DDE86;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F2F8FF;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Messages area */
.chat-messages {
    flex: 1;
    padding: 0 19px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    transition: opacity 0.25s ease;
}

.chat-messages.fade-out {
    opacity: 0;
}

.chat-messages.fade-in {
    opacity: 1;
}

.laptop-img {
    align-self: center;
    width: auto;
}

/* ── Message entry animations ── */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-animate-bot {
    animation: slideInFromRight 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.msg-animate-user {
    animation: slideInFromLeft 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.msg-animate-time {
    animation: fadeInUp 0.3s ease both;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
}

.chat-msg-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-time {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--mid-gray);
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
}

/* Bubbles */
.chat-bubble {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-size: 14px;
    line-height: 24px;
    padding: 16px;
    max-width: 384px;
    word-break: break-word;
}

.chat-bubble--bot {
    background: var(--chat-bg);
    color: #000;
    border-radius: 0 var(--chat-radius) var(--chat-radius) var(--chat-radius);
    text-align: right;
    font-weight: 400;
    letter-spacing: -0.006em;
}

.chat-bubble--user {
    background: var(--blue);
    color: var(--white);
    border-radius: var(--chat-radius) var(--chat-radius) 0 var(--chat-radius);
    font-weight: 500;
    padding: 16px 20px;
}

/* Small bot avatar next to bot bubble */
.chat-bot-avatar-sm {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #F2F8FF;
    overflow: hidden;
    flex-shrink: 0;
    align-self: flex-start;
}

.chat-bot-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Chat input bar */
.chat-input-bar {
    padding: 14px 19px;
    background: transparent;
    border-radius: 0 0 0 48px;
    flex-shrink: 0;
}

.chat-input-inner {
    width: 100%;
}

.chat-input-field {
    background: var(--white);
    border: 1.5px solid #979C9E;
    border-radius: 48px;
    padding: 10px 20px;
    flex: 1;
    min-height: 44px;
    gap: 8px;
}

.chat-placeholder {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--mid-gray);
    direction: rtl;
}

.mic-icon {
    flex-shrink: 0;
    opacity: 0.7;
}

.chat-send-btn {
    background: none;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    opacity: 0.85;
}

/* ============================================================
   SECTIONS (chat & laptop/features)
   ============================================================ */
.chat-section {
    height: 100%;
    padding: 2% 20px;
    z-index: 1000;
    left: 0;
    top: 0;
}

.laptop-section,
.features-section {
    height: 100%;
    padding: 2% 20px;
    z-index: 1000;
    top: 0;
}

.sections {
    gap: 10px;
}

/* ============================================================
   FEATURES SECTION (copy of laptop-section)
   ============================================================ */

/* Above 992px: absolute positioned, left: 0 */
@media (min-width: 992px) {
    .features-section {
        position: absolute;
        left: 0;
    }
}

/* Below or equal to 992px: relative positioned */
@media (max-width: 992px) {
    .features-section {
        position: relative;
        top: 30px;
    }
}

/* ============================================================
   FEATURE ITEM PAGE
   ============================================================ */
.feature-item-wrapper {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Header Section */
.feature-header {
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb-nav {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-size: 14px;
}

.breadcrumb-link {
    color: #9A9A9A;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--blue);
}

.breadcrumb-current {
    color: var(--blue);
    font-weight: 500;
}

.feature-main-title {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 5vw, 56px);
    color: var(--dark);
    line-height: 1.3;
}

.feature-subtitle {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    color: #72777A;
    font-weight: 400;
    line-height: 1.6;
}

/* Feature Cards Grid */
.feature-cards-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid #E3E5E5;
    border-radius: 16px;
    padding: 32px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 24px rgba(0, 112, 240, 0.12);
    transform: translateY(-4px);
}

.feature-card-icon {
    width: fit-content;
}

.feature-card-title {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
}

.feature-card-text {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-size: 16px;
    color: #72777A;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 991.98px) {

    .feature-item-wrapper {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .feature-header {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .feature-card {
        padding: 24px 20px;
    }
}

@media (max-width: 575.98px) {
    .breadcrumb-nav {
        font-size: 12px;
    }

    .feature-main-title {
        font-size: 28px;
    }

    .feature-subtitle {
        font-size: 14px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .feature-card-title {
        font-size: 18px;
    }

    .feature-card-text {
        font-size: 14px;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .main {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .hero-wrapper {
        flex: none;
        height: auto;
    }

    .hero-section {
        padding: 32px 20px;
        height: auto;
    }

    .hero-title,
    .how-hero-title {
        font-size: clamp(28px, 6vw, 48px);
        text-align: center;
    }

    .hero-tagline {
        max-width: 100%;
        justify-content: center;
    }

    .hero-left {
        flex-direction: column;
    }

    .feature-tags {
        flex: unset;
        width: 100%;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center;
        gap: 8px !important;
    }

    .chat-window {
        flex: unset;
        width: 100%;
    }

    .feature-tag {
        display: flex;
        flex-direction: column;
        gap: 13px;
        height: auto;
        padding: 8px 14px;
        font-size: 14px;
        border-radius: 14px;
        white-space: nowrap;
    }
    .coming-soon-tag{
        position: unset !important;
        font-size: 12px;
    }

    .chat-window {
        max-height: 500px;
    }

    .chat-bubble {
        max-width: 85%;
    }

    .powered-by,
    .d-flex.gap-3.flex-wrap {
        justify-content: center !important;
    }

    .col-lg-5.order-lg-1 {
        align-items: center !important;
        text-align: center !important;
    }
}

@media (max-width: 575.98px) {
    .hero-contents {
        justify-content: center;
    }

    .hero-section {
        border-radius: 16px;
        padding: 24px 16px;
        min-height: auto;
    }

    .hero-title,
    .how-hero-title {
        font-size: 28px;
    }

    .hero-tagline {
        font-size: 14px;
        padding: 10px 14px;
    }

    .btn-cta-primary,
    .btn-cta-ghost,
    .btn-cta-how-ghost {
        font-size: 15px;
        padding: 10px 18px;
    }

    .logo-nika {
        font-size: 24px;
    }

    .logo-ai {
        font-size: 20px;
    }

    .site-navbar {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 992px) {
    .laptop-img {
        height: 180px;
    }

    .laptop-section {
        position: relative;
        top: 30px;
    }

    .features-section {
        position: relative;
        top: 30px;
    }
}

.custom-container {
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 1440px) {
    .hero-tagline {
        display: none;
    }
}

@media (min-width: 992px) {
        .laptop-img {
        height: 350px;
    }

    .laptop-section {
        left: 12%;
    }
    .how-text {
        font-size: 24px;
        text-align: unset;
    }

    .hero-bg-img,
    .hero-bg-overlay {
        border-radius: unset;
    }

    .chat-section,
    .laptop-section {
    position: absolute;
    }

    .sections {
        gap: unset;
    }

    .features-section {
        position: absolute;
        left: 0;
    }
}

@media (min-width: 1200px) {
    .hero-title,
    .how-hero-title {
        font-size: 55px;
    }

    .hero-contents {
        max-width: 530px;
    }

    .custom-container {
        max-width: 1340px;
    }
}

@media (min-width: 1300px) {
    .laptop-img {
        height: 394px;
    }

    .laptop-section {
        left: 12%;
    }

    .features-section {
        left: 0;
    }
}

@media (min-width: 1400px) {
    .laptop-img {
        height: 450px;
    }

    .laptop-section {
        left: 14%;
    }

    .features-section {
        left: 0;
    }
}

@media (min-width: 1480px) {
    .hero-title,
    .how-hero-title {
        font-size: 75px;
    }

    .hero-contents {
        max-width: 650px;
    }

    .custom-container {
        max-width: 1560px;
    }
}

@media (min-width: 1600px) {
    .hero-contents {
        max-width: 590px;
    }



    .laptop-img {
        height: 480px;
    }

    .laptop-section {
        left: 13%;
    }
}

@media (min-width: 1700px) {
    .custom-container {
        max-width: 1760px;
    }
}
@media (min-width: 1750px) {
    .laptop-img {
        height: 540px;
    }
}

/* ============================================================
   FEATURE GRID 2x2 (Frame 91:485)
   ============================================================ */

/* Grid Container - ارتفاع برابر با sections row */
.feature-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: clamp(16px, 2vw, 26px) clamp(12px, 1.5vw, 20px);
    height: 100%;
    max-height: 100vh;
    align-items: center;
    justify-items: center;
    align-content: center;
    justify-content: center;
}

/* Card مربع با aspect ratio 1:1 */
.feature-item-card {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5.5px);
    -webkit-backdrop-filter: blur(5.5px);
    border: 1px solid #DADEFF;
    border-radius: 12px;
    padding: clamp(8px, 2vw, 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100%;
}

.feature-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 112, 240, 0.15);
}

/* Icon Container */
.feature-item-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    padding: 5% 0;
    height: 100%;
}

.feature-item-icon img {
    width: clamp(50px, 30%, 130px);
    height: clamp(50px, 30%, 130px);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 112, 240, 0.15));
}

/* Content Box (عنوان + متن) */
.feature-item-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 0.8vw, 10px);
    padding: clamp(6px, 1vw, 8px) clamp(8px, 1.5vw, 16px);
    width: 100%;
    flex-shrink: 0;
}

/* Title - responsive font */
.feature-item-title {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 1.6vw, 18px);
    line-height: 1.4em;
    letter-spacing: -0.02em;
    color: #0070F0;
    text-align: center;
    margin: 0;
}

/* Description Text - responsive font */
.feature-item-text {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 400;
    font-size: clamp(9px, 0.9vw, 16px);
    line-height: 1.3em;
    letter-spacing: -0.02em;
    color: #0070F0;
    opacity: 0.8;
    text-align: center;
    margin: 0;
    width: 100%;
    max-width: 268px;
}

/* Responsive - Mobile (< 992px) */
@media (max-width: 991.98px) {
    .call-tagline{
        flex-direction: column;
        align-self: center;
        text-align: center;
    }
    .feature-grid-wrapper {
        padding: 32px 0 48px;
    }

    .feature-grid-2x2 {
        display: flex;
        gap: 10px;
        padding: 0 16px;
        height: auto;
        max-height: none;
        flex-direction: column;
    }

    .feature-item-card {
        aspect-ratio: 1 / 1;
        max-width: 320px;
        margin: 0 auto;
        padding: clamp(6px, 2vw, 14px);
    }

    .feature-item-icon img {
        width: clamp(80px, 25vw, 110px);
        height: clamp(80px, 25vw, 110px);
    }

    .feature-item-title {
        font-size: clamp(15px, 2.5vw, 18px);
    }

    .feature-item-text {
        font-size: clamp(11px, 1.6vw, 14px);
    }
}

/* تنظیمات برای سایزهای مختلف */
@media (min-width: 992px) and (max-width: 1199px) {
    .feature-item-icon img {
        width: clamp(70px, 28%, 110px);
        height: clamp(70px, 28%, 110px);
    }

    .feature-item-title {
        font-size: clamp(15px, 1.7vw, 18px);
    }

    .feature-item-text {
        font-size: clamp(10px, 1.2vw, 13px);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .feature-item-icon img {
        width: clamp(80px, 32%, 120px);
        height: clamp(80px, 32%, 120px);
    }

    .feature-item-title {
        font-size: clamp(16px, 1.8vw, 19px);
    }
}

@media (min-width: 1400px) {
    .feature-item-icon img {
        width: clamp(90px, 35%, 130px);
        height: clamp(90px, 35%, 130px);
    }

    .feature-item-title {
        font-size: clamp(17px, 1.9vw, 20px);
    }
}

/* ============================================================
   CONTACT FORM (Frame 91:626)
   ============================================================ */
.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-form-group{
    width: 100%;
}

.contact-wrapper {
    width: 100%;
    max-width: 677px;
}

.contact-form-main {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(7.5px);
    border: 1px solid #DADEFF;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 33px;
}

.contact-form-row {
    display: flex;
    gap: 15px;
    align-items: center;
    
}

.contact-form-group {
    flex: 1;
    margin-bottom: 0; /* Remove any default margin */
    position: relative;
}

.contact-input-wrapper,
.contact-message-wrapper {
    position: relative;
    min-height: calc(100% + 24px); /* Reserve space for error message */
}

/* Error message styling with fixed positioning */
.contact-input-wrapper .error-message,
.contact-message-wrapper .error-message {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    font-size: 0.875rem;
    color: #dc3545;
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 400;
    line-height: 1.4;
    min-height: 20px;
    animation: fadeInError 0.2s ease;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form input{
    width: 100%;
    padding: 18px 16px;
    padding-left: 22px;
    background: #FFFFFF;
    border: 1px solid #DADEFF;
    border-radius: 12px;
    font-family: 'Peyda', Tahoma, sans-serif;
    font-size: 16px;
    color: #3d3d3d;
    transition: border-color 0.2s;
    direction: rtl !important;
}

form input::placeholder{
    color: #BDBDBD;
}

/* Validation states */
form input.is-invalid,
.contact-message.is-invalid {
    border-color: #dc3545;
}

form input.is-valid,
.contact-message.is-valid {
    border-color: #28a745;
}

form input:focus.is-invalid,
.contact-message:focus.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

form input:focus.is-valid,
.contact-message:focus.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.contact-input::placeholder {
    color: #BDBDBD;
}

.contact-input:focus {
    outline: none;
    border-color: #0070F0;
}

.contact-input:focus + .contact-label,
.contact-input:not(:placeholder-shown) + .contact-label {
    opacity: 1;
    transform: translateY(-20px);
    font-size: 12px;
}

.contact-message {
    width: 100%;
    min-height: 194px;
    padding: 18px 16px;
    padding-left: 22px;
    background: #FFFFFF;
    border: 1px solid #DADEFF;
    border-radius: 12px;
    font-family: 'Peyda', Tahoma, sans-serif;
    font-size: 16px;
    color: #BDBDBD;
    resize: vertical;
    transition: border-color 0.2s;
}

.contact-message::placeholder {
    color: #BDBDBD;
}

.contact-message:focus {
    outline: none;
    border-color: #0070F0;
}

.contact-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    width: fit-content;
    background: rgba(0, 97, 254, 0.1);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-submit-btn:hover {
    background: rgba(0, 97, 254, 0.2);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-submit-btn.success {
    background: rgba(40, 167, 69, 0.2);
}

/* ARCaptcha in contact form */
.contact-captcha-group {
    display: flex;

}


.contact-submit-text {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5em;
    color: #0070F0;
}

.contact-submit-btn svg {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 991.98px) {


    .contact-form-main {
        padding: 32px 24px;
    }

    .contact-form-row {
        flex-direction: column;
        gap: 36px;
    }

    .contact-form-group {
        margin-bottom: 4px; /* Extra space for error messages in mobile */
    }

    .contact-input {
        padding: 14px 16px;
    }

    .contact-message {
        min-height: 150px;
        padding: 14px 16px;
    }
}

@media (max-width: 575.98px) {


    .contact-form-main {
        padding: 24px 16px;
    }

    .contact-input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .contact-message {
        font-size: 14px;
        padding: 12px 16px;
    }
}


/* ============================================================
   SWIPER CUSTOMIZATION
   ============================================================ */
.hero-swiper {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
}

.hero-swiper .swiper-wrapper {
    height: 100%;
    transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Mobile: Enable autoHeight behavior */
@media (max-width: 991.98px) {
    .hero-swiper {
        height: auto;
        flex: none;
    }

    .hero-swiper .swiper-wrapper {
        height: auto;
        transition: height 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .hero-swiper .swiper-slide {
        height: auto;
        align-items: flex-start;
    }
    
    /* Smooth scroll on body when height changes */
    body {
        transition: scroll-behavior 0.3s ease;
    }
}

/* RTL Support for Swiper */
.hero-swiper[dir="rtl"] .swiper-slide {
    direction: rtl;
}

/* Active nav link */
.nav-link.active-slide {
    color: var(--blue) !important;
    position: relative;
}

.nav-link.active-slide::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--blue);
}

/* ============================================================
   DEMO MODAL
   ============================================================ */

/* Modal Overlay */
.demo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.demo-modal-container {
    position: relative;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.demo-modal-overlay.active .demo-modal-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.demo-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F5F6FF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--mid-gray);
    z-index: 10;
}

.demo-modal-close:hover {
    background: var(--blue);
    color: white;
    transform: rotate(90deg);
}

/* Modal Content */
.demo-modal-content {
    padding: 48px 40px 40px;
}

/* Modal Header */
.demo-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.demo-modal-title {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--dark);
    margin: 0 0 12px;
    line-height: 1.3;
}

.demo-modal-description {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--mid-gray);
    line-height: 1.6;
    margin: 0;
}

/* Form */
.demo-modal-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.demo-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-form-label {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--dark);
    margin: 0;
}

.demo-input-wrapper {
    position: relative;
}

.demo-form-input {
    width: 100%;
    padding: 14px 16px;
    background: #F5F6FF;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Peyda', Tahoma, sans-serif;
    font-size: 15px;
    color: var(--dark);
    transition: all 0.2s;
    direction: rtl;
}

.demo-form-input::placeholder {
    color: #BDBDBD;
}

.demo-form-input:focus {
    outline: none;
    background: #FFFFFF;
    border-color: var(--blue);
}

.demo-form-input.is-valid {
    border-color: #28a745;
    background: #f0fdf4;
}

.demo-form-input.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

/* Error Message */
.demo-error-message {
    font-family: 'Peyda', Tahoma, sans-serif;
    font-size: 13px;
    color: #dc3545;
    margin-top: 6px;
    display: none;
}

.demo-form-input.is-invalid ~ .demo-error-message {
    display: block;
}

/* Modal Actions */
.demo-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.demo-btn {
    flex: 1;
    font-family: 'Peyda', Tahoma, sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.demo-btn-cancel {
    background: #F5F6FF;
    color: var(--mid-gray);
}

.demo-btn-cancel:hover {
    background: #E3E5E5;
    color: var(--dark);
}

.demo-btn-submit {
    background: linear-gradient(81deg, #12934D 0%, #206EEF 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 112, 240, 0.3);
}

.demo-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 112, 240, 0.4);
}

.demo-btn-submit:active {
    transform: translateY(0);
}

.demo-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.demo-btn-submit.success {
    background: #28a745;
}

/* Responsive */
@media (max-width: 575.98px) {
    .demo-modal-content {
        padding: 40px 24px 32px;
    }

    .demo-modal-title {
        font-size: 24px;
    }

    .demo-modal-description {
        font-size: 14px;
    }

    .demo-modal-close {
        top: 16px;
        left: 16px;
        width: 36px;
        height: 36px;
    }

    .demo-modal-actions {
        flex-direction: column-reverse;
    }

    .demo-btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .demo-modal-content {
        padding: 36px 20px 28px;
    }

    .demo-modal-title {
        font-size: 22px;
    }
}
