@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #164221;        /* Deep Brand Forest Green (الأصمعي) */
    --primary-light: #286e39;  /* Medium Brand Green */
    --primary-dark: #0f3016;   /* Darkest Forest Green */
    --secondary: #1e562c;      /* Rich Green */
    --accent: #6eb72c;         /* Bright Lime Feather Green (الريشة) */
    --accent-light: #8dc73f;
    --light: #f2faf4;          /* Soft Clean Greenish Canvas */
    --gray-bg: #eaf7ed;        /* Soft Mint Background */
    --dark: #0f2414;           /* Dark text */
    --text-muted: #4a634e;     /* Slate-Green Muted text */
    --glass-bg: rgba(242, 250, 244, 0.9);
    --glass-border: rgba(22, 66, 33, 0.08);
    --shadow-soft: 0 15px 35px rgba(15, 48, 22, 0.04);
    --shadow-hover: 0 20px 45px rgba(15, 48, 22, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    background-color: var(--light);
    color: var(--dark);
    direction: rtl;
    text-align: right;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.7;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--primary);
    line-height: 1.35;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
}

.text-primary {
    color: var(--secondary) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections */
section {
    padding: 90px 0;
    position: relative;
    scroll-margin-top: 85px;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-gray {
    background-color: var(--gray-bg) !important;
}

/* Header & Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(10, 25, 47, 0.05);
    padding: 0.9rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo-svg {
    transition: var(--transition);
}

.navbar-brand:hover .brand-logo-svg {
    transform: rotate(-10deg) scale(1.05);
}

.nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary) !important;
    margin: 0 2px;
    padding: 6px 14px !important;
    border-radius: 10px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--color-200);
    color: var(--primary-dark) !important;
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    border-radius: 50px;
    padding: 8px 22px !important;
    box-shadow: 0 4px 12px rgba(22, 66, 33, 0.2);
    font-weight: 700;
    transition: var(--transition);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(22, 66, 33, 0.3);
    opacity: 0.95;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    box-shadow: 0 8px 24px rgba(22, 66, 33, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(22, 66, 33, 0.35);
    color: white !important;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border: none;
    color: white !important;
    box-shadow: 0 8px 24px rgba(110, 183, 44, 0.25);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(110, 183, 44, 0.4);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(22, 66, 33, 0.15);
}

/* Section Header Structure */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-200);
    color: var(--color-1000);
    padding: 7px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-300);
}

.section-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: var(--color-1000);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8;
}

.heading-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    margin: 0.75rem auto 1rem;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(30, 58, 138, 0.03) 0%, transparent 45%),
                radial-gradient(circle at 90% 80%, rgba(217, 119, 6, 0.03) 0%, transparent 45%);
    padding-top: 130px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 500;
}

/* Embedded Premium Video mock */
.video-mock-container {
    position: relative;
    border-radius: 24px;
    background: var(--primary);
    padding: 8px;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.video-mock-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(10, 25, 47, 0.15);
}

.video-mock-aspect {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 18px;
}

.video-mock-aspect iframe,
.video-mock-aspect video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-overlay-play {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: var(--transition);
}

.video-overlay-play i {
    font-size: 4rem;
    color: white;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    transition: var(--transition);
}

.video-mock-container:hover .video-overlay-play i {
    transform: scale(1.15);
    color: var(--accent);
}

/* Section Header */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    border-radius: 10px;
}

.section-title p {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 15px auto 0 auto;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 58, 138, 0.2);
}

/* Icon Box */
.icon-box {
    width: 75px;
    height: 75px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 138, 0.06);
    color: var(--secondary);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    font-size: 2.2rem;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.glass-card:hover .icon-box {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    transform: translateY(-5px) rotate(3deg);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
}

/* Audience personas */
.persona-card {
    background: white;
    border-radius: 26px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    padding: 3rem 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.persona-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: var(--secondary);
    transition: var(--transition);
}

.persona-card.institute::before {
    background: var(--accent);
}

.persona-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.persona-card:hover::before {
    width: 14px;
}

/* Continuous Logo Scroller */
.partners-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
    background: #f8fafc;
    border-radius: 24px;
    box-shadow: inset 10px 0 30px rgba(0,0,0,0.01), inset -10px 0 30px rgba(0,0,0,0.01);
    border: 1px solid rgba(0,0,0,0.02);
}

.partners-slider-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: scrollRTL 40s linear infinite;
}

.partners-slider-track:hover {
    animation-play-state: paused;
}

