@import url("https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700;800;900&display=swap");

:root {
    --primary: #047857;
    --primary-light: #059669;
    --primary-dark: #065f46;
    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --second-color: #1e40af;
    --main-color: #047857;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

* {
    font-family: "Noto Kufi Arabic", sans-serif;
    box-sizing: border-box;
}

body {
    background: var(--bg-light) !important;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   UTILITIES
   ============================================ */
.logo { width: 52px; transition: transform 0.3s; }
.logo:hover { transform: scale(1.08); }

.btn-rounded {
    border-radius: 50px !important;
    padding: 0.7rem 1.8rem;
}

.btn-main {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(4,120,87,0.25);
}
.btn-main:hover, .btn-main:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4,120,87,0.35);
}

.btn-outline-main {
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-main:hover, .btn-outline-main:focus {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(4,120,87,0.25);
}

.py-10 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.h-50-px { height: 100px; }

.main-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.main-text:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.bg-eee { background: #f3f4f6 !important; }
.text-eee { color: #f3f4f6 !important; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding: 12px 0;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
}
.navbar .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--primary) !important;
    background: var(--primary-50);
}
.navbar .nav-link.active {
    color: var(--primary) !important;
}
.nav-a { margin-left: 8px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(160deg, #064e3b 0%, #047857 40%, #059669 70%, #10b981 100%);
    color: #fff;
    overflow: hidden;
    min-height: 520px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section h1 {
    font-weight: 900;
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
}
.hero-section p {
    font-size: 1.15rem;
    opacity: 0.92;
    line-height: 1.8;
    max-width: 500px;
}
.hero-section .hero-img {
    max-width: 380px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.hero-section .btn-main {
    padding: 14px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.hero-section .btn-main:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(245,158,11,0.45);
}

/* ============================================
   PAGE HEADER (generic)
   ============================================ */
.page-header {
    position: relative;
    padding-top: 7rem;
    padding-bottom: 7rem;
    color: #fff;
    background: linear-gradient(160deg, #064e3b 0%, #047857 50%, #059669 100%);
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header .header-img { width: 380px; max-width: 100%; }
.page-header .svg-border-rounded svg {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3rem;
    width: 100%;
    overflow: hidden;
}

/* ============================================
   PACKAGES SECTION
   ============================================ */
.packages {
    background: var(--bg-light);
    padding: 80px 0;
}
.packages h2 {
    font-weight: 800;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 48px;
    position: relative;
}
.packages h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: 16px auto 0;
}

.packages .card {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 0;
    width: 100%;
    background: var(--bg-white);
    transition: all 0.35s ease;
    overflow: hidden;
    position: relative;
}
.packages .card::after { display: none; }
.packages .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--primary-light);
}
.packages .card .card-body {
    padding: 32px 24px;
}
.packages .card .card-body .row {
    align-items: center;
}

.packages .subtitle {
    color: var(--text-muted);
    line-height: 24px;
}
.packages .card.card-shadow {
    box-shadow: var(--shadow-md);
}
.packages .general-listing { margin: 60px 0 40px 0; }
.packages .package-card { height: 100%; }
.packages .card { background-size: 100% !important; }
.packages .yearly { display: none; }
.packages .pricing-box { margin-top: 80px; }
.packages .pricing-box .middle-box { margin-top: -50px; }
.packages .pricing-box .middle-box .general-listing { margin-top: 40px; }
.packages .btn-md { padding: 14px 40px; font-size: 16px; }
.packages .rounded-left {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
}
.packages .rounded-right {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* ============================================
   INVOICES SECTION
   ============================================ */
.invoice-section {
    position: relative;
    padding: 80px 0;
    background: var(--bg-white);
}
.invoice-section h2 {
    font-weight: 800;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 48px;
}
.invoice-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: 16px auto 0;
}
.invoice-section img { width: 64px; height: 64px; }
.invoice-section .svg-border-rounded svg {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3rem;
    width: 100%;
    overflow: hidden;
}

.invoice-card {
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 40px 24px 32px;
    transition: all 0.35s ease;
    text-align: center;
}
.invoice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}
.invoice-card img {
    width: 72px !important;
    height: 72px !important;
    margin-bottom: 20px;
}
.invoice-card h4 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.15rem;
}
.invoice-card .btn-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(4,120,87,0.2);
}
.invoice-card .btn-success:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(4,120,87,0.3);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    position: relative;
    padding: 80px 0;
    background: var(--bg-light);
}
.about-section img { width: 64px; height: 64px; }
.about-section .svg-border-rounded svg {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3rem;
    width: 100%;
    overflow: hidden;
}

