/* ==========================================================================
   Infusionicsoft SMS &mdash; School Management System Sales Website
   Domain: https://sms.infusionicsoft.com
   Style matching: nms.infusionicsoft.com & store.infusionicsoft.com
   ========================================================================== */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --slate: #475569;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(79, 70, 229, 0.12);
    --shadow-xl: 0 30px 60px rgba(15, 23, 42, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #334155;
    background-color: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* RTL & Arabic Typography */
html[dir="rtl"],
body[dir="rtl"],
[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 0.85rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon-box {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.brand-name {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.nav-link {
    font-weight: 600;
    color: #1e293b !important;
    margin: 0 0.4rem;
    padding: 0.5rem 0.8rem !important;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Action Buttons */
.btn-primary-gradient {
    background: var(--gradient);
    color: white !important;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
    color: white;
}

.btn-outline-gradient {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    background: transparent;
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-gradient:hover {
    background: var(--gradient);
    color: white !important;
    border-color: transparent;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    background: #20ba5c;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

/* Hero Section */
.hero {
    padding: 130px 0 80px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, rgba(124, 58, 237, 0.03) 100%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--primary);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero h1 {
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.5rem;
    color: var(--dark);
    letter-spacing: -1.2px;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 580px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.15rem;
    line-height: 1;
}

.stat-item p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0;
    font-weight: 500;
}

/* Dashboard Mockup / Preview */
.dashboard-preview {
    background: white;
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.dashboard-preview:hover {
    transform: translateY(-6px);
}

/* Stats Counter Bar (NMS style) */
.stats-bar-container {
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

.stat-card-nms {
    background: var(--gradient);
    color: white;
    padding: 1.8rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.stat-card-nms.emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card-nms.amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card-nms.violet {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.stat-number-nms {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label-nms {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* One-Click Setup Section */
.setup-section {
    background: var(--gradient);
    color: white;
    padding: 85px 0;
    position: relative;
    overflow: hidden;
}

.setup-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.setup-steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.step-box {
    text-align: center;
    flex: 1;
    min-width: 180px;
}

.step-circle {
    width: 65px;
    height: 65px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 auto 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 55px;
}

.section-header .tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 8px;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.9rem;
    letter-spacing: -0.8px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--slate);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #edf2f7;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.feature-icon i {
    font-size: 1.9rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--slate);
    line-height: 1.65;
    margin-bottom: 0;
}

/* Interactive License Calculator (inspired by store.infusionicsoft.com) */
.pricing-calculator {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid #e2e8f0;
}

.calculator-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.price-display-box {
    background: var(--gradient);
    color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.price-display-box h2 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 800;
}

.year-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.year-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.year-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.year-btn:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

/* Standard Pricing Cards */
.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    text-align: center;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
}

.popular-badge {
    background: var(--gradient);
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin: 1.2rem 0;
    line-height: 1;
}

.pricing-card .price span {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

[dir="rtl"] .feature-list {
    text-align: right;
}

.feature-list li {
    padding: 0.55rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 14px;
    color: #475569;
}

.feature-list i {
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

/* Free AI School Tools */
.tool-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #edf2f7;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tool-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.3rem;
}

.tool-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

/* System Requirements Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    max-width: 950px;
    margin: 0 auto;
}

.spec-item {
    background: white;
    padding: 1.6rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

[dir="rtl"] .spec-item {
    border-left: none;
    border-right: 4px solid var(--primary);
}

.spec-item h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

.spec-item p {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border-radius: var(--radius-sm);
    padding: 1.4rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--dark);
    font-size: 16px;
}

.faq-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
    color: #64748b;
    display: none;
    line-height: 1.7;
    font-size: 14px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #edf2f7;
    height: 100%;
}

.testimonial-content {
    font-style: italic;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.75;
    font-size: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 4.5rem 0 2rem;
    font-size: 14px;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1.2rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .hero h1 { font-size: 2.6rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .specs-grid { grid-template-columns: 1fr; }
    .pricing-card.popular { transform: none; }
}


/* --- Desktop Software Showcase & Brand Logo --- */
.brand-logo-img {
    height: 48px;
    width: auto;
    max-width: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(79, 70, 229, 0.25));
    transition: transform 0.3s ease;
}
.brand-logo-img:hover {
    transform: scale(1.05);
}

.desktop-frame {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.desktop-frame:hover {
    box-shadow: 0 30px 70px -12px rgba(79, 70, 229, 0.25), 0 0 0 1px rgba(79, 70, 229, 0.3);
}

.desktop-window-bar {
    background: #0f172a;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.window-dots {
    display: flex;
    gap: 7px;
}
.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 0 auto;
    font-family: 'Inter', system-ui, sans-serif;
}

.screenshot-img-preview {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 16px 16px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.screenshot-tab-btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.screenshot-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f8fafc;
    transform: translateY(-1px);
}
.screenshot-tab-btn.active {
    background: var(--gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.screenshot-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* --- Precise Navbar, Brand Logo & Language Switcher Alignments --- */
.navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.brand-logo-img {
    height: 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 2px 5px rgba(79, 70, 229, 0.3));
    transition: transform 0.2s ease;
}
.brand-logo-img:hover {
    transform: scale(1.05);
}

.brand-text-wrap {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.15 !important;
}

.brand-name {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.4px !important;
    color: #0f172a !important;
    white-space: nowrap !important;
}
.brand-name .highlight {
    background: var(--gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.brand-sub {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.lang-toggle-btn {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 50px !important;
    padding: 6px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    line-height: 1.3 !important;
}
.lang-toggle-btn:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    background: #f8fafc !important;
    transform: translateY(-1px) !important;
}

/* Software Thumbnails Alignment */
.software-thumb-box {
    height: 220px !important;
    overflow: hidden !important;
    background: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
    position: relative !important;
}
.software-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top left !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}
.card:hover .software-thumb-img {
    transform: scale(1.03) !important;
}

/* Desktop Frame Hero & Showcase Fixes */
.desktop-frame {
    background: #1e293b !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
}
.desktop-window-bar {
    background: #0f172a !important;
    padding: 9px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.screenshot-img-preview {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
    object-position: top left !important;
    border-radius: 0 !important;
}
