/* =========================================
   إعدادات عامة
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    background: #06101c;
    color: #ffffff;
    line-height: 1.9;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: #12c9ff;
    color: #001018;
}


/* =========================================
   الخلفية
========================================= */

.background-effects {
    position: fixed;
    inset: 0;
    z-index: -5;
    overflow: hidden;
    pointer-events: none;
}

.grid-background {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(18, 201, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 201, 255, 0.035) 1px, transparent 1px);

    background-size: 45px 45px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.9),
            rgba(0,0,0,0.4),
            transparent
        );
}

.glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.14;
}

.glow-one {
    background: #00bfff;
    top: -200px;
    right: -180px;
}

.glow-two {
    background: #0077ff;
    bottom: -200px;
    left: -200px;
}


/* =========================================
   القائمة العلوية
========================================= */

.header {
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;

    background: rgba(4, 14, 25, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.navbar {
    width: min(1180px, 92%);
    min-height: 82px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* الشعار */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(18,201,255,0.35);
    border-radius: 13px;

    background: linear-gradient(
        145deg,
        rgba(18,201,255,0.16),
        rgba(18,201,255,0.03)
    );

    color: #23d5ff;
    font-size: 18px;
    font-weight: bold;

    box-shadow:
        0 0 25px rgba(18,201,255,0.08);
}

.logo-text {
    display: flex;
    flex-direction: column;

    line-height: 1.2;
}

.logo-text strong {
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 2px;
}

.logo-text span {
    color: #71dfff;
    font-size: 10px;
    margin-top: 3px;
}


/* الروابط */

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    position: relative;

    color: #a9b7c6;

    padding: 10px 14px;

    border-radius: 10px;

    font-size: 14px;

    transition: 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.045);
}

.nav-links a.active {
    color: #30d7ff;
}

.nav-links a.active::after {
    content: "";

    position: absolute;

    right: 14px;
    left: 14px;
    bottom: 2px;

    height: 2px;

    background: #22ceff;

    border-radius: 20px;

    box-shadow:
        0 0 10px rgba(34,206,255,0.8);
}


/* =========================================
   الواجهة الرئيسية
========================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding:
        145px
        0
        80px;
}

.hero-container {
    width: min(1180px, 90%);

    margin: auto;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;

    gap: 80px;

    align-items: center;
}


/* النص الرئيسي */

.hero-content {
    position: relative;
}

.status-badge {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 7px 14px;

    margin-bottom: 24px;

    border-radius: 50px;

    background: rgba(18,201,255,0.08);

    border: 1px solid rgba(18,201,255,0.19);

    color: #85e9ff;

    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #3ae789;

    box-shadow:
        0 0 12px rgba(58,231,137,0.8);

    animation: pulse 1.8s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.75);
    }
}


.welcome-text {
    color: #7c92a7;

    font-size: 16px;

    margin-bottom: 8px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 73px);

    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -2px;

    margin-bottom: 12px;
}

.name-highlight {
    display: block;

    color: transparent;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #70e5ff,
            #16c8ff
        );

    background-clip: text;
    -webkit-background-clip: text;

    text-shadow:
        0 0 40px rgba(31,203,255,0.08);
}

.hero h2 {
    color: #50d9fa;

    font-size: 19px;

    font-weight: 500;

    margin-bottom: 24px;
}

.hero-description {
    max-width: 680px;

    color: #a8b5c3;

    font-size: 16px;

    line-height: 2.1;

    margin-bottom: 30px;
}

.hero-description strong {
    color: #ffffff;
}


/* الأزرار */

.hero-buttons {
    display: flex;
    align-items: center;

    gap: 13px;

    flex-wrap: wrap;

    margin-bottom: 35px;
}

.btn {
    min-height: 50px;

    padding: 0 23px;

    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    font-size: 14px;

    font-weight: bold;

    transition: 0.3s ease;

    border: 1px solid transparent;
}

.btn-primary {
    color: #001019;

    background:
        linear-gradient(
            135deg,
            #66e6ff,
            #15c8f9
        );

    box-shadow:
        0 10px 35px rgba(15,197,244,0.18);
}

.btn-primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 40px rgba(15,197,244,0.28);
}

.btn-secondary {
    color: #dce7ef;

    background:
        rgba(255,255,255,0.035);

    border-color:
        rgba(255,255,255,0.10);
}

.btn-secondary:hover {
    border-color:
        rgba(18,201,255,0.28);

    background:
        rgba(18,201,255,0.07);

    color: #ffffff;

    transform: translateY(-3px);
}


/* المعلومات الصغيرة */

.hero-mini-info {
    display: flex;

    align-items: center;

    gap: 25px;
}

.mini-info {
    display: flex;

    flex-direction: column;

    gap: 1px;
}

