/* ==============================
   GLOBAL VARIABLES & RESET
   ============================== */
:root {
    --sky-blue: #1AABFF;
    --sky-light: #6CCEFF;
    --sky-dark: #007ACC;
    --sky-glow: rgba(26, 171, 255, 0.25);

    --grey-900: #1A202C;
    --grey-800: #2D3748;
    --grey-700: #4A5568;
    --grey-400: #A0AEC0;
    --grey-200: #E2E8F0;
    --grey-100: #F7FAFC;

    --white: #FFFFFF;
    --whatsapp: #25D366;

    --font: 'Tajawal', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--grey-100);
    color: var(--grey-800);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* GRADIENT TEXT */
.gradient-text {
    background: linear-gradient(120deg, var(--sky-blue), var(--sky-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==============================
   CURSOR FOLLOWER
   ============================== */
.cursor-follower {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sky-glow);
    border: 2px solid var(--sky-blue);
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-follower.expand {
    width: 40px;
    height: 40px;
    background: var(--sky-glow);
}

/* ==============================
   HEADER
   ============================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    padding: 16px 0;
    background: transparent;
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    padding: 12px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    color: var(--sky-blue);
    font-size: 1.3rem;
}
.logo-text {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--grey-900);
}
.header.scrolled .logo-text { color: var(--grey-900); }

.nav { display: flex; gap: 32px; }
.nav-link {
    font-weight: 700;
    color: var(--grey-900);
    font-size: 1rem;
    position: relative;
}
.nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--sky-blue);
    transition: width 0.3s;
    margin-top: 2px;
}
.nav-link:hover::after { width: 100%; }

.btn-cta {
    background: var(--sky-blue);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 16px var(--sky-glow);
}
.btn-cta:hover {
    background: var(--sky-dark);
    transform: translateY(-2px);
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #EBF8FF 0%, var(--grey-100) 60%, #EBF3FF 100%);
}

.hero-shapes { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
}
.s1 {
    width: 500px; height: 500px;
    background: var(--sky-light);
    top: -180px; right: -100px;
    animation: drift 8s ease-in-out infinite;
}
.s2 {
    width: 350px; height: 350px;
    background: #B3E5FC;
    bottom: -100px; left: 10%;
    animation: drift 10s ease-in-out infinite reverse;
}
.s3 {
    width: 200px; height: 200px;
    background: var(--sky-blue);
    top: 40%; left: 40%;
    animation: drift 12s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-40px) scale(1.05); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--sky-glow), rgba(26,171,255,0.08));
    border: 1px solid rgba(26,171,255,0.3);
    color: var(--sky-dark);
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--grey-900);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--grey-700);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-main {
    background: var(--sky-blue);
    color: var(--white);
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 8px 24px var(--sky-glow);
}
.btn-main:hover {
    background: var(--sky-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--sky-glow);
}

.btn-outline {
    border: 2px solid var(--sky-blue);
    color: var(--sky-blue);
    padding: 13px 32px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-outline:hover {
    background: var(--sky-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 24px;
    align-items: center;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--sky-blue);
}
.stat span {
    font-size: 0.85rem;
    color: var(--grey-700);
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--grey-200);
}

/* Hero Visual */
.hero-visual { position: relative; }

.hero-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(8deg) rotateX(-4deg);
    transition: transform 0.5s ease;
}
.hero-card:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }

.card-header-dots {
    display: flex;
    gap: 7px;
    margin-bottom: 20px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #FF5F57; }
.dot.y { background: #FEBC2E; }
.dot.g { background: #28C840; }

/* Bar Chart Visual */
.card-img-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 120px;
    margin-bottom: 20px;
}
.chart-bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--sky-blue), var(--sky-light));
    animation: barGrow 1.5s ease-in-out infinite alternate;
}
.b1 { height: 40%; animation-delay: 0s; }
.b2 { height: 70%; animation-delay: 0.2s; }
.b3 { height: 55%; animation-delay: 0.4s; }
.b4 { height: 90%; animation-delay: 0.6s; }
.b5 { height: 65%; animation-delay: 0.8s; }
@keyframes barGrow {
    from { opacity: 0.7; }
    to { opacity: 1; transform: scaleY(1.05); }
}

.card-line {
    height: 10px;
    border-radius: 10px;
    background: var(--grey-200);
    margin-bottom: 10px;
}
.card-line.short { width: 60%; }

/* Mini floating cards */
.mini-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--grey-200);
    animation: floatCard 4s ease-in-out infinite;
}
.mini-card i { color: var(--sky-blue); font-size: 1.3rem; }
.mini-card span { line-height: 1.4; }
.mini-card small { color: var(--grey-400); font-weight: 400; }
.mc1 { bottom: -24px; right: -24px; animation-delay: 0s; }
.mc2 { top: -24px; left: -24px; animation-delay: 1.5s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==============================
   SERVICES STRIP
   ============================== */
.services-strip {
    background: var(--white);
    padding: 48px 0;
    border-top: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
}
.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--grey-200);
    transition: var(--transition);
    cursor: default;
}
.strip-item i {
    font-size: 2rem;
    color: var(--sky-blue);
}
.strip-item span {
    font-weight: 700;
    color: var(--grey-900);
}
.strip-item:hover {
    background: linear-gradient(135deg, #EBF8FF, var(--white));
    border-color: var(--sky-light);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

/* ==============================
   PRICING SECTION
   ============================== */
.pricing { padding: 100px 0; background: var(--grey-100); }

.sec-header { text-align: center; margin-bottom: 64px; }
.sec-tag {
    display: inline-block;
    background: var(--sky-glow);
    color: var(--sky-dark);
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.sec-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    color: var(--grey-900);
    margin-bottom: 12px;
}
.sec-header p { color: var(--grey-700); font-size: 1.05rem; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    align-items: start;
}

.p-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 28px;
    border: 1px solid var(--grey-200);
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.p-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sky-light);
}

