/* ==========================================================
   5LO PHOTOGRAPHY - STYLESHEET (LOADER & MAIN STYLES)
   ========================================================== */

:root[data-theme="dark"] {
    --bg-primary: #080b0e;
    --bg-secondary: #0f141a;
    --bg-card: #151b22;
    --accent: #d4ff00;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 30px rgba(0,0,0,0.6);
}

:root[data-theme="saudi"] {
    --bg-primary: #05120a;
    --bg-secondary: #091c10;
    --bg-card: #0f2618;
    --accent: #22c55e;
    --text-main: #f0fdf4;
    --text-muted: #86efac;
    --border-color: rgba(34, 197, 94, 0.2);
    --shadow: 0 10px 30px rgba(0,20,10,0.7);
}

:root[data-theme="relax"] {
    --bg-primary: #0c141f;
    --bg-secondary: #131d2b;
    --bg-card: #1b283d;
    --accent: #38bdf8;
    --text-main: #f0f9ff;
    --text-muted: #bae6fd;
    --border-color: rgba(56, 189, 248, 0.2);
    --shadow: 0 10px 30px rgba(12,20,31,0.7);
}

:root[data-theme="light"] {
    --bg-primary: #f1f3f5;
    --bg-secondary: #e9ecef;
    --bg-card: #ffffff;
    --accent: #0f172a;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: rgba(15, 23, 42, 0.12);
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
    padding-top: 115px;
}

html[dir="rtl"] body { text-align: right; }
html[dir="ltr"] body { text-align: left; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 92%; max-width: 1240px; margin: 0 auto; }


#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    gap: 15px;
}

.loader-content {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid color-mix(in srgb, var(--accent) 15%, transparent);
    border-top: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-logo {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 50%;
    clip-path: circle(49% at center);
}

.loader-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.loader-percentage {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
}

.loader-message {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 280px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


#announcementBar {
    background-color: var(--accent);
    color: var(--bg-primary);
    text-align: center;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 700;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 99999 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s;
}


header {
    position: fixed;
    inset-x: 0;
    top: 29px;
    z-index: 99888 !important;
    background-color: var(--bg-primary);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.nav-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-inline: 3vw;
    margin: 0 auto;
    direction: ltr; 
}


html[dir="ltr"] .nav-container { flex-direction: row; }
html[dir="rtl"] .nav-container { flex-direction: row-reverse; }

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
    flex-direction: row;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo {
    font-weight: 900;
    font-size: 21px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo span { color: var(--accent); }

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.nav-links {
    display: none;
    gap: clamp(15px, 1.8vw, 25px);
    align-items: center;
}

@media(min-width: 992px) {
    .nav-links { display: flex; }
}

.nav-links a {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 10px 0;
    white-space: nowrap;
    transition: color .3s ease, transform .3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .35s cubic-bezier(.16,1,.3,1);
    border-radius: 99px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    transform: translateY(-2px);
}

.nav-links a:hover::after, .nav-links a.active::after {
    transform: scaleX(1);
}


.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    flex-wrap: nowrap;
    flex-shrink: 0;
    direction: ltr; 
}

.menu-trigger, .dropdown-trigger, .lang-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    white-space: nowrap;
}

.menu-trigger:hover, .dropdown-trigger:hover, .lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dropdown-wrapper { position: relative; }

.dropdown-trigger { min-width: 110px; justify-content: space-between; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 180px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1100;
    padding: 6px;
}

html[dir="rtl"] .dropdown-menu { left: 0; right: auto; }
html[dir="ltr"] .dropdown-menu { right: 0; left: auto; }

.dropdown-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-item {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

html[dir="rtl"] .dropdown-item { text-align: right; }
html[dir="ltr"] .dropdown-item { text-align: left; }

.dropdown-item:hover {
    background: var(--border-color);
    color: var(--accent);
}

.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.fullscreen-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen-menu a {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-muted);
    transition: color 0.3s;
}

.fullscreen-menu a:hover { color: var(--accent); }

