/*
Theme Name: AuraSlide Pro
Theme URI: https://waleed.soon.it
Author: Waleed A. Afifi
Author URI: https://waleed.soon.it
Description: A high-performance, minimalist portfolio theme specifically crafted for presentation designers and visual storytellers. Features optimized layouts for showcasing slide decks and pitch kits.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: auraslide
Tags: portfolio, presentation-design, freelancer, clean, responsive-layout

Contact: waleed-afifi@windowslive.com
*/

/* ==========================================================================
   1. Theme Reset & Variables
   ========================================================================== */
:root {
    --bg-dark-deep: #1A1A2E;
    --bg-dark-secondary: #16213E;
    --accent-royal-blue: #0F3460;
    --accent-gold: #EFC07B;
    --text-pearl-white: #F0F0F0;
    --overlay-gradient: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 52, 96, 0.7) 100%);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- الإعدادات العامة --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cairo", sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark-deep);
    color: var(--text-pearl-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.highlight {
    color: var(--accent-gold);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 900;
}

.section-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* --- الهيدر --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(239, 192, 123, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.logo img {
    width: 100px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

/* --- الهيرو سكشن (الخلفية المتدرجة) --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* تأثير Parallax */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-gradient);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

#hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

#hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* 1. إعدادات الحاوية للجوال (الوضع الافتراضي) */
.hero-buttons {
    display: flex;
    flex-direction: column;
    /* العناصر تحت بعضها */
    gap: 15px;
    /* مسافة بين العناصر */
    padding: 10px;
    align-items: stretch;
}


/* --- الأزرار --- */
.btn {
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--bg-dark-deep);
    border: 2px solid var(--accent-gold);
}

.btn-gold:hover {
    background: transparent;
    color: var(--accent-gold);
    transform: translateY(-5px);
}

.btn-outline {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    /* margin-right: 15px; */
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-dark-deep);
    transform: translateY(-5px);
}

/* --- سكشن الخدمات --- */
#services {
    background: var(--bg-dark-secondary);
    padding: 100px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-dark-deep);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(239, 192, 123, 0.05);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-10px);
}

.card h3 {
    color: var(--accent-gold);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* --- معرض الأعمال --- */
#portfolio {
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.port-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: var(--accent-royal-blue);
}

.port-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.port-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 52, 96, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.port-item:hover .port-overlay {
    opacity: 1;
}

.port-item:hover img {
    transform: scale(1.1);
}

/* --- كاورسيل آراء الزبائن --- */
#testimonials {
    background: var(--bg-dark-secondary);
    padding: 100px 0;
    text-align: center;
}

.carousel-wrapper {
    max-width: 800px;
    margin: auto;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.slide {
    display: none;
    padding: 40px;
    background: var(--bg-dark-deep);
    border-radius: 20px;
    border-bottom: 4px solid var(--accent-gold);
    animation: fadeIn 0.8s;
}

.slide.active {
    display: block;
}

.quote {
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.client {
    font-weight: bold;
    color: var(--accent-gold);
}

.dots {
    margin-top: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    background: #444;
    display: inline-block;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: var(--accent-gold);
}

/* --- تنسيق سكشن المقارنة --- */
.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: auto;
    border: 3px solid var(--accent-gold);
    border-radius: 15px;
    overflow: hidden;
    user-select: none;
    /* لمنع تحديد الصور أثناء السحب */
}

/* تثبيت الصور لتغطية المساحة بالكامل */
.image-after,
.image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-after img,
.image-before img {
    width: 900px;
    /* يجب أن يكون نفس عرض الـ container الأقصى */
    height: 500px;
    object-fit: cover;
    display: block;
}

/* الجزء اللي بنتحكم بعرضه (قبل) */
.image-before {
    width: 50%;
    /* القيمة الابتدائية */
    z-index: 2;
    overflow: hidden;
    /* أهم خاصية للقص */
    border-left: 2px solid var(--accent-gold);
}

/* العناوين فوق الصور */
.label {
    position: absolute;
    bottom: 20px;
    padding: 6px 15px;
    background: rgba(26, 33, 62, 0.9);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    z-index: 10;
    border: 1px solid var(--accent-gold);
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
    color: var(--accent-gold);
}

/* المقبض الذهبي */
.handle {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 3px;
    background: var(--accent-gold);
    z-index: 5;
    transform: translateX(-50%);
    pointer-events: none;
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--accent-gold);
    border: 4px solid var(--bg-dark-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark-deep);
    font-size: 12px;
}

/* السلايدر الشفاف اللي فوق كل شيء */
.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
}

@media (max-width: 900px) {
    .comparison-slider {
        height: 350px;
    }

    .image-after img,
    .image-before img {
        width: 100vw;
        height: 350px;
    }
}

