/* assets/css/index.css */

:root {
    --primary-blue: #2563eb;
    --dark-blue: #1d4ed8;
    --light-blue: #3b82f6;
    --sky-blue: #60a5fa;
    --bg-wave-light: #eff6ff;
    --bg-gradient-start: #e0f2fe;
    --bg-gradient-end: #3b82f6;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
    --hover-shadow: 0 15px 35px rgba(37, 99, 235, 0.18);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar Styling */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    margin: 0 6px;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue) !important;
}

.btn-custom-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: #fff !important;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
}

.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-custom-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue) !important;
    border-radius: 50px;
    padding: 9px 26px;
    font-weight: 700;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-custom-outline:hover {
    background-color: var(--primary-blue);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(180deg, #dbeaff 0%, #eff6ff 60%, #ffffff 100%);
    padding-top: 140px;
    padding-bottom: 90px;
    overflow: hidden;
}

.hero-wave-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.hero-wave-bg svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: #1e3a8a;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #3b82f6;
    font-weight: 700;
    margin-top: 10px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 20px;
}

/* Mockup Mobile Frame Styling */
.phone-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.phone-frame {
    width: 290px;
    height: 590px;
    border-radius: 40px;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.35);
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    position: relative;
}

/* شبیه‌سازی دقیق و ۱۰۰٪ مطابق با login.css داخل گوشی */
.phone-screen.login-shell-mockup {
    background-color: #3b82f6 !important;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 1rem 1.25rem;
    box-sizing: border-box;
}

/* قوس لایه اول (آبی روشن‌تر) - دقیقا وسط صفحه */
.phone-screen.login-shell-mockup::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: #2563eb;
    top: 32%;
    right: -140px;
    z-index: 1;
}

/* قوس لایه دوم (آبی تیره) - بخش پایینی */
.phone-screen.login-shell-mockup::after {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: #1d4ed8;
    top: 48%;
    right: -100px;
    z-index: 2;
}

.phone-screen.login-shell-mockup .login-header,
.phone-screen.login-shell-mockup .brand-container,
.phone-screen.login-shell-mockup .login-form,
.phone-screen.login-shell-mockup .login-footer {
    position: relative;
    z-index: 3;
}

.btn-back-mockup {
    color: #ffffff;
    font-size: 1.2rem;
    display: inline-block;
    line-height: 1;
    cursor: pointer;
}

.phone-screen.login-shell-mockup .brand-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 6px 0 0 0;
    color: #ffffff;
}

.phone-screen.login-shell-mockup .login-subtitle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.4rem;
    line-height: 1.4;
}

.phone-screen.login-shell-mockup .form-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.phone-screen.login-shell-mockup .form-input {
    width: 100%;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 0 12px;
    color: #ffffff;
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
    outline: none;
    text-align: left;
}

.phone-screen.login-shell-mockup .btn-main {
    width: 100%;
    height: 44px;
    background: #ffffff;
    color: #1d4ed8;
    border: none;
    border-radius: 22px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    margin-top: 0.6rem;
}

.phone-screen.login-shell-mockup .login-footer {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

/* Sections & Features */
.section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    background: #dbeafe;
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.feature-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: #dbeafe;
}

.feature-icon-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: var(--primary-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 22px;
}