.close-menu {
    position: absolute;
    top: 35px;
    font-size: 32px;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

html[dir="rtl"] .close-menu { left: 40px; right: auto; }
html[dir="ltr"] .close-menu { right: 40px; left: auto; }

.btn-main {
    background-color: var(--accent);
    color: var(--bg-primary);
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-main:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}


.hero-section {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 115px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #080b0e;
    color: #fff;
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(5, 8, 12, 0.88) 0%, rgba(5, 8, 12, 0.58) 52%, rgba(5, 8, 12, 0.22) 100%);
    pointer-events: none;
}

html[dir="rtl"] .hero-section::after {
    background: linear-gradient(270deg, rgba(5, 8, 12, 0.88) 0%, rgba(5, 8, 12, 0.58) 52%, rgba(5, 8, 12, 0.22) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    max-width: 820px;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1.08;
    font-weight: 900;
}

.hero-section p {
    max-width: 720px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
}

.hero-section .btn-sec {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
}

section { padding: 110px 0; border-bottom: 1px solid var(--border-color); }
.sec-header { margin-bottom: 50px; }
.sec-title { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 900; letter-spacing: -1px; margin-top: 8px; }

.grid-2 { display: grid; gap: 24px; }
@media(min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-4 { display: grid; gap: 24px; }
@media(min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.media-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    height: 400px;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, border-color 0.4s ease;
    box-shadow: var(--shadow);
}

.media-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.media-card video { width: 100%; height: 100%; object-fit: cover; }
.media-info {
    position: absolute;
    inset-x: 0;
    bottom: 0;
    padding: 28px;
    background: linear-gradient(0deg, var(--bg-primary) 0%, transparent 100%);
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s ease;
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.card.featured {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.card.featured .badge {
    background: rgba(0, 0, 0, 0.12);
    color: var(--bg-primary);
    border-color: transparent;
}

.card.featured p, .card.featured li { color: var(--bg-primary); }
.card.featured .btn-dark {
    background-color: var(--bg-primary);
    color: var(--accent);
    width: 100%;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    border-radius: 6px;
    display: inline-block;
    margin-top: 24px;
    border: none;
    cursor: pointer;
}

.input-box {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    margin-top: 8px;
    outline: none;
    transition: border-color 0.25s;
}

.input-box:focus { border-color: var(--accent); }

footer { padding: 40px 0; font-size: 14px; color: var(--text-muted); }
.footer-flex {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}

@media(min-width: 768px) { .footer-flex { flex-direction: row; } }

.wa-float {
    position: fixed;
    bottom: 30px;
    background: #25d366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    font-size: 28px;
    transition: transform 0.3s;
}

html[dir="rtl"] .wa-float { left: 30px; right: auto; }
html[dir="ltr"] .wa-float { right: 30px; left: auto; }
.wa-float:hover { transform: scale(1.1); }

.badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: inline-block;
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    body { padding-top: 105px; }
    .hero-section { min-height: calc(100vh - 105px); }
    .nav-container { flex-direction: row; justify-content: space-between; padding-inline: 4vw; gap: 6px; }
    .logo { font-size: 18px; }
    .logo-img { width: 36px; height: 36px; }
    .dropdown-trigger, .menu-trigger { padding: 6px 10px; font-size: 11px; }
    .dropdown-trigger { min-width: 90px; }
    #quickBookingBtn { display: none; }
}


.nav-right-group {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 30px;
}

.nav-controls {
    order: 1;
    direction: ltr;
}

.nav-links {
    order: 2;
    direction: ltr;
}

html[dir="ltr"] .nav-container {
    flex-direction: row;
}

html[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-right-group,
html[dir="ltr"] .nav-right-group {
    flex-direction: row;
}


@media (min-width: 992px) {
    .nav-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        width: 100%;
        max-width: 1640px;
        direction: ltr;
    }

    .nav-right-group {
        display: contents;
    }

    .nav-links {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-items: center;
        direction: ltr;
        order: initial;
    }

    .nav-controls {
        display: flex;
        align-items: center;
        direction: ltr;
        order: initial;
    }

    html[dir="ltr"] .logo-wrapper {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    html[dir="ltr"] .nav-controls {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    html[dir="rtl"] .logo-wrapper {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    html[dir="rtl"] .nav-controls {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }
}


@media (min-width: 992px) {
    
    html[dir="ltr"] .header-side-group {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        flex-direction: row-reverse;
    }

    html[dir="ltr"] .nav-controls {
        flex-direction: row-reverse;
    }

    
    html[dir="rtl"] .header-side-group {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        flex-direction: row;
    }

    html[dir="rtl"] .nav-controls {
        flex-direction: row;
    }
}


.header-side-group {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

@media (min-width: 992px) {
    .nav-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        width: 100%;
        max-width: 1800px;
        direction: ltr;
    }

    .nav-links {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        direction: ltr;
    }

    .nav-controls {
        display: flex;
        direction: ltr;
    }

    
    html[dir="ltr"] .header-side-group {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        flex-direction: row;
    }

    
    html[dir="rtl"] .header-side-group {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        flex-direction: row-reverse;
    }
}

@media (max-width: 991px) {
    .header-side-group {
        width: 100%;
        justify-content: space-between;
    }

    html[dir="rtl"] .header-side-group {
        flex-direction: row-reverse;
    }
}


@media (min-width: 992px) {
    .nav-container {
        width: 98%;
        max-width: 1800px;
        padding-inline: 1vw;
        column-gap: 12px;
    }

    .header-side-group {
        gap: 10px;
        white-space: nowrap;
    }

    .logo-wrapper {
        gap: 7px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    .nav-controls {
        gap: 6px;
    }

    #quickBookingBtn {
        padding: 7px 10px !important;
        font-size: 11.5px !important;
    }

    .menu-trigger,
    .dropdown-trigger,
    .lang-btn {
        padding: 7px 10px;
        font-size: 11.5px;
    }

    .dropdown-trigger {
        min-width: 92px;
    }

    .nav-links {
        gap: clamp(12px, 1.2vw, 20px);
    }

    .nav-links a {
        font-size: 13px;
    }

    
    html[dir="ltr"] .header-side-group,
    html[dir="ltr"] .nav-controls {
        flex-direction: row;
    }

    
    html[dir="rtl"] .header-side-group,
    html[dir="rtl"] .nav-controls {
        flex-direction: row-reverse;
    }
}


@media (min-width: 992px) {
    html[dir="ltr"] .header-side-group {
        grid-column: 3;
        justify-self: end;
        flex-direction: row-reverse;
    }

    html[dir="ltr"] .nav-controls {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .header-side-group {
        grid-column: 1;
        justify-self: start;
        flex-direction: row;
    }

    html[dir="rtl"] .nav-controls {
        flex-direction: row;
    }
}


@media (min-width: 992px) {
    html[dir="ltr"] .header-side-group {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        flex-direction: row;
    }

    html[dir="ltr"] .nav-controls {
        flex-direction: row;
    }

    html[dir="rtl"] .header-side-group {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .nav-controls {
        flex-direction: row-reverse;
    }
}


@media (min-width: 992px) {
    .nav-container {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        width: 98%;
        max-width: 1800px;
        padding-inline: 1vw;
        direction: ltr;
    }

    .nav-links {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        direction: ltr;
    }

    
    html[dir="ltr"] .logo-wrapper {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    html[dir="ltr"] .nav-controls {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        flex-direction: row-reverse;
    }

    
    html[dir="rtl"] .logo-wrapper {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    html[dir="rtl"] .nav-controls {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        flex-direction: row;
    }
}


@media (min-width: 992px) {
    .nav-controls {
        gap: 8px;
    }

    #quickBookingBtn {
        padding: 9px 14px !important;
        font-size: 12.5px !important;
    }

    .menu-trigger,
    .dropdown-trigger,
    .lang-btn {
        padding: 9px 13px;
        font-size: 12.5px;
    }

    .dropdown-trigger {
        min-width: 100px;
    }
}


@media (min-width: 992px) {
    .nav-links {
        gap: clamp(16px, 1.5vw, 26px);
    }

    .nav-links a {
        font-size: 15px;
        font-weight: 700;
    }
}