.about-card {
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 40px 28px 36px;
    transition: all 0.35s ease;
    text-align: center;
}
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}
.about-card img {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 20px;
}
.about-card h3 {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.about-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    position: relative;
    background: #111827 !important;
    color: #d1d5db;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: none;
}
footer .svg-border-waves svg {
    position: absolute;
    top: -40px;
    left: 0;
    height: 3rem;
    width: 100%;
    overflow: hidden;
}
footer .footer-logo img { width: 60px; height: auto; }
footer .footer-text p { font-size: 1rem; color: #9ca3af; line-height: 1.8; }
footer .footer-link h4 { font-weight: 700; color: #fff; font-size: 1.1rem; margin-bottom: 20px; }
footer ul li a { text-decoration: none; }
footer .nav-link {
    color: #9ca3af !important;
    padding: 6px 0 !important;
    font-size: 0.95rem;
    transition: color 0.2s;
}
footer .nav-link:hover { color: var(--primary-light) !important; }
footer .nav-link i { padding-left: 6px; }
footer .nav-link span { padding: 0 3px; }
footer .nav-link .fa-facebook { color: #1877f2; }
footer .nav-link .fa-twitter { color: #1da1f2; }
footer .nav-link .fa-telegram { color: #1877f2; }
footer .nav-link .fa-whatsapp { color: #25d366; }
footer .nav-link .fa-youtube-play { color: #f34636; }
footer hr { border-color: #374151; opacity: 0.5; }

/* ============================================
   CARDS (generic)
   ============================================ */
.card {
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 10px;
    width: 100%;
    transition: all 0.35s ease;
}
.card::after {
    position: absolute;
    z-index: -1;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}
.card:hover::after { opacity: 1; }
.card:hover .btn-outline-primary {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   RIBBON (VIP badge)
   ============================================ */
.ribbon {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}
.ribbon span {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    font-size: 0.85rem;
    color: #fff;
    text-align: center;
    line-height: 22px;
    width: 100px;
    display: block;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
    position: absolute;
    top: 19px;
    font-weight: 700;
    transform: rotate(45deg);
    right: -21px;
    left: auto;
}
.ribbon span:before {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-right: 3px solid var(--accent-dark);
    border-top: 3px solid var(--accent-dark);
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page { padding: 100px 0; position: relative; }
.error-page div { width: 100%; text-align: center; }
.number {
    background: #fff;
    position: relative;
    font: 900 30vmin "Consolas";
    letter-spacing: 5vmin;
    text-shadow: 2px -1px 0 #000, 4px -2px 0 #0a0a0a, 6px -3px 0 #0f0f0f,
        8px -4px 0 #141414;
}
.number::before {
    background-color: var(--second-color);
    background-image: radial-gradient(closest-side at 50% 50%, var(--main-color) 100%, transparent),
        radial-gradient(closest-side at 50% 50%, var(--second-color) 100%, transparent);
    background-repeat: repeat-x;
    background-size: 40vmin 40vmin;
    background-position: -100vmin 20vmin, 100vmin -25vmin;
    width: 100%; height: 100%;
    mix-blend-mode: screen;
    animation: moving 10s linear infinite both;
    display: block; position: absolute; content: "";
}
@keyframes moving {
    to { background-position: 100vmin 20vmin, -100vmin -25vmin; }
}
.text span { font-size: 10vmin; }

/* ============================================
   APP DOWNLOAD BUTTONS
   ============================================ */
.btn-app {
    width: 200px;
    height: 60px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s;
    padding-bottom: 65px;
    border-radius: 14px;
}
.btn__logo {
    width: 30px; height: 30px;
    float: left;
    margin: 10px 0 14px 20px;
    position: relative;
}
.btn__content {
    width: 110px; height: 28px;
    font-size: 12px;
    float: right;
    margin-right: 15px;
    text-align: left;
    color: #fff;
}
.btn__content+.btn__content { margin-top: 2px; }
.btn__content--big { height: 22px; font-size: 22px; margin-top: 8px; }
.btn--ios { background-color: #1f2937; color: #fff; }
.btn--ios:hover { background: #111827; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--android { background-color: #047857; color: #fff; }
.btn--android:hover { background: #065f46; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--radius { border-radius: 14px; }

/* ============================================
   FLOATING ACTION BUTTONS
   ============================================ */
.btn-whatsapp-pulse {
    background: #25d366;
    color: white;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 0; height: 0;
    padding: 30px;
    text-decoration: none;
    border-radius: 50%;
    animation: pulse 1.5s ease-out infinite;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(37,211,102,0.4);
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    80% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}
.btn-whatsapp-pulse-border {
    bottom: 120px; right: 20px;
    animation-play-state: paused;
}
.btn-whatsapp-pulse-border::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    padding: 25px;
    border: 5px solid #25d366;
    opacity: 0.75;
    animation: pulse-border 1.5s ease-out infinite;
}
@keyframes pulse-border {
    0% { padding: 25px; opacity: 0.75; }
    75% { padding: 50px; opacity: 0; }
    100% { opacity: 0; }
}

.btn-cart-pulse {
    background: var(--primary);
    color: white;
    position: fixed;
    bottom: 100px;
    right: 20px;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 0; height: 0;
    padding: 30px;
    text-decoration: none;
    border-radius: 50%;
    animation: pulsecart 1.5s ease-out infinite;
    z-index: 999;
    box-shadow: 0 4px 14px rgba(4,120,87,0.4);
}
@keyframes pulsecart {
    0% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.5); }
    80% { box-shadow: 0 0 0 14px rgba(4, 120, 87, 0); }
}
.btn-cart-pulse-border::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    padding: 25px;
    border: 5px solid var(--primary);
    opacity: 0.75;
    animation: pulse-border 1.5s ease-out infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .hero-section { padding: 60px 0 50px; min-height: auto; text-align: center; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section p { margin: 0 auto 24px; }
    .hero-section .hero-img { max-width: 260px; margin-top: 32px; }
    .page-header { padding-top: 5rem; padding-bottom: 5rem; }
    .packages { padding: 50px 0; }
    .about-section { padding: 50px 0; }
}
@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.6rem; }
    .hero-section .btn-main { padding: 12px 28px; font-size: 1rem; }
    .packages h2, .invoice-section h2 { font-size: 1.5rem; }
    .navbar .nav-link { font-size: 0.9rem; padding: 6px 10px !important; }
}
