@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Montserrat:wght@300;400;500&display=swap');

:root {
    /* Day Theme (Default) */
    --bg-color: #f7f5f0;
    --bg-color-light: #ffffff;
    --text-primary: #2a2a2a;
    --text-secondary: #5c5a5c;
    --accent-gold: #b38b4d;
    --accent-hover: #96723b;
    
    /* Theme specific variables for backgrounds/borders */
    --header-gradient: linear-gradient(to bottom, rgba(247, 245, 240, 0.9) 0%, rgba(247, 245, 240, 0) 100%);
    --header-scrolled: rgba(247, 245, 240, 0.95);
    --hero-overlay: rgba(0, 0, 0, 0.4);
    --lightbox-bg: rgba(247, 245, 240, 0.98);
    --border-subtle: rgba(0, 0, 0, 0.05);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
    /* Night Theme */
    --bg-color: #0f1115;
    --bg-color-light: #16191e;
    --text-primary: #f0ebd8;
    --text-secondary: #a39ca3;
    --accent-gold: #c5a059;
    --accent-hover: #e3be75;
    
    /* Theme specific variables for backgrounds/borders */
    --header-gradient: linear-gradient(to bottom, rgba(15, 17, 21, 0.9) 0%, rgba(15, 17, 21, 0) 100%);
    --header-scrolled: rgba(15, 17, 21, 0.95);
    --hero-overlay: rgba(15, 17, 21, 0.6);
    --lightbox-bg: rgba(15, 17, 21, 0.98);
    --border-subtle: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

[dir="rtl"] {
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Hero */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
    background: var(--header-gradient);
}
.header.scrolled {
    background: var(--header-scrolled);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.lang-switch a {
    margin-left: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
[dir="rtl"] .lang-switch a {
    margin-left: 0;
    margin-right: 15px;
}
.lang-switch a:hover, .lang-switch a.active {
    color: var(--accent-gold);
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

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

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #eaeaea;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
}
.btn-primary:hover {
    background-color: var(--accent-gold);
    color: var(--bg-color);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}
.btn-pulse {
    animation: pulse 2s infinite;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--accent-gold);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 20px auto 0;
}

/* Content Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.text-block p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Features List */
.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
}

.features-list li span:first-child {
    color: var(--text-secondary);
}
.features-list li span:last-child {
    font-weight: 500;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(197, 160, 89, 0.2);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-item:hover .overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lightbox-bg);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-controls {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 5%;
    pointer-events: none;
}
.lightbox-btn {
    pointer-events: auto;
    background: rgba(15, 17, 21, 0.7);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 15px 20px;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}
.lightbox-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-color);
}

/* Call to Action */
.cta-section {
    background-color: var(--bg-color-light);
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    section {
        padding: 60px 0;
    }
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.theme-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.theme-switch {
    display: inline-block;
    height: 30px;
    position: relative;
    width: 56px;
}
.theme-switch input {
    display:none;
}
.slider {
    background-color: var(--border-subtle);
    border: 1px solid var(--accent-gold);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}
.slider:before {
    background-color: var(--accent-gold);
    bottom: 3px;
    content: "";
    height: 22px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 22px;
}
input:checked + .slider {
    background-color: transparent;
}
input:checked + .slider:before {
    transform: translateX(24px);
}
.slider.round {
    border-radius: 30px;
}
.slider.round:before {
    border-radius: 50%;
}