/* --- تنسيق الـ FAQ --- */
.faq-item {
    background: var(--bg-dark-deep);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-muted);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--accent-gold);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
    opacity: 0;
    color: #ccc;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
    opacity: 1;
    border-top: 1px solid rgba(239, 192, 123, 0.1);
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
    color: var(--accent-gold);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* --- الأسعار --- */
#pricing {
    padding: 100px 0;
}

.price-card {
    background: var(--bg-dark-secondary);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(239, 192, 123, 0.1);
}

.price-card.featured {
    border: 2px solid var(--accent-gold);
    transform: scale(1.05);
    z-index: 2;
}

.price-val {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-gold);
    margin: 20px 0;
}

.price-val span {
    font-size: 1rem;
    color: #fff;
}

/* --- التواصل --- */
#contact {
    padding: 100px 0;
    background: var(--bg-dark-deep);
}

.contact-form {
    max-width: 600px;
    margin: auto;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: var(--bg-dark-secondary);
    border: 1px solid rgba(239, 192, 123, 0.2);
    border-radius: 8px;
    color: white;
    outline: none;
}

input:focus {
    border-color: var(--accent-gold);
}

/* إخفاء الخط الأبيض الناتج عن الحقول المخفية */
.wpcf7 fieldset.hidden-fields-container {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* للتأكد من عدم وجود أي هوامش علوية للفورم نفسه */
.wpcf7-form {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* حل مشكلة اتجاه النص في الحقول */
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 form {
    direction: rtl !important;
    text-align: right !important;
}

/* التأكد من أن الـ Placeholder أيضاً يظهر يميناً */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    text-align: right !important;
    direction: rtl !important;
}

/* لضمان عدم وجود تضارب مع كلاسات الإضافة */
div.wpcf7 {
    direction: rtl !important;
}

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(239, 192, 123, 0.1);
    opacity: 0.7;
}

/* --- الموبايل --- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .price-card.featured {
        transform: scale(1);
        margin: 20px 0;
    }
}

/* إذا كان الهيدر عندك Fixed، هذا الكود يمنع البار من تغطيته */
body.admin-bar header {
    top: 32px;
    /* ارتفاع بار الأدمن في المتصفحات العادية */
}

@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
        /* ارتفاع بار الأدمن في الشاشات الصغيرة */
    }
}


.back-btn {
    font-size: 1rem;
    border: 1px solid var(--accent-gold);
    padding: 8px 20px;
    border-radius: 5px;
    color: var(--accent-gold);
}

.back-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-dark-deep);
}

/* --- سكشن الهيرو للمشروع --- */
#project-hero {
    padding: 200px 0 100px;
    text-align: center;
    background: radial-gradient(circle at center, var(--accent-royal-blue) 0%, var(--bg-dark-deep) 70%);
}

.project-category {
    color: var(--accent-gold);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

#project-hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
}

.project-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    opacity: 0.8;
    font-size: 1.1rem;
}

/* --- سكشن المعاينة الرئيسية (The Showpiece) --- */
#project-showcase {
    padding: 60px 0;
}

.main-preview-container {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 1100px;
    margin: -50px auto 100px;
    border: 8px solid var(--bg-dark-secondary);
    border-radius: 15px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: translateY(0);
    transition: var(--transition);
}

.main-preview-container:hover {
    transform: translateY(-10px);
}

.main-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- سكشن تفاصيل المشروع (The Story) --- */
#project-details {
    padding: 100px 0;
    background: var(--bg-dark-secondary);
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.details-text h2 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 30px;
}

.details-text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.client-feedback {
    background: var(--bg-dark-deep);
    padding: 40px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-gold);
    margin-top: 50px;
}

.feedback-quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.feedback-author {
    font-weight: bold;
    color: var(--accent-gold);
}

.project-specs {
    background: var(--bg-dark-deep);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(239, 192, 123, 0.1);
}

.project-specs h3 {
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
    text-align: center;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: bold;
    opacity: 0.7;
}

/* --- سكشن معرض السلايدات (The Gallery) --- */
#project-gallery {
    padding: 100px 0;
}

.gallery-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(239, 192, 123, 0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px;
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .zoom-icon {
    opacity: 1;
}

/* --- سكشن دعوة للأكشن (CTA) --- */
#project-cta {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at center, var(--accent-royal-blue) 0%, var(--bg-dark-deep) 70%);
}

#project-cta h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.btn-gold {
    background: var(--accent-gold);
    color: var(--bg-dark-deep);
    border: 2px solid var(--accent-gold);
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition);
}

.btn-gold:hover {
    background: transparent;
    color: var(--accent-gold);
    transform: translateY(-5px);
}

/* --- التذييل --- */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(239, 192, 123, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* --- تجاوب مع الموبايل --- */
@media (max-width: 992px) {
    #project-hero h1 {
        font-size: 2.8rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
}