/* iOS Guide Section */
.ios-guide-section {
    background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
    padding: 80px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.step-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

.step-card:hover {
    border-color: var(--sky-blue);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

/* Gallery & Screenshots */
.screenshot-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.screenshot-card:hover {
    transform: scale(1.03);
    box-shadow: var(--hover-shadow);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 2rem;
}

.screenshot-card:hover .screenshot-overlay {
    opacity: 1;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-radius: 32px;
    padding: 50px 30px;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(29, 78, 216, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    padding-top: 60px;
    padding-bottom: 30px;
    border-top: 1px solid #334155;
}

footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
}

footer p,
footer span,
footer div {
    color: #94a3b8;
    line-height: 1.7;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}



.sublist {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #60a5fa;
}

footer .btn-outline-light {
    border-color: #475569;
    color: #ffffff;
}

footer .btn-outline-light:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.brand-container {
    text-align: center;
    color: #ffffff;
    margin-top: auto !important;
    margin-bottom: 1rem;
}

/* ===================================================
   Mobile Responsiveness (واکنش‌گرایی اختصاصی موبایل)
   =================================================== */

/* لوگو و عنوان نوار بالا */
.brand-logo-circle {
    width: 40px;
    height: 40px;
}

.brand-logo-circle img {
    height: 38px;
    width: auto;
}

.brand-title-text {
    font-size: 0.9rem;
}

.brand-subtitle-text {
    font-size: 0.68rem;
}

/* بهینه‌سازی موکاپ گوشی در نمایشگرهای کوچک */
@media (max-width: 575.98px) {
    .phone-frame {
        width: 100%;
        max-width: 275px;
        height: 520px;
        border-radius: 32px;
        box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2), 0 0 0 8px #1d4ed8;
        padding: 8px;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 20px 18px;
    }

    .feature-icon-box {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-bottom: 14px;
        border-radius: 14px;
    }

    .cta-banner {
        padding: 30px 18px;
        border-radius: 20px;
    }

    /* گالری در موبایل تک‌ستونه/دوتایی مرتب */
    .screenshot-card {
        max-width: 220px;
        margin: 0 auto;
    }
}

/* تبلت‌ها و لپ‌تاپ‌های کوچک */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        padding: 15px;
        border-radius: 16px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        margin-top: 10px;
    }
}


/* ===================================================
   Responsive Fluid Typography (تایپوگرافی واکنش‌گرا و هوشمند)
   =================================================== */

/* عنوان اصلی هیرو */
.hero-title {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2.75rem) !important;
    font-weight: 900;
    line-height: 1.3;
}

/* زیرعنوان هیرو */
.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.25rem) !important;
}

/* توضیحات هیرو */
.hero-desc {
    font-size: clamp(0.875rem, 1vw + 0.4rem, 1.05rem) !important;
    line-height: 1.75;
}

/* عناوین اصلی بخش‌ها */
.section-title {
    font-size: clamp(1.35rem, 3vw + 0.4rem, 2.2rem) !important;
    font-weight: 800;
}

/* بج بالای بخش‌ها (Section Badges) */
.section-badge {
    font-size: clamp(0.72rem, 0.8vw + 0.4rem, 0.85rem) !important;
    padding: 6px 14px;
}

/* عنوان کارت‌های امکانات */
.feature-card h4 {
    font-size: clamp(1.05rem, 1.2vw + 0.5rem, 1.25rem) !important;
}

/* متن داخل کارت‌های امکانات */
.feature-card p {
    font-size: clamp(0.8rem, 0.8vw + 0.35rem, 0.9rem) !important;
}

/* عنوان بنر پایین صفحه (CTA Banner) */
.cta-banner h3 {
    font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2rem) !important;
}

.cta-banner p {
    font-size: clamp(0.8rem, 0.9vw + 0.35rem, 0.95rem) !important;
}

/* دکمه‌های اصلی و دانلود */
.btn-custom-primary,
.btn-custom-outline,
#btnDownloadApk {
    font-size: clamp(0.85rem, 0.8vw + 0.4rem, 1rem) !important;
}

/* آمار و ارقام (۱,۲۰۰ صیاد و ...) */
.hero-section h4 {
    font-size: clamp(1.2rem, 2vw + 0.5rem, 1.75rem) !important;
}

.hero-section small {
    font-size: clamp(0.7rem, 0.7vw + 0.35rem, 0.85rem) !important;
}

/* عنوان لوگوی نوار بالایی */
.brand-title-text {
    font-size: clamp(0.825rem, 1vw + 0.3rem, 1rem) !important;
}

.brand-subtitle-text {
    font-size: clamp(0.65rem, 0.6vw + 0.3rem, 0.72rem) !important;
}

/* متون فوتر */
footer h5 {
    font-size: clamp(0.95rem, 1vw + 0.4rem, 1.1rem) !important;
}

footer p, footer li {
    font-size: clamp(0.78rem, 0.7vw + 0.35rem, 0.875rem) !important;
}