/* ============================================
   تصميم بورتفوليو المقاولات - Book Experience
   ============================================ */

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

:root {
    --primary: #0f0f1e;
    --secondary: #c9a961;
    --accent: #f5f5f5;
    --dark: #050a15;
    --light: #ffffff;
    --gray: #888888;
    --gold: #d4af37;
    --gold-light: #e8d4a8;
    --transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
}

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


/* Scrollbar Styling */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 30, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c9a961 0%, #e8d4a8 100%);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e8d4a8 0%, #f5f5f5 100%);
    box-shadow: 0 0 15px rgba(201, 169, 97, 0.5);
}


/* الصفحة الأولى - الافتتاح */

.opening-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f0f1e 0%, #050a15 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.6s ease-out;
    overflow: hidden;
}

.opening-page.hidden {
    opacity: 0;
    pointer-events: none;
}


/* صفحة الافتتاح الجديدة */

.splash-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s ease-out;
    z-index: 11;
}

.splash-container.fade-out {
    opacity: 0;
}

.splash-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(201, 169, 97, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.splash-content {
    position: relative;
    z-index: 12;
    text-align: center;
    max-width: 600px;
    padding: 40px;
    animation: splashFadeIn 0.8s ease-out;
}

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

.splash-logo {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.splash-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(201, 169, 97, 0.3));
}

.splash-title {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #c9a961 0%, #e8d4a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.splash-subtitle {
    font-size: 20px;
    color: #c9a961;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.splash-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c9a961, transparent);
    margin: 30px auto;
}

.splash-tagline {
    font-size: 16px;
    color: #e8d4a8;
    line-height: 1.8;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.splash-button {
    background: linear-gradient(135deg, #c9a961 0%, #e8d4a8 100%);
    color: #0f0f1e;
    border: none;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.3);
}

.splash-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(201, 169, 97, 0.5);
    background: linear-gradient(135deg, #e8d4a8 0%, #f5f5f5 100%);
}

.book-cover {
    perspective: 1200px;
    position: relative;
    width: 90%;
    max-width: 550px;
    height: 650px;
    z-index: 10;
}

.book-spine {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 650px;
    background: linear-gradient(90deg, rgba(5, 10, 21, 0.9) 0%, rgba(15, 15, 30, 0.95) 50%, rgba(5, 10, 21, 0.9) 100%);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.9), 10px 0 50px rgba(0, 0, 0, 0.9), inset -5px 0 15px rgba(201, 169, 97, 0.1);
    border-radius: 3px;
    z-index: 10;
}

.book-page {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform-origin: center;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.book-page.left {
    right: 50%;
    transform: rotateY(0deg);
}

.book-page.right {
    left: 50%;
    transform: rotateY(0deg);
}

.book-cover.open .book-page.left {
    transform: rotateY(-180deg);
}

.book-cover.open .book-page.right {
    transform: rotateY(0deg);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
    animation: logoFadeIn 1.2s ease-out 0.3s both;
}

.logo-icon {
    display: inline-block;
    max-width: 80px;
    max-height: 80px;
    filter: drop-shadow(0 4px 12px rgba(201, 169, 97, 0.3));
}

.logo {
    font-size: 70px;
    font-weight: 800;
    color: #0f0f1e;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    animation: bounce 2s ease-in-out 1s infinite;
}

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

.logo-subtitle {
    font-size: 12px;
    color: #888888;
    margin-top: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: slideUp 0.8s ease-out 0.6s both;
    font-weight: 500;
}

.book-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.book-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f0f1e;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    animation: slideUp 0.8s ease-out 0.4s both;
    letter-spacing: 1px;
}

.book-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 40px;
    animation: slideUp 0.8s ease-out 0.5s both;
    font-weight: 400;
}

.open-button {
    background: linear-gradient(135deg, #c9a961 0%, #e8d4a8 100%);
    color: #0f0f1e;
    border: none;
    padding: 14px 40px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-fast);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4), 0 0 15px rgba(201, 169, 97, 0.2);
    animation: slideUp 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.open-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(201, 169, 97, 0.6), 0 0 25px rgba(201, 169, 97, 0.3);
    background: linear-gradient(135deg, #e8d4a8 0%, #f5f5f5 100%);
}

.open-button:active {
    transform: translateY(-1px);
}

.open-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.open-button:active::before {
    width: 300px;
    height: 300px;
}

