/**
 * Dimensions WordPress Theme - Slide-Based Layout CSS
 * ملف CSS شامل للتصميم الفاخر والحديث
 * 
 * يتم وضع هذا الملف في:
 * /wp-content/themes/your-theme-name/css/dimensions-slides.css
 */

/* ==================== IMPORTS & VARIABLES ==================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Tajawal:wght@400;600;700&display=swap');

:root {
    --primary-color: #1e3a5f;
    --accent-color: #d4af37;
    --background-dark: #0f1419;
    --background-light: #f8f7f4;
    --text-light: #e0e0e0;
    --text-dark: #1a1a1a;
    --border-color: #333333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', serif;
    font-weight: 700;
}

/* ==================== SLIDE CONTAINER ==================== */
.dimensions-slides-wrapper {
    width: 100%;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.slide {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}

.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ==================== SLIDE 1: HERO SLIDE ==================== */
.slide-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #152a47 100%);
    position: relative;
    overflow: hidden;
}

.slide-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.slide-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

/* Navigation Bar */
.dimensions-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    color: white;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Content */
.hero-content {
    text-align: center;
    z-index: 2;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* CTA Buttons */
.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.cta-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.cta-primary:hover {
    background: #e5c158;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cta-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.cta-secondary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(-5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-text {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.scroll-arrow span {
    width: 2px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 1px;
    animation: scrollDown 1s ease-in-out infinite;
}

.scroll-arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes scrollDown {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

/* ==================== SLIDE 2: ABOUT SLIDE ==================== */
.slide-about {
    background: linear-gradient(135deg, var(--background-dark) 0%, #1a2332 100%);
}

.about-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.about-text {
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
}

/* CEO Quote */
.ceo-quote {
    background: rgba(212, 175, 55, 0.1);
    border-right: 4px solid var(--accent-color);
    padding: 2rem;
    border-radius: 0.5rem;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.quote-text {
    font-size: 1.3rem;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 600;
}

.quote-author {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: right;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
}

.stat-item:hover {
    background: rgba(212, 175, 55, 0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ==================== SLIDE 3: SERVICES SLIDE ==================== */
.slide-services {
    background: linear-gradient(135deg, var(--primary-color) 0%, #152a47 100%);
}

.services-carousel {
    width: 100%;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.service-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.service-slide.active {
    display: flex;
    gap: 3rem;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.service-left {
    flex: 1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-video-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.service-video-placeholder:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-color);
}

.video-icon {
    font-size: 4rem;
}

.service-video-placeholder p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-right {
    flex: 1;
}

.service-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Service Navigation */
.service-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.service-nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-nav-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.service-counter {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* ==================== SLIDE 4: CONTACT & FOOTER SLIDE ==================== */
.slide-contact {
    background: linear-gradient(135deg, var(--background-dark) 0%, #1a2332 100%);
}

.contact-container {
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.5rem;
    color: var(--text-light);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    font-size: 1.5rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer */
.dimensions-footer {
    position: absolute;
    bottom: 1rem;
    width: 100%;
    text-align: center;
    color: rgba(224, 224, 224, 0.5);
    font-size: 0.85rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .navbar-menu {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .service-slide.active {
        flex-direction: column;
        gap: 2rem;
    }

    .service-left {
        min-height: 200px;
    }

    .service-video-placeholder {
        height: 200px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

    .slide-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .navbar-logo {
        font-size: 1rem;
    }

    .navbar-menu {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-description {
        font-size: 0.9rem;
    }
}

/* ==================== SCROLL SNAP FALLBACK ==================== */
@supports (scroll-snap-type: y mandatory) {
    .dimensions-slides-wrapper {
        scroll-snap-type: y mandatory;
    }

    .slide {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}
