@font-face {
    font-family: 'Bukra';
    src: url('29ltbukraregular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bukra';
    src: url('29LT Bukra Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
 
:root {
    --primary-color: #fcfbf7; /* لون كريمي ناصع وناعم */
    --secondary-color: #c39949; /* ذهبي ملكي */
    --accent-color: #ffffff;
    --text-color: #2d3436; /* رمادي غامق جداً للقراءة المريحة */
    --heading-color: #1a1a1a; /* أسود خفيف للعناوين */
    --bg-gradient: linear-gradient(135deg, #fcfbf7 0%, #f1f2f6 100%);
    --transition: all 0.3s cubic-bezier(0.5, 0.0945, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Bukra', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
}

#aleppo {
    scroll-snap-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Splash Screen & Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}

.book-wrapper {
    width: 200px;
    height: 140px;
    position: relative;
    transform-style: preserve-3d;
}

.book {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
}

/* Elegant Book Parts */
.book-part {
    position: absolute;
    width: 100px;
    height: 140px;
    background: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(195, 153, 73, 0.2);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 10;
}

.book-part.left {
    right: 50%;
    border-radius: 8px 0 0 8px;
    transform-origin: right center;
    animation: openElegantLeft 1.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.5s forwards;
}

.book-part.right {
    left: 50%;
    border-radius: 0 8px 8px 0;
    transform-origin: left center;
    animation: openElegantRight 1.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.5s forwards;
}

/* Inner Page Effect */
.book-part::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
}

@keyframes openElegantLeft {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(-140deg); }
}

@keyframes openElegantRight {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(140deg); }
}

.splash-text {
    margin-top: 50px;
    font-size: 3rem;
    font-weight: bold;
    color: var(--heading-color);
    text-shadow: 0 0 15px rgba(195, 153, 73, 0.2);
    opacity: 0;
    transform: scale(0.9);
    animation: textAppearElegant 1.2s cubic-bezier(0.23, 1, 0.32, 1) 1.5s forwards;
    letter-spacing: 6px;
}

@keyframes textAppearElegant {
    0% { opacity: 0; transform: scale(0.9) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Floating Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 20px;
    background: transparent;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

nav.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

nav.hidden {
    opacity: 0;
    transform: translateY(-50px);
    pointer-events: none;
}

.nav-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 10px 40px;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(195, 153, 73, 0.15);
    max-width: 1000px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo img {
    height: 55px; /* حجم متوازن */
    width: auto;
    max-width: 180px;
    filter: none;
    object-fit: contain;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--secondary-color);
    background: rgba(195, 153, 73, 0.05);
}

nav ul li a.active {
    color: white;
    background: var(--secondary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: #fcfbf7;
    padding: 80px 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-wrapper {
    margin-bottom: 20px;
}

.hero-logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(195, 153, 73, 0.2));
    animation: float 6s ease-in-out infinite;
}

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

.name-img {
    max-width: 90%;
    width: 400px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(195, 153, 73, 0.2));
    transition: var(--transition);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--heading-color);
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--heading-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: #636e72;
    font-size: 1.2rem;
}

/* About Section */
.about {
    padding: 120px 0;
    background: #ffffff;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(195, 153, 73, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.about-card {
    background: #fcfbf7;
    border: 1px solid rgba(195, 153, 73, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
    padding: 60px 40px;
    border-radius: 30px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.about-card:hover {
    transform: translateY(-20px);
    background: #ffffff;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    border-color: rgba(195, 153, 73, 0.3);
}

.about-card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    color: var(--secondary-color);
    filter: drop-shadow(0 0 10px rgba(195, 153, 73, 0.3));
}

.about-card h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 20px;
}

/* Aleppo Section */
.aleppo-section {
    background: #fcfbf7;
    width: 100vw !important;
    height: 100vh;
    position: relative;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

.stars-background {
    background: #fcfbf7; /* إزالة النجوم في وضع النهار لجمالية القلعة */
}

.stars-background::before, .stars-background::after {
    display: none;
}

.aleppo-container {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    position: relative;
    z-index: 2;
}

.aleppo-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    transition: all 2.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(1.1);
    filter: blur(10px) brightness(0.5);
    opacity: 0;
    z-index: 2;
}

.aleppo-section.active .aleppo-img {
    transform: scale(1);
    filter: blur(0) brightness(1);
    opacity: 1;
}