.cta-button {
    display: inline-block;
    padding: 16px 50px;
    background: linear-gradient(135deg, #c9a961 0%, #e8d4a8 100%);
    color: #0f0f1e;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-fast);
    box-shadow: 0 10px 40px rgba(201, 169, 97, 0.4), 0 0 20px rgba(201, 169, 97, 0.2);
    cursor: pointer;
    border: none;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(201, 169, 97, 0.6), 0 0 30px rgba(201, 169, 97, 0.3);
    background: linear-gradient(135deg, #e8d4a8 0%, #f5f5f5 100%);
}

.cta-button:active {
    transform: translateY(-2px);
}


/* ============================================
   الصفحة الرئيسية - المحتوى
   ============================================ */

.main-container {
    opacity: 0;
    transition: opacity 0.8s ease-out;
    pointer-events: none;
}

.main-container.visible {
    opacity: 1;
    pointer-events: auto;
}


/* Header Navigation */

.header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, rgba(15, 15, 30, 0.98) 0%, rgba(15, 15, 30, 0.95) 100%);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
    animation: slideDown 0.8s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 169, 97, 0.1);
}

.header-logo {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #c9a961 0%, #e8d4a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(201, 169, 97, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(201, 169, 97, 0.3));
    transition: all 0.3s ease;
}

.header-logo-img:hover {
    filter: drop-shadow(0 4px 12px rgba(201, 169, 97, 0.5));
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--light);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c9a961, #e8d4a8);
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: #c9a961;
}

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


/* Hero Section */

.hero {
    margin-top: 80px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.95) 0%, rgba(5, 10, 21, 0.95) 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(212,175,55,0.08)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(201, 169, 97, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% -20%, rgba(201, 169, 97, 0.08) 0%, transparent 40%);
    pointer-events: none;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(201, 169, 97, 0.4));
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #c9a961 0%, #e8d4a8 50%, #f5f5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: #e8d4a8;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1.5px;
}

.cta-button {
    display: inline-block;
    padding: 15px 50px;
    background: linear-gradient(135deg, var(--secondary) 0%, #c99a1a 100%);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.5);
}


/* Projects Section */

.projects-section {
    padding: 140px 40px;
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.98) 0%, rgba(5, 10, 21, 0.98) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.projects-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(201, 169, 97, 0.08) 0%, transparent 50%);
    animation: gradientRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes gradientRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.section-title {
    font-size: 52px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin: 0;
    background: linear-gradient(135deg, #c9a961 0%, #e8d4a8 50%, #f5f5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #c9a961, transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.3);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 100px;
    animation: fadeIn 0.8s ease-out;
}

.section-icon {
    filter: drop-shadow(0 0 10px rgba(201, 169, 97, 0.3));
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.section-icon:hover {
    filter: drop-shadow(0 0 20px rgba(201, 169, 97, 0.6));
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease-out;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    cursor: pointer;
    group: "gallery";
    animation: scaleIn 0.6s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(201, 169, 97, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(201, 169, 97, 0.4), 0 0 30px rgba(201, 169, 97, 0.2);
    border-color: rgba(201, 169, 97, 0.3);
}

.gallery-item:nth-child(1) {
    animation-delay: 0.05s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.15s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.25s;
}

.gallery-item:nth-child(6) {
    animation-delay: 0.3s;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.15) rotate(0.5deg);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.8) 0%, rgba(5, 10, 21, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

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

.gallery-overlay.video-overlay {
    flex-direction: column;
    gap: 15px;
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.play-button {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.5), rgba(201, 169, 97, 0.3));
    border: 3px solid #c9a961;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 25px rgba(201, 169, 97, 0.5), inset 0 0 20px rgba(201, 169, 97, 0.2);
}

.gallery-item:hover .play-button {
    background: linear-gradient(135deg, #c9a961, #e8d4a8);
    transform: scale(1.2);
    box-shadow: 0 0 50px rgba(201, 169, 97, 0.9), inset 0 0 25px rgba(201, 169, 97, 0.4);
}

.video-label {
    color: #c9a961;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-icon {
    filter: drop-shadow(0 0 10px rgba(201, 169, 97, 0.5));
    display: inline-block;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    filter: drop-shadow(0 0 20px rgba(201, 169, 97, 0.8));
    transform: scale(1.1);
}


/* تأثير الضوء على الصور */

.gallery-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(0, 0);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-icon {
    font-size: 40px;
    color: var(--secondary);
}


/* Modal */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 10, 21, 0.98);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 95vw;
    max-height: 90vh;
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 60px rgba(201, 169, 97, 0.3), 0 20px 60px rgba(0, 0, 0, 0.9);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(201, 169, 97, 0.2);
}

.modal-content img,
.modal-content video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    display: block;
    animation: slideInRight 0.4s ease;
}

.modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #c9a961 0%, #e8d4a8 100%);
    border: none;
    color: #0f0f1e;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.4);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.2);
    background: linear-gradient(135deg, #e8d4a8 0%, #f5f5f5 100%);
    box-shadow: 0 0 50px rgba(201, 169, 97, 0.7);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #c9a961 0%, #e8d4a8 100%);
    color: #0f0f1e;
    border: none;
    width: 70px;
    height: 70px;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.4);
}

.modal-nav:hover {
    background: linear-gradient(135deg, #e8d4a8 0%, #f5f5f5 100%);
    box-shadow: 0 0 50px rgba(201, 169, 97, 0.7);
    transform: translateY(-50%) scale(1.15);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-nav:active {
    transform: translateY(-50%) scale(0.9);
}

.modal {
    backdrop-filter: blur(5px);
}

.modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.modal-content img,
.modal-content video {
    display: block;
    animation: slideInRight 0.4s ease;
}


/* تحسين الـ video controls */

video::-webkit-media-controls {
    display: flex !important;
}

video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8) !important;
    height: 50px !important;
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-fullscreen-button {
    width: 40px !important;
    height: 40px !important;
}

video::-webkit-media-controls-timeline {
    height: 8px !important;
    margin: 8px 5px !important;
}

video {
    max-width: 100%;
    height: auto;
}


/* Footer */

.footer {
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.95) 0%, rgba(5, 10, 21, 0.95) 100%);
    padding: 100px 40px;
    text-align: center;
    border-top: 2px solid rgba(201, 169, 97, 0.15);
    animation: slideUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(201, 169, 97, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(201, 169, 97, 0.1) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(201, 169, 97, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(201, 169, 97, 0.3));
}

.footer-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-title {
    font-size: 42px;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #c9a961 0%, #e8d4a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    font-size: 16px;
    color: #e8d4a8;
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 300;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.contact-item {
    font-size: 15px;
    color: #f5f5f5;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    color: #c9a961;
}

.contact-item strong {
    color: #c9a961;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    padding-top: 30px;
    font-size: 12px;
    color: #888888;
    letter-spacing: 1.5px;
}


/* ============================================
   تأثيرات الجزيئات والخلفيات
   ============================================ */

.particle {
    position: fixed;
    pointer-events: none;
    opacity: 0.5;
}

.particle::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
}


/* ============================================
   الأنيميشن
   ============================================ */

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(201, 169, 97, 0);
    }
}

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

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


/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
        letter-spacing: -0.5px;
    }
    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .section-title {
        font-size: 36px;
        margin-bottom: 50px;
    }
    .header {
        padding: 0 20px;
    }
    .nav-menu {
        gap: 15px;
    }
    .nav-item {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    .projects-section {
        padding: 80px 20px;
    }
    .footer {
        padding: 60px 20px;
    }
    .footer-title {
        font-size: 32px;
    }
    .footer-contact {
        gap: 25px;
        flex-direction: column;
    }
    .modal-prev,
    .modal-next {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    .modal-close {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    .modal-content {
        max-height: 85vh;
    }
    .modal-content video {
        max-height: 80vh;
    }
    .cta-button {
        padding: 12px 35px;
        font-size: 12px;
        letter-spacing: 1px;
    }
    .book-page {
        padding: 30px;
    }
    .logo {
        font-size: 50px;
    }
    .book-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .book-page {
        padding: 20px;
    }
    .logo {
        font-size: 45px;
    }
    .book-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    .book-description {
        font-size: 13px;
        margin-bottom: 25px;
    }
    .open-button {
        padding: 12px 25px;
        font-size: 12px;
        letter-spacing: 1.5px;
    }
    .hero-title {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    .cta-button {
        padding: 12px 30px;
        font-size: 12px;
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .nav-menu {
        gap: 10px;
    }
    .nav-item {
        font-size: 10px;
    }
    .footer-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .footer-text {
        font-size: 14px;
    }
    .contact-item {
        font-size: 13px;
    }
    .projects-section {
        padding: 60px 15px;
    }
    .footer {
        padding: 50px 15px;
    }
    .modal-prev {
        left: 10px;
    }
    .modal-next {
        right: 10px;
    }
    .modal-close {
        top: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    .modal-nav {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    .modal-content {
        max-height: 80vh;
        border-radius: 12px;
    }
    .modal-content video {
        max-height: 75vh;
    }
    .header {
        height: 70px;
        padding: 0 15px;
    }
}