@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');

:root {
    --main-color: #CFA987;
    --neon-glow: #eac89e;
    --bg-color: #021a24;
    --darker-bg: #011319;
    --text-color: #eee;
    --glass-card: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}



/* ===== 1. Basic Reset & Scrollbar ===== */
html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* إخفاء السكرول بار (فايرفوكس) */
}

html::-webkit-scrollbar {
    display: none; /* إخفاء السكرول بار (كروم/سفاري) */
}

/* ===== 2. Scroll Progress Bar ===== */
#progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), #fff);
    z-index: 999999;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--neon-glow);
}

/* ===== 3. General Setup ===== */
* {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: all .4s cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1.5;
}

body {
    background-color: var(--bg-color);
    padding-left: 15rem; /* مساحة للناف بار الجانبي */
    position: relative;
    z-index: 1;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(207, 169, 135, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: bgScroll 20s linear infinite;
    z-index: -1;
    opacity: 0.4;
}

@keyframes bgScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}



section {
    padding: 3rem 5%;
    min-height: 100vh;
}

/* ===== 4. Animation System ===== */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    visibility: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.heading {
    font-size: 4rem;
    padding-bottom: 2rem;
    color: var(--text-color);
    text-transform: uppercase;
    text-align: center;
}

.heading span { color: var(--main-color); }

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: .8rem 3rem;
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    cursor: pointer;
    font-size: 1.7rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: 0.3s;
}