.mini-label {
    color: #65788a;

    font-size: 11px;
}

.mini-info strong {
    color: #d9e6ef;

    font-size: 13px;
}

.mini-divider {
    width: 1px;

    height: 35px;

    background:
        rgba(255,255,255,0.10);
}


/* =========================================
   البطاقة التقنية
========================================= */

.hero-card {
    position: relative;
}

.hero-card::before {
    content: "";

    position: absolute;

    width: 70%;

    height: 70%;

    top: 15%;
    right: 15%;

    border-radius: 50%;

    background:
        rgba(18,201,255,0.16);

    filter: blur(80px);

    z-index: -1;
}

.terminal-card {
    overflow: hidden;

    border-radius: 22px;

    border:
        1px solid rgba(108,221,255,0.17);

    background:
        linear-gradient(
            145deg,
            rgba(9,25,39,0.95),
            rgba(4,14,25,0.97)
        );

    box-shadow:
        0 30px 100px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.04);

    transform:
        perspective(1000px)
        rotateY(-3deg);

    transition:
        0.4s ease;
}

.terminal-card:hover {
    transform:
        perspective(1000px)
        rotateY(0deg)
        translateY(-5px);
}

.terminal-header {
    min-height: 55px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0
        18px;

    border-bottom:
        1px solid rgba(255,255,255,0.06);

    background:
        rgba(255,255,255,0.02);
}

.terminal-header p {
    color: #6d8294;

    font-size: 11px;
}

.terminal-dots {
    display: flex;

    gap: 7px;
}

.terminal-dots span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.18);
}

.terminal-dots span:nth-child(1) {
    background: #49d78d;
}

.terminal-dots span:nth-child(2) {
    background: #f0b54a;
}

.terminal-dots span:nth-child(3) {
    background: #ef6464;
}

.terminal-body {
    padding: 35px;
}

.terminal-logo {
    width: 78px;
    height: 78px;

    margin-bottom: 28px;

    display: grid;

    place-items: center;

    border-radius: 19px;

    color: #84ebff;

    font-size: 24px;

    font-weight: bold;

    letter-spacing: 2px;

    background:
        linear-gradient(
            145deg,
            rgba(18,201,255,0.15),
            rgba(18,201,255,0.025)
        );

    border:
        1px solid rgba(18,201,255,0.24);

    box-shadow:
        inset 0 0 25px rgba(18,201,255,0.04),
        0 0 30px rgba(18,201,255,0.05);
}

.terminal-command {
    color: #38d6fb;

    font-size: 12px;

    margin-top: 15px;

    margin-bottom: 4px;
}

.terminal-body h3 {
    color: #ffffff;

    font-size: 21px;

    margin-bottom: 10px;
}

.terminal-result {
    color: #a7b7c6;

    font-size: 13px;
}

.terminal-success {
    color: #52e195;

    font-size: 13px;
}


/* =========================================
   مؤشر النزول
========================================= */

.scroll-indicator {
    position: absolute;

    bottom: 25px;

    right: 50%;

    transform:
        translateX(50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

    color: #5f7282;

    font-size: 10px;
}

.mouse {
    width: 20px;
    height: 30px;

    border:
        1px solid rgba(255,255,255,0.16);

    border-radius: 20px;

    position: relative;
}

.mouse::after {
    content: "";

    position: absolute;

    width: 3px;
    height: 6px;

    top: 6px;
    right: 50%;

    transform:
        translateX(50%);

    border-radius: 20px;

    background: #29d1f9;

    animation:
        mouseMove 1.7s infinite;
}

@keyframes mouseMove {

    0% {
        opacity: 0;
        top: 5px;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: 15px;
    }
}


/* =========================================
   الأقسام العامة
========================================= */

.section-container {
    width: min(1180px, 90%);

    margin: auto;
}

.quick-section,
.identity-section,
.contact-section {
    padding:
        100px
        0;
}

.section-title {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 50px;
}

.section-number {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    border:
        1px solid rgba(18,201,255,0.17);

    background:
        rgba(18,201,255,0.05);

    color: #30d5fa;

    font-size: 13px;
}

.section-small-title {
    color: #4edbfc;

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 2px;
}

.section-title h2 {
    color: #ffffff;

    font-size: 30px;
}


/* =========================================
   بطاقات النظرة السريعة
========================================= */

.quick-section {
    position: relative;

    background:
        rgba(255,255,255,0.009);

    border-top:
        1px solid rgba(255,255,255,0.04);

    border-bottom:
        1px solid rgba(255,255,255,0.04);
}

.quick-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 17px;
}