@keyframes scrollRTL {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

.partner-logo-container {
    background: white;
    padding: 15px 30px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

.partner-logo-container:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 58, 138, 0.15);
}

.partner-logo-container span {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

/* Anti-Piracy Shield Graphic Animation */
.shield-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.1);
    filter: blur(25px);
    animation: pulseGlow 4s ease-in-out infinite;
}

.shield-icon-animated {
    font-size: 6.5rem;
    color: var(--secondary);
    filter: drop-shadow(0 10px 20px rgba(30,58,138,0.2));
    animation: bounceShield 5s ease-in-out infinite;
    z-index: 2;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(0.9);
        background: rgba(30, 58, 138, 0.1);
    }
    50% {
        transform: scale(1.2);
        background: rgba(217, 119, 6, 0.15);
    }
}

@keyframes bounceShield {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
        color: var(--accent);
    }
}

/* Counters */
.counter-box {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.counter-box i {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.counter-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.counter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 58, 138, 0.1);
}

.stars-rating {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.75;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text::before {
    content: '“';
    font-size: 4rem;
    color: rgba(30, 58, 138, 0.08);
    position: absolute;
    top: -30px;
    right: -10px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-info h6 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Mobile Apps Showcase & Sleek hardware CSS mockup frame */
.phone-mockup-frame {
    position: relative;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
    border: 10px solid #2C1E1A; /* Chocolate brown premium phone bezel */
    border-radius: 42px;
    box-shadow: 0 25px 50px rgba(78, 52, 46, 0.2);
    background: #000;
    overflow: hidden;
    aspect-ratio: 9 / 19.5; /* Modern phone screen aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.phone-mockup-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 20px;
    background: #2C1E1A; /* Dynamic Island Notch */
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.phone-mockup-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-mockup-frame:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 35px 70px rgba(78, 52, 46, 0.3);
}

.app-mockup-wrapper {
    position: relative;
    max-width: 310px;
    margin: 0 auto;
}

.mockup-screens-container {
    position: relative;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
    border: 10px solid #2C1E1A; /* Chocolate brown premium phone bezel */
    border-radius: 42px;
    box-shadow: 0 25px 50px rgba(78, 52, 46, 0.2);
    background: #000;
    overflow: hidden;
    aspect-ratio: 9 / 19.5; /* Modern phone screen aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-screens-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 20px;
    background: #2C1E1A; /* Dynamic Island Notch */
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.mockup-screens-container .app-mockup-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.mockup-screens-container .app-mockup-img.active {
    position: relative;
    opacity: 1;
    z-index: 2;
}

.float-animation {
    animation: floatAnim 6s ease-in-out infinite;
}

@keyframes floatAnim {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    color: white;
    padding: 10px 20px;
    border-radius: 14px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.08);
}

.store-badge:hover {
    background: #1e293b;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    color: white;
}

.store-badge i {
    font-size: 2.1rem;
    margin-left: 12px;
}

.badge-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.25;
}

.badge-text .small-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
}

.badge-text .big-text {
    font-size: 1.05rem;
    font-weight: 700;
}

/* FAQ Accordion */
.faq-accordion .accordion-item {
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    margin-bottom: 1.2rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: white;
}

.faq-accordion .accordion-button {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    padding: 1.5rem;
    background: white;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(30, 58, 138, 0.03);
    color: var(--secondary);
    box-shadow: none;
}

.faq-accordion .accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

.faq-accordion .accordion-body {
    padding: 1.5rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Request Demo Form */
.request-form-card {
    background: white;
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(0,0,0,0.02);
}

.request-form-card .form-control,
.request-form-card .form-select {
    border-radius: 12px;
    padding: 12px 18px;
    border: 1.5px solid #cbd5e1;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.request-form-card .form-control:focus,
.request-form-card .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* Footer styling */
footer {
    background: var(--dark) !important;
    color: #94a3b8;
    padding: 80px 0 40px 0 !important;
    border-top: 5px solid var(--secondary);
}

footer h4 {
    color: white !important;
}

footer .footer-brand {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    display: inline-block;
}

footer a {
    color: #94a3b8;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent) !important;
}

footer hr {
    border-color: rgba(255,255,255,0.08) !important;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary);
    color: white !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.float-btn.whatsapp {
    background: #25d366;
}

.float-btn.telegram {
    background: #0088cc;
}

/* Responsive fixes */
@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .section-title h2 {
        font-size: 2.1rem;
    }
    
    .store-badges {
        justify-content: center;
    }
}