.btn:hover::before { width: 100%; }
.btn:hover { color: #fff; box-shadow: 0 0 20px rgba(207, 169, 135, 0.4); }




/* ===== 6. Header ===== */
header {
    position: fixed;
    top: 2rem; left: 2rem; bottom: 2rem;
    width: 8rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    z-index: 1000;
}

header .logop { width: 5rem; filter: drop-shadow(0 0 5px var(--main-color)); }
header .navbar { display: flex; flex-direction: column; gap: 2.5rem; }
header .navbar a { font-size: 2rem; color: #fff; opacity: 0.5; position: relative; }

header .navbar a::before {
    content: '';
    position: absolute;
    left: -15px; top: 50%;
    transform: translateY(-50%);
    width: 2px; height: 0;
    background: var(--main-color);
    box-shadow: 0 0 10px var(--neon-glow);
    transition: 0.3s;
}

header .navbar a:hover, header .navbar a.active { opacity: 1; color: var(--main-color); text-shadow: 0 0 8px rgba(207, 169, 135, 0.4); }
header .navbar a:hover::before, header .navbar a.active::before { height: 100%; }

header .follow { display: flex; flex-direction: column; gap: 1.5rem; }
header .follow a { font-size: 1.8rem; color: #fff; opacity: 0.5; }
header .follow a:hover { opacity: 1; color: var(--main-color); }

/* ===== 7. Home Section ===== */
.home {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    padding-top: 5rem;
    min-height: 100vh;
}

.home .image { flex: 1 1 30rem; text-align: center; }





.home .image img {
    width: 90%; max-width: 400px;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid var(--neon-glow);
    animation: float 6s ease-in-out infinite;
}



@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.home .content { flex: 1 1 50rem; }
.home .content .hi { font-size: 1.8rem; color: var(--main-color); margin-bottom: 1rem; letter-spacing: 2px; }
.home .content h3 { font-size: 4.5rem; color: #fff; text-transform: uppercase; }
.home .content h3 span { color: #fff; display: block; font-size: 5rem; text-shadow: 0 0 20px rgba(207, 169, 135, 0.3); }
.home .content .info { font-size: 2.5rem; color: var(--main-color); padding: 1rem 0; font-weight: bold; }
.home .content .text { font-size: 1.7rem; color: #aaa; padding: .5rem 0; line-height: 1.8; }



/* ===== Typing Cursor (Always Visible) ===== */
#typing-text {
    display: inline-block; /* مهم عشان الخط يبان */
    border-right: 2px solid var(--main-color); /* الخط بتاع الكتابة */
    padding-right: 5px;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* ===== 8. About Section ===== */
.about .row-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    padding-bottom: 2rem;
    align-items: center;
}

.about .row-1 .content { flex: 1 1 50rem; }
.about .row-1 .content h3 { color: #fff; font-size: 3rem; margin-bottom: 1rem; }
.about .row-1 .content h3 .highlight { color: var(--main-color); }
.about .row-1 .content p { color: #aaa; font-size: 1.7rem; padding: .5rem 0; }

.about .row-1 .content .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
}

.about .row-1 .content .box-container .box {
    flex: 1 1 20rem;
    padding: 1.5rem;
    background: var(--glass-card);
    border-radius: .5rem;
    border-left: 2px solid var(--main-color);
}

.about .row-1 .content .box-container .box p { font-size: 1.5rem; color: #ccc; padding: .5rem 0; }
.about .row-1 .content .box-container .box span { color: var(--main-color); font-weight: bold; }

/* ===== 9. Skills Section ===== */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.skill-box {
    flex: 1 1 calc(25% - 2rem);
    min-width: 22rem;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.skill-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(207, 169, 135, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.skill-box:hover::before { transform: translateX(100%); }
.skill-box:hover { transform: translateY(-1rem); border-color: var(--main-color); box-shadow: 0 0 20px rgba(207, 169, 135, 0.1); }
.skill-box h3 { color: var(--main-color); font-size: 1.8rem; margin-bottom: 1.5rem; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.skill-tags span {
    background: rgba(207, 169, 135, 0.1);
    color: var(--neon-glow);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-size: 1.3rem;
    border: 1px solid rgba(207, 169, 135, 0.2);
}

/* ===== 10. Stats Section ===== */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.stats-container .box {
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 22rem;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.stats-container .box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(207, 169, 135, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.stats-container .box:hover::before { transform: translateX(100%); }
.stats-container .box:hover { transform: translateY(-1rem); border-color: var(--main-color); box-shadow: 0 0 20px rgba(207, 169, 135, 0.1); }
.stats-container .box h3 { color: var(--main-color); font-size: 3.5rem; text-shadow: 0 0 10px rgba(207, 169, 135, 0.2); }
.stats-container .box p { color: #fff; font-size: 1.7rem; font-weight: 400; padding-top: 0.5rem; }

/* ===== 11. Services Section ===== */
.service .box-container { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }

.service .box-container .box {
    flex: 1 1 30rem;
    max-width: 35rem;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.service .box-container .box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(207, 169, 135, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.service .box-container .box:hover::before { transform: translateX(100%); }
.service .box-container .box:hover { transform: translateY(-1rem); border-color: var(--main-color); box-shadow: 0 0 20px rgba(207, 169, 135, 0.1); }
.service .box-container .box i { height: 6rem; width: 6rem; line-height: 6rem; font-size: 2.5rem; color: var(--main-color); background: rgba(207, 169, 135, 0.1); border-radius: 50%; border: 1px solid rgba(207, 169, 135, 0.3); margin-bottom: 1rem; }
.service .box-container .box h3 { color: #fff; font-size: 2.2rem; padding-top: 1rem; }
.service .box-container .box p { color: #888; font-size: 1.4rem; padding: .5rem 0; }

/* ===== Featured Case Study Section ===== */
.featured-work {
    padding: 5rem 5%;
    background: var(--bg-color);
    overflow: hidden;
}

.featured-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    align-items: center; /* محاذاة رأسية */
    max-width: 1200px;
    margin: 0 auto;
}

/* === Part 1: Image & Impact (Right Side) === */
.featured-media {
    flex: 1 1 45rem;
    text-align: center;
}

/* تغليف الصورة عشان نتحكم في حجمها */
.image-wrapper {
    width: 100%;
    max-width: 550px; /* أقصى عرض للصورة */
    margin: 0 auto;
    max-height: 550px;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 5px solid rgba(255,255,255,0.05);
    background: var(--darker-bg);
}

.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.image-wrapper:hover .mockup-img {
    transform: scale(1.05);
}

.impact-box {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
}

.impact-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.impact-item h3 {
    font-size: 2.8rem;
    color: var(--main-color);
    margin-bottom: 0.3rem;
}

.impact-item p {
    color: #aaa;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Part 2: Info & Accordion (Left Side) === */
.featured-info {
    flex: 1 1 45rem;
}

.project-badge {
    display: inline-block;
    background: rgba(207, 169, 135, 0.1);
    color: var(--main-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(207, 169, 135, 0.2);
}

.project-title {
    font-size: 3rem; /* حجم خط مناسب */
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.6rem;
    color: #888;
    margin-bottom: 3rem;
    font-style: italic;
}

/* === Accordion Styles === */
.case-study-accordion {
    margin-bottom: 3rem;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: .8rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
    transition: 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-header span {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-header i:first-child {
    color: var(--main-color);
}

.accordion-header .fa-chevron-down {
    transition: transform 0.3s ease;
    color: #888;
}

.accordion-header.active .fa-chevron-down {
    transform: rotate(180deg);
    color: var(--main-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.1);
}

.accordion-content p {
    color: #bbb;
    font-size: 1.4rem;
    padding: 0.5rem 2rem;
    line-height: 1.7;
}

.accordion-content p:first-child {
    padding-top: 1.5rem;
}
.accordion-content p:last-child {
    padding-bottom: 1.5rem;
}

.accordion-content ul {
    list-style: none;
    padding: 0 2rem 1.5rem;
}

.accordion-content ul li {
    color: #ccc;
    font-size: 1.4rem;
    padding: .3rem 0;
}

.accordion-content ul li i {
    color: var(--main-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.highlight {
    color: var(--main-color);
    font-weight: bold;
}

/* Before/After Table */
.comparison-table {
    margin: 1.5rem 2rem;
}

.compare-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.compare-row span {
    flex: 1;
    color: #fff;
    font-size: 1.4rem;
}

.before {
    color: #ff6b6b;
    text-decoration: line-through;
    flex: 1;
    text-align: center;
}

.after {
    color: var(--main-color);
    font-weight: bold;
    flex: 1;
    text-align: center;
}

/* Tech Stack & Buttons */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.tech-stack span {
    background: rgba(207, 169, 135, 0.1);
    color: var(--main-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5rem;
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(207, 169, 135, 0.1);
}

.featured-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.featured-btns .btn {
    font-size: 1.4rem;
    padding: 0.8rem 2rem;
}

.code-btn {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.code-btn:hover {
    background: #fff;
    color: var(--bg-color);
}

/* Responsive */
@media (max-width: 768px) {
    .featured-container {
        flex-direction: column-reverse;
        gap: 3rem;
    }
    
    .image-wrapper {
        max-width: 100%;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
}

/* ===== How I Work Section (Fixed Layout) ===== */

.how-i-work {
    padding: 4rem 6rem 2rem; /* نفس الـ padding بتاع Testimonials */
    text-align: center;
    overflow: hidden;
    margin-top: 50px;
    background: var(--darker-bg);
    overflow: hidden;
    /* الـ Masking الناعم */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}


.subtitle-text {
    font-size: 1.8rem;
    color: #888;
    margin-bottom: 4rem;
}

.process-container {
    display: grid;
    /* هنوزعهم في صفوف وراء بعض بشكل مرتب */
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.process-card {
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: 0.3s;
    position: relative;
}

.process-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.03);
}

/* الأرقام (01, 02..) */
.step-number {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.process-card:hover .step-number {
    color: rgba(207, 169, 135, 0.1); /* يبان شوية عند الهوفر */
}

.icon-circle {
    width: 7rem;
    height: 7rem;
    background: rgba(207, 169, 135, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 1px solid rgba(207, 169, 135, 0.2);
    transition: 0.3s;
}

.process-card:hover .icon-circle {
    background: var(--main-color);
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(207, 169, 135, 0.4);
}

.icon-circle i {
    font-size: 2.5rem;
    color: var(--main-color);
    transition: 0.3s;
}

.process-card:hover .icon-circle i {
    color: var(--bg-color);
}

.process-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.process-card p {
    font-size: 1.4rem;
    color: #aaa;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .process-container {
        grid-template-columns: 1fr; /* تحت بعض في الموبايل */
    }
}

/* ===== 12. Portfolio Section ===== */
.portfolio .box-container, .gallery .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.portfolio .box-container .box, .gallery .box-container .box {
    flex: 1 1 30rem;
    height: 30rem;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    background: var(--darker-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 35rem;
}

.portfolio .box-container .box img, .gallery .box-container .box img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: grayscale(20%);
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
}

.portfolio .box-container .box:hover img, .gallery .box-container .box:hover img {
    transform: scale(0.8) translate(-2rem, -2rem); /* تصغير وتحريك لأعلى اليسار */
    width: 90%;
    height: 90%;
    filter: grayscale(0%);
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.5);
}

.gallery .box-container .box h3, .portfolio .box-container .box h3,
.gallery .box-container .box .icons, .portfolio .box-container .box .icons {
    position: absolute;
    z-index: 0; 
    width: 100%;
    transition: 0.4s ease;
    opacity: 0;
}

.gallery .box-container .box h3, .portfolio .box-container .box h3 {
    bottom: 2rem; left: 0;
    font-size: 2.5rem; color: var(--main-color);
    padding-left: 2rem;
    transform: translateY(20px);
}

.gallery .box-container .box .icons, .portfolio .box-container .box .icons {
    top: 1.5rem; right: 0;
    padding-right: 2rem;
    transform: translateY(-20px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.portfolio .box-container .box:hover h3, .gallery .box-container .box:hover h3,
.portfolio .box-container .box:hover .icons, .gallery .box-container .box:hover .icons {
    opacity: 1;
    transform: translateY(0);
}

.gallery .box-container .box .icons a, .portfolio .box-container .box .icons a {
    display: block;
    height: 4rem; width: 4rem; border-radius: 50%;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); color: #fff;
    border: 1px solid rgba(255,255,255,0.2); font-size: 1.5rem; line-height: 4rem;
    text-align: center;
}

.gallery .box-container .box .icons a:hover, .portfolio .box-container .box .icons a:hover {
    background: var(--main-color); border-color: var(--main-color); color: #fff;
    box-shadow: 0 0 15px var(--neon-glow);
}


/* Sub Heading Style */
.sub-heading {
    font-size: 2.5rem;
    color: #fff;
    margin: 4rem 0 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.sub-heading span {
    background: var(--bg-color); /* عشان يبان فوق الخلفية */
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* الخط اللي جمب العنوان */
.sub-heading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

/* ===== 13. Testimonials Section (Enhanced & Fixed) ===== */
.testimonials {
    min-height: auto;
    padding: 4rem 0;
    margin-top: 50px;
    background: var(--darker-bg);
    overflow: hidden;
    position: relative;
    /* الـ Masking الناعم */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials .heading {
    color: #fff;
    z-index: 3;
    position: relative;
}

.testimonial-track {
    display: flex;
    gap: 3rem;
    padding: 2rem 0;
    width: max-content;
    animation: scrollLeft 35s linear infinite;
}

.testimonial-card {
    width: 40rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 1rem;
    flex-shrink: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card p {
    color: #ccc;
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-card .client {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.testimonial-card .client img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--main-color);
}

.testimonial-card .client h4 {
    color: #fff;
    font-size: 1.6rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.testimonial-card .client span {
    color: var(--main-color);
    font-size: 1.3rem;
    font-weight: bold;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* ===== Contact Section (Split Layout) ===== */
.contact { 
    min-height: auto; 
    padding-bottom: 5rem; 
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    align-items: flex-start; /* يخليهم يبدأوا من فوق */
    justify-content: center;
}

/* === Left Side: Info & Cards === */
.contact-info {
    flex: 1 1 40rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-quote {
    font-size: 1.6rem; /* صغرنا الخط جداً */
    line-height: 1.6; /* ضبطنا المسافة بين السطور */
    color: #888; /* لون باهت أنيق */
    font-style: italic;
    margin-bottom: 2.5rem;
    max-width: 400px; /* عشان ميبقاش عرضه زائد عن اللزوم */
    border-left: 3px solid var(--main-color);
    padding-left: 1.5rem;
}

.contact-quote span {
    display: block;
    margin-top: 1rem;
    font-size: 1.5rem; /* حجم الخط للجملة التانية */
    color: #aaa;
    font-style: normal;
    font-weight: 400;
}

.contact-info .icons-container {
    display: flex;
    flex-direction: column; /* فوق بعض */
    gap: 1.5rem;
}

.contact-info .icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: 0.4s;
}

.contact-info .icons:hover {
    transform: translateX(1rem);
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(207, 169, 135, 0.1);
}

.contact-info .icons i {
    font-size: 2.5rem;
    color: var(--main-color);
    height: 6rem; width: 6rem;
    line-height: 6rem;
    text-align: center;
    background: rgba(207, 169, 135, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(207, 169, 135, 0.2);
    flex-shrink: 0; /* يمنع الأيقونة تصغر */
}

.contact-info .info-text h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.contact-info .info-text p {
    font-size: 1.4rem;
    color: #aaa;
}

/* === Right Side: Form === */
.contact-form-container {
    flex: 1 1 45rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.contact-form-container h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    text-transform: capitalize;
}
.contact-form-container h2 span {
    color: var(--main-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 2.5rem;
}

.contact-form .inputBox {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.5rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: .5rem;
    text-transform: none; /* عشان الكلام يبقى عادي */
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(207, 169, 135, 0.2);
}

.contact-form textarea {
    resize: none;
    height: 15rem;
}

.contact-form .btn {
    width: 100%;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-row {
        flex-direction: column-reverse; /* الفورم يظهر الأول في الموبايل */
    }
}

/* ===== 15. Footer ===== */
.footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
}

.footer p { color: #888; font-size: 1.8rem; margin-bottom: 1rem; }
.footer p span { color: var(--main-color); font-weight: bold; font-size: 2rem; text-transform: uppercase; letter-spacing: 1px; }

.footer .social-links { margin-top: 1.5rem; display: flex; justify-content: center; gap: 1.5rem; }
.footer .social-links a { color: #fff; font-size: 2rem; opacity: 0.6; transition: 0.3s; }
.footer .social-links a:hover { color: var(--main-color); opacity: 1; transform: translateY(-3px); text-shadow: 0 0 10px var(--neon-glow); }

/* ===== 16. Back To Top Button ===== */
.top-btn {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    height: 5rem;
    width: 5rem;
    background: var(--main-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(207, 169, 135, 0.4);
    opacity: 0; 
    visibility: hidden;
    transition: 0.3s ease;
}

.top-btn:hover {
    transform: translateY(-0.5rem) scale(1.1);
    background: #fff;
    color: var(--bg-color);
}

.top-btn.active {
    opacity: 1;
    visibility: visible;
}

/* ===== 17. Mobile Responsive ===== */
@media (max-width:991px) {
    /* إزالة الـ Padding الشمال في الموبايل */
    body { 
        padding: 0; 
        padding-bottom: 10rem; 
    }
    
    /* إخفاء الكيرسور في الموبايل */
    .cursor-1, .cursor-2 { display: none; }
    
    /* تحويل الهيدر لشريط سفلي */
    header {
        top: auto; left: 0; right: 0; bottom: 0;
        width: 100%; height: 8rem;
        border-radius: 0;
        background: rgba(2, 26, 36, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
    }
    header .logop, header .follow { display: none; }
    header .navbar { flex-direction: row; justify-content: space-around; }
    header .navbar a { font-size: 2.5rem; opacity: 0.6; }
    header .navbar a::before { display: none; }
    header .navbar a.active, header .navbar a:hover { opacity: 1; color: var(--main-color); transform: translateY(-5px); }

    /* تعديلات الـ Skill boxes */
    .skill-box, .stats-container .box, .service .box, .contact .icons { flex: 1 1 100%; }

    /* زرار الرجوع للأعلى في الموبايل */
    .top-btn {
        bottom: 10rem; /* رفعه فوق الناف بار */
        right: 2rem;
        height: 4.5rem;
        width: 4.5rem;
    }
}


/* ===== Animation Intro (Fixed Z-Index) ===== */
#animation-intro {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-color);
    z-index: 9000; /* رقم معقول مش خيالي */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
    overflow: hidden;
}

#animation-intro.hide-intro {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Flying Elements Animation --- */
.flying-elements {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.flying-elements span {
    position: absolute;
    display: block;
    color: var(--neon-glow);
    font-size: 3rem;
    left: 10%;
    font-family: 'Courier New', Courier, monospace;
    animation: flying 10s linear infinite;
    animation-delay: calc(var(--i) * -1s);
}

@keyframes flying {
    0% {
        transform: translateY(100vh) rotate(0deg) translateX(0px);
        opacity: .5;
    }
    10% { opacity: 1; 
    left:10%;
    top:40%;
    }
    90% { opacity: 1;
    left: 90%;
    top: 60%;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg) translateX(200px);
        opacity: .5;
    }
}

/* ===== Progress Bar Intro Loading ===== */
#progress-bar.intro-loading {
    animation: loadProgress 5s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* --- Intro Text --- */
.intro-text-box {
    position: relative;
    z-index: 2;
    text-align: center;
}

.intro-text-box h1 {
    font-size: 6rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 2px 0 #fff, -2px 0 #fff;
    animation: glitch 2s infinite, scaleIn 1s ease forwards;
}

@keyframes glitch {
    0%, 100% { text-shadow: 2px 0 #fff, -2px 0 #fff; }
    25% { text-shadow: -2px 0 var(--main-color), 2px 0 var(--neon-glow); }
    50% { text-shadow: 2px 0 #fff, -2px 0 #fff; }
    75% { text-shadow: -2px 0 var(--neon-glow), 2px 0 var(--main-color); }
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.intro-text-box p {
    color: var(--main-color);
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.2s;
}

.intro-btn {
    margin-top: 3rem;
    padding: 1rem 3rem;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    display: inline-block;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards;
    animation-delay: 1.8s;
    transition: 0.3s;
}

.intro-btn:hover {
    background: var(--main-color);
    color: #000;
    box-shadow: 0 0 20px var(--neon-glow);
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }


/* ===== Cursor (Z-Index أعلى من الـ Intro) ===== */
.cursor-1 {
    position: fixed;
    top: 0; left: 0;
    height: 10px; width: 10px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 9999999; /* أعلى من الـ Intro */
    mix-blend-mode: difference;
    visibility: visible !important;
    opacity: 1 !important;
    transition: transform 0.15s ease, background 0.2s;
}

.cursor-1.active {
    transform: scale(2.5);
    background: var(--main-color);
    mix-blend-mode: normal;
}

.cursor-2 {
    position: fixed;
    top: 0; left: 0;
    height: 40px; width: 40px;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 99998; /* تحته مباشرة */
    visibility: visible !important;
    transition: 0.15s ease-out, border-color 0.2s;
    transform: translate(-50%, -50%);
}

.cursor-2.active {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: #fff;
    opacity: 0.7 !important;
}