.quick-card {
    position: relative;

    min-height: 300px;

    padding: 27px;

    border-radius: 18px;

    border:
        1px solid rgba(255,255,255,0.07);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.033),
            rgba(255,255,255,0.012)
        );

    transition:
        0.35s ease;

    overflow: hidden;
}

.quick-card::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            #19cdf8,
            transparent
        );

    transition:
        0.45s ease;
}

.quick-card:hover {
    transform:
        translateY(-7px);

    border-color:
        rgba(18,201,255,0.20);

    background:
        linear-gradient(
            145deg,
            rgba(18,201,255,0.055),
            rgba(255,255,255,0.014)
        );

    box-shadow:
        0 20px 60px rgba(0,0,0,0.18);
}

.quick-card:hover::before {
    width: 100%;
}

.card-number {
    position: absolute;

    top: 19px;
    left: 22px;

    color: #394d5d;

    font-size: 11px;
}

.card-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 30px;

    border-radius: 13px;

    border:
        1px solid rgba(18,201,255,0.16);

    background:
        rgba(18,201,255,0.06);

    color: #42dbff;

    font-size: 18px;
}

.quick-card h3 {
    color: #ffffff;

    font-size: 19px;

    margin-bottom: 12px;
}

.quick-card p {
    color: #8395a5;

    font-size: 13px;

    line-height: 2;

    min-height: 105px;
}

.quick-card a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #35d5f9;

    font-size: 12px;

    margin-top: 15px;
}

.quick-card a span {
    transition:
        0.3s ease;
}

.quick-card a:hover span {
    transform:
        translateX(-5px);
}


/* =========================================
   قسم الهوية
========================================= */

.identity-section {
    position: relative;
}

.identity-box {
    position: relative;

    padding: 55px;

    border-radius: 25px;

    border:
        1px solid rgba(18,201,255,0.13);

    background:
        linear-gradient(
            120deg,
            rgba(18,201,255,0.07),
            rgba(255,255,255,0.018)
        );

    display: grid;

    grid-template-columns:
        1.1fr 0.9fr;

    gap: 55px;

    align-items: center;

    overflow: hidden;
}

.identity-box::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: -120px;
    bottom: -170px;

    border-radius: 50%;

    background:
        rgba(18,201,255,0.11);

    filter: blur(60px);
}

.identity-tag {
    display: inline-block;

    color: #50ddfd;

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 14px;
}

.identity-left h2 {
    color: #ffffff;

    font-size:
        clamp(30px, 5vw, 48px);

    line-height: 1.5;

    margin-bottom: 16px;
}

.identity-left h2 span {
    display: block;

    color: #52dfff;
}

.identity-left p {
    color: #899baa;

    max-width: 600px;

    font-size: 14px;

    line-height: 2.1;
}

.identity-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.stat-box {
    min-height: 150px;

    padding: 20px 10px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border-radius: 17px;

    border:
        1px solid rgba(255,255,255,0.06);

    background:
        rgba(1,13,23,0.42);
}

.stat-box strong {
    color: #5edffb;

    font-size: 27px;

    margin-bottom: 7px;
}

.stat-box span {
    color: #7e93a4;

    font-size: 10px;
}


/* =========================================
   التواصل
========================================= */

.contact-section {
    padding-top: 40px;
}

.contact-box {
    min-height: 310px;

    padding: 55px;

    display: grid;

    grid-template-columns:
        1fr 0.75fr;

    align-items: center;

    gap: 60px;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            #0b2234,
            #071522
        );

    border:
        1px solid rgba(18,201,255,0.13);

    box-shadow:
        0 30px 90px rgba(0,0,0,0.18);
}

