/* -------------------------------------------------------------------------
   ROOT & BASIC SETTINGS
-------------------------------------------------------------------------- */
:root {
    --brand-orange: #ff7f50;
    --bg-dark: #070a13;
    --card-dark: #111723;
    --text-gray: #94a3b8;
    --border-light: rgba(255, 127, 80, 0.15);
}

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

/* 1. SCROLLBAR CUSTOMIZATION */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-orange) 0%, #ff9a73 100%);
    border-radius: 10px;
}

body {
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    background-color: #f5f7fa;
}

/* -------------------------------------------------------------------------
   HEADER & NAVBAR
-------------------------------------------------------------------------- */
header {
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-dark);
    z-index: 1000;
}

.navbar-brand span {
    letter-spacing: 1.5px;
    font-size: 1.3rem;
}

.nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    transition: 0.3s;
    margin: 0 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-orange) !important;
}

/* Floating Contact Button in Header */
.btn-primary-pm {
    background: var(--brand-orange);
    color: white !important;
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(255, 127, 80, 0.25);
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-pm:hover {
    box-shadow: 0 5px 25px rgba(255, 127, 80, 0.6);
    transform: translateY(-2px) scale(1.03);
}

/* -------------------------------------------------------------------------
   MOBILE SIDENAV (OFFCANVAS)
-------------------------------------------------------------------------- */
.offcanvas {
    background: #0d1117 !important; /* لون السايدبار */
    border-right: 2px solid var(--brand-orange);
    width: 280px !important;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 20px;
}

.offcanvas-body {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.offcanvas .nav-link {
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.offcanvas .nav-link:hover {
    background: rgba(255, 127, 80, 0.12);
    color: var(--brand-orange) !important;
    padding-left: 25px;
}

/* -------------------------------------------------------------------------
   SUBSCRIPTION (CABUSLE) SECTION
-------------------------------------------------------------------------- */
.sub-container {
    background: rgba(17, 23, 35, 0.85);
    border: 1px solid rgba(255, 127, 80, 0.2);
    border-radius: 60px; /* Capsule shape */
    padding: 20px 45px;
    margin-bottom: -50px;
    position: relative;
    z-index: 100;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.sub-input-group {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 6px 6px 6px 25px;
    display: flex;
    align-items: center;
}

.sub-input-group input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 100%;
}

.sub-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-sub {
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 35px;
    font-weight: 700;
    transition: 0.3s ease;
}

.btn-sub:hover {
    background: #ff8e66;
    box-shadow: 0 0 15px rgba(255, 127, 80, 0.5);
}

/* RESPONSIVE SUB SECTION (Phone Layout Fix) */
@media (max-width: 768px) {
    .sub-container {
        border-radius: 25px;
        margin-bottom: -90px;
        padding: 30px 20px;
        text-align: center;
        width: 92%;
        left: 4%;
    }
    .sub-input-group {
        flex-direction: column;
        background: transparent;
        border: none !important;
        padding: 0;
        gap: 15px;
        margin-top: 25px;
    }
    .sub-input-group input {
        background: rgba(255, 255, 255, 0.05);
        padding: 15px;
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    .btn-sub {
        width: 100%;
        border-radius: 15px;
        padding: 15px;
    }
}

/* -------------------------------------------------------------------------
   FOOTER DESIGN
-------------------------------------------------------------------------- */
footer {
    background-color: var(--bg-dark);
    /* Tech Grid Asset in Background */
    background-image:
        linear-gradient(rgba(255, 127, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 127, 80, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: white;
    position: relative;
    padding-top: 130px; /* To account for overlap */
    padding-bottom: 20px;

    overflow: hidden;
}

/* Footer Abstract Assets/Waves */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    opacity: 0.08;
    pointer-events: none;
}

.footer-logo {
    height: 70px;
    margin-bottom: 20px;
}

footer p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Contact Cards (Side-by-Side) */
.footer-contact-box {
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 4px solid var(--brand-orange);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.footer-contact-box:hover {
    transform: translateY(-12px);
    border-color: var(--brand-orange);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

.footer-contact-box i {
    font-size: 32px;
    color: var(--brand-orange);
    margin-bottom: 12px;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--brand-orange);
}

.copyright-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 60px;
    padding: 25px 0;
}

/* -------------------------------------------------------------------------
   FLOATING SUPPORT BUTTON (pulse)
-------------------------------------------------------------------------- */
.floating-support {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--brand-orange);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 24px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(255, 127, 80, 0.5);
    animation: pulse-ring 2.2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
    transition: 0.3s;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 127, 80, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 127, 80, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 127, 80, 0);
    }
}

.floating-support:hover {
    background: #ff916b;
    transform: translateY(-5px);
}
.floating-request {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 127, 80, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-orange);
    font-size: 1.1rem;
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    animation: floatingReqPulse 2s infinite;
}
.floating-request:hover {
    background: var(--brand-orange);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 127, 80, 0.3);
}
@keyframes floatingReqPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 127, 80, 0.2);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(255, 127, 80, 0);
    }
}

/* === Request Product CTA Homepage === */
.rp-cta-section {
    padding: 60px 0;
    background: #f5f7fa;
}
.rp-cta-box {
    background: linear-gradient(
        135deg,
        rgba(255, 127, 80, 0.06),
        rgba(255, 127, 80, 0.02)
    );
    border: 1px solid rgba(255, 127, 80, 0.12);
    border-radius: 24px;
    padding: 50px 60px;
    position: relative;
    overflow: hidden;
}
.rp-cta-box::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(255, 127, 80, 0.04),
        transparent 70%
    );
    pointer-events: none;
}
.rp-cta-badge {
    display: inline-block;
    background: rgba(255, 127, 80, 0.1);
    color: var(--brand-orange);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 127, 80, 0.12);
}
.rp-cta-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.2;
}
.rp-cta-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 540px;
}
.rp-cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.rp-cta-features span {
    font-size: 0.82rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rp-cta-features i {
    color: #34d399;
    font-size: 0.75rem;
}
.rp-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--brand-orange), #e06530);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 127, 80, 0.2);
}
.rp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 127, 80, 0.35);
    color: #fff;
}
.rp-cta-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 127, 80, 0.08);
    animation: rpPulse 3s ease-in-out infinite;
}
@keyframes rpPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.08;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.15;
    }
}

@media (max-width: 768px) {
    .rp-cta-box {
        padding: 32px 24px;
    }
    .rp-cta-title {
        font-size: 1.4rem;
    }
    .rp-cta-features {
        flex-direction: column;
        gap: 8px;
    }
}