.aleppo-overlay {
    position: absolute;
    top: 15%;
    right: 10%;
    z-index: 10;
    pointer-events: none;
}

.aleppo-text-wrapper {
    text-align: right;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}

.aleppo-section.active .aleppo-text-wrapper {
    opacity: 1;
    transform: translateX(0);
}

.aleppo-title {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 10px;
    font-weight: normal;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.aleppo-subtitle {
    font-size: clamp(2.5rem, 10vw, 5rem);
    color: var(--secondary-color);
    font-weight: bold;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.highlight {
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(195, 153, 73, 0.5);
}

/* Aleppo Section Responsive */
@media (max-width: 768px) {
    .aleppo-section {
        width: 100% !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .aleppo-overlay {
        top: 10%; /* رفع النصوص للأعلى لتجنب القلعة */
        right: 0;
        left: 0;
        text-align: center;
        width: 100%;
    }

    .aleppo-text-wrapper {
        text-align: center;
    }

    .aleppo-title {
        font-size: 1.1rem;
    }

    .aleppo-subtitle {
        font-size: 3.5rem;
    }

    .aleppo-img {
        height: 60vh; /* تصغير ارتفاع الصورة في الجوال لتوسيع مساحة السماء */
        opacity: 1;
        filter: none;
        transform: scale(1);
    }

    .stars-background {
        opacity: 0.6; /* زيادة وضوح النجوم في الجوال */
    }
}

/* Contact Section */
.contact {
    background: #ffffff;
    padding: 150px 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.info-item {
    background: #fcfbf7;
    border: 1px solid rgba(195, 153, 73, 0.1);
    padding: 40px;
    border-radius: 30px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.info-item:hover {
    transform: translateY(-10px);
    background: #ffffff;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    border-color: rgba(195, 153, 73, 0.3);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.info-text h3 {
    color: var(--heading-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-text a, .info-text p {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.info-text a:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    background: #ffffff;
    padding: 150px 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.info-item {
    background: #fcfbf7;
    border: 1px solid rgba(195, 153, 73, 0.1);
    padding: 40px;
    border-radius: 30px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.info-item:hover {
    transform: translateY(-10px);
    background: #ffffff;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.05);
    border-color: rgba(195, 153, 73, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 10;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 10px 25px rgba(195, 153, 73, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #a67c37;
    transform: translateY(-2px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Newsletter Section Fix */
.newsletter {
    background: #fcfbf7;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(195, 153, 73, 0.1);
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    text-align: center;
}

.newsletter h3 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 25px;
}

#subscribe-form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    background: #ffffff;
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(195, 153, 73, 0.2);
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

#subscribe-form input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-family: 'Bukra', sans-serif;
    font-size: 0.95rem;
    outline: none;
}

#subscribe-form .btn-secondary {
    padding: 10px 30px;
    border-radius: 50px;
    background: var(--secondary-color);
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 480px) {
    #subscribe-form {
        flex-direction: column;
        border-radius: 20px;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    #subscribe-form input {
        width: 100%;
        background: #fff;
        border-radius: 50px;
        margin-bottom: 10px;
        border: 1px solid rgba(195, 153, 73, 0.2);
    }
    
    #subscribe-form .btn-secondary {
        width: 100%;
    }
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    background: #fcfbf7;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #636e72;
    font-size: 0.9rem;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.animate-reveal {
    animation: reveal 1s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

.animate-fade-in-delayed {
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .time-block {
        min-width: 80px;
        padding: 15px;
    }
    
    #subscribe-form {
        flex-direction: column;
    }
}

/* Responsive Updates */
@media (max-width: 768px) {
    nav {
        top: 15px;
    }

    .nav-container {
        padding: 10px 20px;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.9);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }

    .menu-toggle .bar {
        width: 25px;
        height: 3px;
        background-color: var(--secondary-color);
        border-radius: 10px;
        transition: var(--transition);
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 20px;
        right: 20px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        padding: 20px;
        border-radius: 20px;
        gap: 10px;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: var(--transition);
        border: 1px solid rgba(195, 153, 73, 0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    nav ul li a {
        font-size: 1.1rem;
        padding: 15px;
        color: var(--text-color);
    }

    /* Animation for Menu Toggle */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .aleppo-overlay {
        top: 12%;
    }

    .aleppo-subtitle {
        font-size: 3.5rem;
    }
}
