﻿/* ── Base: do NOT reset margin/padding — Bootstrap utilities must work ── */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary: #4A90E2;
    --primary2: #3a7bd5;
    --teal: #50E3C2;
    --teal2: #38c9aa;
    --white: #ffffff;
    --off: #f0f7ff;
    --off2: #e8f4fd;
    --text: #1e2d3d;
    --muted: #6c757d; /* match Bootstrap text-muted */
    --border: rgba(74,144,226,0.15);
    --sidebar-bg: #f8fbff;
    --sidebar-border: #ddeaf8;
    --nav-h: 56px;
    --sidebar-w: 280px;
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

/* Match main.css exactly */
body {
    padding-top: 50px;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

p {
    font-family: 'Open Sans', sans-serif;
}

/* ── Navbar ── */
.navbar {
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(33,37,41,0.99) !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ── Hero — matches default.aspx: .hero.py-5 ── */
.hero {
    background: linear-gradient(135deg, #4A90E2, #50E3C2);
    position: relative;
    overflow: hidden;
    /* py-5 from Bootstrap = 3rem top/bottom — do NOT set padding here, let Bootstrap py-5 handle it */
}

.hero-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.07);
    background: #f0f4f8;
    position: relative;
}
/* Soft light overlay */
.hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 55% 60% at 75% 40%, rgba(255,255,255,0.18) 0%, transparent 65%), radial-gradient(ellipse 40% 50% at 15% 80%, rgba(255,255,255,0.10) 0%, transparent 55%);
}
/* Subtle dot grid */
.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.25) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black, transparent);
}

/* ── Section intro ── */
.section-intro {
    background: var(--off);
    padding: 3rem 1rem;
    text-align: center;
}

.section-intro .tag {
    display: inline-block;
    background: rgba(74,144,226,0.1);
    color: var(--primary2);
    border: 1px solid rgba(74,144,226,0.25);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(74,144,226,0.08);
}

.section-intro h2 {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-intro p {
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Layout: sidebar + main ── */
.features-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    background: var(--off);
    min-height: 100vh;
}

@media(max-width:960px) {
    .features-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Sticky Sidebar ── */
.sidebar {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    padding: 1.8rem 0.5rem;
    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #6b7c93;
    padding: 0 1.4rem;
    margin: 1.2rem 0 0.6rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1.4rem;
    margin: 4px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.98rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    color: var(--text);
    background: rgba(74,144,226,0.08);
    transform: translateX(2px);
}

.sidebar-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(74,144,226,0.12);
    box-shadow: 0 4px 10px rgba(74,144,226,0.08);
}

.sidebar-link .s-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(74,144,226,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.sidebar-link.active .s-icon {
    background: rgba(74,144,226,0.15);
}

.sidebar-link .s-text {
    display: flex;
    flex-direction: column;
}

.sidebar-link .s-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

.sidebar-link .s-sub {
    font-size: 0.88rem;
    color: #9bb0c4;
    margin-top: 1px;
}

.sidebar-link.active .s-sub {
    color: rgba(74,144,226,0.7);
}

/* Mobile tab bar replaces sidebar */
.mobile-tabs {
    display: none;
    overflow-x: auto;
    white-space: nowrap;
    background: var(--white);
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    scrollbar-width: none;
    position: sticky;
    top: var(--nav-h);
    z-index: 100;
    border-bottom: 1px solid var(--sidebar-border);
    box-shadow: 0 2px 8px rgba(74,144,226,0.08);
}

.mobile-tabs::-webkit-scrollbar {
    display: none;
}

.mobile-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--off);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    border: 1px solid var(--sidebar-border);
}

.mobile-tab.active, .mobile-tab:hover {
    background: rgba(74,144,226,0.1);
    color: var(--primary);
    border-color: rgba(74,144,226,0.3);
}

@media(max-width:960px) {
    .sidebar {
        display: none;
    }

    .mobile-tabs {
        display: flex;
    }
}

/* ── Feature Sections ── */
.main-content {
    background: var(--white);
}

.feature-section {
    padding: 3rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.feature-section:nth-child(even) {
    background: var(--off);
}

.feature-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media(max-width:720px) {
    .feature-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-section {
        padding: 2rem 1rem;
    }
}

.feature-section:nth-child(even) .feature-inner {
    direction: rtl;
}

.feature-section:nth-child(even) .feature-inner > * {
    direction: ltr;
}

@media(max-width:720px) {
    .feature-section:nth-child(even) .feature-inner {
        direction: ltr;
    }
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary2);
    background: rgba(74,144,226,0.08);
    border: 1px solid rgba(74,144,226,0.2);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(74,144,226,0.08);
}

.feature-section h3 {
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.feature-section p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--text);
    font-weight: 400;
    line-height: 1.6;
}

.feature-bullets li .bullet-icon {
    flex-shrink: 0;
    margin-top: 2px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--teal2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
}

/* Carousel */
.carousel-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.07);
    background: #f0f4f8;
    position: relative;
}

.carousel-wrap img {
    width: 100%;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.c-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text);
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}

.c-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background 0.2s, width 0.2s;
    cursor: pointer;
}

.dot.active {
    background: var(--primary);
    width: 18px;
    border-radius: 3px;
}

/* Placeholder screens (when no images) */
.screen-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--off), var(--off2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(74,144,226,0.3);
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
}

.screen-placeholder span {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── AI Section ── */
.ai-section {
    background: linear-gradient(135deg, #e8f4fd, #f0fbf8);
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--sidebar-border);
    border-bottom: 1px solid var(--sidebar-border);
}

.ai-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 50% 60% at 80% 30%, rgba(74,144,226,0.07) 0%, transparent 60%), radial-gradient(ellipse 40% 50% at 10% 80%, rgba(80,227,194,0.06) 0%, transparent 50%);
}

.ai-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.ai-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ai-header .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(74,144,226,0.1);
    border: 1px solid rgba(74,144,226,0.25);
    color: var(--primary2);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(74,144,226,0.08);
}

.ai-header h2 {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.ai-header p {
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media(max-width:800px) {
    .ai-grid {
        grid-template-columns: 1fr;
    }
}

.ai-carousel-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(74,144,226,0.15), 0 0 0 1px rgba(74,144,226,0.12);
    position: relative;
}

.ai-carousel-wrap img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.ai-img-caption {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--muted);
    font-style: italic;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-card {
    background: var(--white);
    border: 1px solid var(--sidebar-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(74,144,226,0.06);
}

.ai-card:hover {
    border-color: rgba(74,144,226,0.35);
    box-shadow: 0 6px 20px rgba(74,144,226,0.12);
}

.ai-card-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(74,144,226,0.12), rgba(80,227,194,0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}

.ai-card h4 {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.ai-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.ai-card p em {
    color: var(--primary);
    font-style: normal;
}

.ai-protip {
    margin-top: 0.5rem;
    background: rgba(74,144,226,0.05);
    border: 1px solid rgba(74,144,226,0.18);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--muted);
    line-height: 1.6;
}

.ai-protip strong {
    color: var(--primary);
}

/* ── Footer ── */
footer {
    background: #1e2d3d;
    color: rgba(255,255,255,0.6);
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

.social-icon {
    color: rgba(255,255,255,0.7);
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.social-icon:hover {
    color: var(--teal);
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-wrap img,
.ai-carousel-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: white;
}