.contact-small-title {
    display: inline-block;

    color: #51ddff;

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.contact-content h2 {
    color: #ffffff;

    font-size:
        clamp(26px, 4vw, 38px);

    margin-bottom: 15px;
}

.contact-content p {
    color: #8da0af;

    max-width: 600px;

    font-size: 14px;

    line-height: 2.1;
}

.contact-action {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 8px;
}

.contact-action > span {
    color: #657c8e;

    font-size: 11px;
}

.contact-action > a:not(.btn) {
    direction: ltr;

    color: #ffffff;

    font-size: 16px;

    word-break: break-all;

    margin-bottom: 15px;

    transition:
        0.25s ease;
}

.contact-action > a:not(.btn):hover {
    color: #50dfff;
}

.contact-btn {
    margin-top: 5px;
}


/* =========================================
   الفوتر
========================================= */

.footer {
    padding:
        35px
        0;

    border-top:
        1px solid rgba(255,255,255,0.055);

    background:
        rgba(2,10,17,0.65);
}

.footer-container {
    width: min(1180px, 90%);

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 25px;
}

.footer-name {
    display: flex;

    flex-direction: column;
}

.footer-name strong {
    color: #e9f3f8;

    font-size: 13px;
}

.footer-name span {
    color: #536979;

    font-size: 10px;
}

.footer-container > p {
    color: #536979;

    font-size: 10px;

    text-align: center;
}

.footer .copyright {
    text-align: left;

    direction: ltr;
}


/* =========================================
   حركة دخول بسيطة
========================================= */

.hero-content {
    animation:
        showContent 0.8s ease both;
}

.hero-card {
    animation:
        showCard 0.9s 0.15s ease both;
}

@keyframes showContent {

    from {
        opacity: 0;
        transform:
            translateY(25px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}

@keyframes showCard {

    from {
        opacity: 0;
        transform:
            translateY(30px)
            scale(0.97);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================
   الأجهزة اللوحية
========================================= */

@media (max-width: 1000px) {

    .navbar {
        flex-direction: column;

        justify-content: center;

        padding:
            15px
            0;
    }

    .nav-links {
        width: 100%;

        justify-content: center;

        overflow-x: auto;

        padding-bottom: 3px;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .hero {
        padding-top: 180px;
    }

    .hero-container {
        grid-template-columns:
            1fr;

        gap: 55px;
    }

    .hero-content {
        text-align: center;
    }

    .status-badge {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-description {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-buttons,
    .hero-mini-info {
        justify-content: center;
    }

    .hero-card {
        width: min(600px, 100%);

        margin: auto;
    }

    .terminal-card {
        transform: none;
    }

    .terminal-card:hover {
        transform:
            translateY(-4px);
    }

    .quick-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .identity-box {
        grid-template-columns:
            1fr;
    }

    .contact-box {
        grid-template-columns:
            1fr;
    }

    .footer-container {
        grid-template-columns:
            1fr;

        text-align: center;
    }

    .footer .copyright {
        text-align: center;
    }

}


/* =========================================
   الجوال
========================================= */

@media (max-width: 650px) {

    body {
        line-height: 1.8;
    }

    .header {
        position: absolute;
    }

    .navbar {
        width: 94%;

        min-height: auto;

        gap: 12px;

        padding:
            15px
            0;
    }

    .logo {
        align-self: flex-start;
    }

    .logo-icon {
        width: 40px;
        height: 40px;

        border-radius: 11px;
    }

    .logo-text strong {
        font-size: 14px;
    }

    .nav-links {
        justify-content: flex-start;

        gap: 4px;
    }

    .nav-links a {
        flex-shrink: 0;

        font-size: 12px;

        padding:
            8px
            11px;
    }


    /* الرئيسية */

    .hero {
        min-height: auto;

        padding:
            175px
            0
            80px;
    }

    .hero-container {
        width: 91%;

        gap: 45px;
    }

    .welcome-text {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 40px;

        line-height: 1.4;

        letter-spacing: -1px;
    }

    .hero h2 {
        font-size: 15px;
    }

    .hero-description {
        font-size: 14px;

        line-height: 2;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-mini-info {
        gap: 16px;
    }

    .mini-info strong {
        font-size: 11px;
    }

    .scroll-indicator {
        display: none;
    }


    /* البطاقة */

    .terminal-body {
        padding:
            27px
            23px;
    }

    .terminal-logo {
        width: 65px;
        height: 65px;

        font-size: 20px;
    }

    .terminal-body h3 {
        font-size: 18px;
    }


    /* الأقسام */

    .quick-section,
    .identity-section,
    .contact-section {
        padding:
            70px
            0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .section-number {
        width: 45px;
        height: 45px;
    }

    .section-title h2 {
        font-size: 25px;
    }

    .quick-grid {
        grid-template-columns:
            1fr;
    }

    .quick-card {
        min-height: auto;

        padding: 25px;
    }

    .quick-card p {
        min-height: auto;
    }


    /* الهوية */

    .identity-box {
        padding:
            35px
            23px;

        border-radius: 20px;
    }

    .identity-left h2 {
        font-size: 30px;
    }

    .identity-stats {
        grid-template-columns:
            1fr;
    }

    .stat-box {
        min-height: 105px;
    }


    /* التواصل */

    .contact-section {
        padding-top: 20px;
    }

    .contact-box {
        padding:
            35px
            23px;

        gap: 35px;

        border-radius: 20px;
    }

    .contact-content h2 {
        font-size: 27px;
    }

    .contact-action {
        align-items: stretch;
    }

    .contact-action > a:not(.btn) {
        font-size: 14px;
    }


    /* الفوتر */

    .footer {
        padding:
            30px
            0;
    }

}


/* =========================================
   الجوال الصغير
========================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 34px;
    }

    .hero-mini-info {
        flex-direction: column;
    }

    .mini-divider {
        width: 80px;
        height: 1px;
    }

    .section-title {
        gap: 13px;
    }

}