.p-card.featured {
    background: var(--grey-900);
    border-color: var(--grey-900);
    color: var(--white);
    transform: scale(1.03);
}
.p-card.featured:hover { transform: scale(1.03) translateY(-8px); }

.feat-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--sky-blue), var(--sky-dark));
    color: var(--white);
    padding: 4px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.p-card-icon {
    font-size: 2.8rem;
    color: var(--sky-blue);
    margin-bottom: 20px;
}

.p-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.p-card.featured h3 { color: var(--white); }

.p-card-desc {
    font-size: 0.9rem;
    color: var(--grey-400);
    margin-bottom: 24px;
}
.p-card.featured .p-card-desc { color: #CBD5E0; }

.p-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}
.from-lbl {
    font-size: 0.85rem;
    color: var(--grey-400);
}
.p-card.featured .from-lbl { color: #CBD5E0; }
.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--sky-blue);
    line-height: 1;
}
.currency {
    font-size: 0.9rem;
    color: var(--grey-400);
}
.p-card.featured .currency { color: #CBD5E0; }

.p-features {
    text-align: right;
    margin-bottom: 28px;
}
.p-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.92rem;
    color: var(--grey-700);
}
.p-card.featured .p-features li { color: #CBD5E0; }
.p-features i { color: var(--sky-blue); }

.p-btn {
    display: block;
    width: 100%;
    padding: 13px 0;
    border-radius: 50px;
    border: 2px solid var(--sky-blue);
    color: var(--sky-blue);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
}
.p-btn:hover {
    background: var(--sky-blue);
    color: var(--white);
}
.featured-btn {
    background: var(--sky-blue);
    color: var(--white);
    border: none;
}
.featured-btn:hover { background: var(--sky-light); }

/* ==============================
   FOOTER
   ============================== */
.footer {
    background: var(--grey-900);
    color: var(--white);
    padding: 80px 0 24px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}
.footer .logo-text { color: var(--white); }
.footer-brand p {
    color: #A0AEC0;
    margin-top: 16px;
    font-size: 0.95rem;
}
.footer-links h4, .footer-services h4, .footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--sky-blue);
}
.footer-links li, .footer-services li { margin-bottom: 10px; }
.footer-links a, .footer-services a { color: #A0AEC0; font-size: 0.95rem; }
.footer-links a:hover, .footer-services a:hover { color: var(--sky-blue); }

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.contact-row i { color: var(--sky-blue); width: 20px; }
.contact-row a { color: #A0AEC0; font-size: 1rem; }
.contact-row a:hover { color: var(--sky-blue); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

/* ==============================
   FLOATING ACTION BUTTONS
   ============================== */
.fab-group {
    position: fixed;
    bottom: 32px;
    left: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 800;
}
.fab {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.fab:hover { transform: scale(1.15); }
.fab.wp { background: var(--whatsapp); }
.fab.ph { background: var(--sky-blue); }
.fab.cb { background: var(--grey-800); }

/* ==============================
   CHATBOT PANEL
   ============================== */
.chatbot-panel {
    position: fixed;
    bottom: 110px;
    left: 32px;
    width: 320px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 899;
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1px solid var(--grey-200);
}
.chatbot-panel.open { display: flex; }
.chat-header {
    background: var(--grey-900);
    color: var(--white);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}
.chat-header button {
    background: transparent;
    border: none;
    color: var(--grey-400);
    cursor: pointer;
    font-size: 1rem;
}
.chat-body {
    padding: 16px;
    min-height: 180px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 85%;
}
.chat-msg.bot {
    background: var(--grey-100);
    color: var(--grey-800);
    align-self: flex-start;
}
.chat-msg.user {
    background: var(--sky-blue);
    color: var(--white);
    align-self: flex-end;
}
.chat-footer {
    display: flex;
    border-top: 1px solid var(--grey-200);
    padding: 10px 12px;
    gap: 8px;
}
#chat-input {
    flex: 1;
    border: 1px solid var(--grey-200);
    border-radius: 50px;
    padding: 8px 14px;
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    direction: rtl;
}
#chat-send-btn {
    background: var(--sky-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: var(--transition);
}
#chat-send-btn:hover { background: var(--sky-dark); }

/* ==============================
   SCROLL ANIMATIONS
   ============================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.p-card:nth-child(2) { transition-delay: 0.1s; }
.p-card:nth-child(3) { transition-delay: 0.2s; }
.p-card:nth-child(4) { transition-delay: 0.3s; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .strip-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .nav { display: none; }
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 2rem; }
    .hero-btns { flex-direction: column; }
    .footer-inner { grid-template-columns: 1fr; }
    .strip-grid { grid-template-columns: 1fr 1fr; }
    .fab-group { bottom: 20px; left: 16px; }
    .chatbot-panel { left: 16px; width: calc(100vw - 32px); }
}
