@font-face {
    font-family: 'AlJazeera';
    src: url("../fonts/Aljazeera.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AlJazeera';
    src: url("../fonts/Al-Jazeera-Arabic-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'ProximaNova';
    src: url("../fonts/ProximaNova-Bold.OTF") format("opentype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'ProximaNova';
    src: url("../fonts/ProximaNova-SemiBold.OTF") format("opentype");
    font-weight: 600;
    font-style: normal;
}

/* Gallery Studio Styles */
:root {
    --brand-blue: #c62026;
    --brand-dark: #111111;
    --brand-black: #000000;
}

body {
    background-color: var(--brand-black);
    color: white;
    font-family: 'AlJazeera', 'ProximaNova', sans-serif;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

/* Navbar Styles */
.navbar-floating-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 20px;
}

.navbar-modern {
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(198, 32, 38, 0.3);
    border-radius: 9999px;
    padding: 8px 30px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 
                0 0 15px -5px rgba(198, 32, 38, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    max-width: 1200px;
    pointer-events: auto;
    transition: all 0.3s ease;
    gap: 2rem;
}

.navbar-modern:hover {
    background: rgba(10, 10, 10, 0.85);
    border-color: rgba(198, 32, 38, 0.5);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6), 
                0 0 20px -5px rgba(198, 32, 38, 0.3);
}

.nav-link-modern {
    color: #e5e5e5;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link-modern:hover {
    color: #ffffff;
    background: rgba(198, 32, 38, 0.15);
    text-shadow: 0 0 8px rgba(198, 32, 38, 0.6);
}

.nav-link-modern.active {
    color: #c62026;
    background: rgba(198, 32, 38, 0.1);
    font-weight: 600;
}

.nav-link-elite {
    position: relative;
    display: block;
    padding: 0.75rem 0;
    color: #d1d5db;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
}

.nav-link-elite:hover {
    color: #c62026;
    text-shadow: 0 0 10px rgba(198, 32, 38, 0.5);
    background: rgba(198, 32, 38, 0.1);
    transform: translateY(-2px);
}

.lang-menu {
    z-index: 60;
}

.lang-option {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(198, 32, 38, 0.2);
}

.glass-effect {
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.5);
}

/* Protection */
img {
    pointer-events: auto; /* Allow interaction for clicks */
    -webkit-user-drag: none;
    user-select: none;
}

video {
    pointer-events: auto;
    -webkit-user-drag: none;
}

/* Prevent right click menu on images/video via CSS if possible, mostly JS handled */


/* Allow interaction with controls for video but prevent download if possible via controlsList */
video::-webkit-media-controls-enclosure {
    overflow: hidden;
}
video::-webkit-media-controls-panel {
    width: calc(100% + 30px); /* Hide download button hack */
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Project Card */
.project-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: #1a1a1a;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 4/3;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(198, 32, 38, 0.2);
    border-color: var(--brand-blue);
}

.project-card img.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img.cover {
    transform: scale(1.1);
}

/* Overlay & Logo */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    pointer-events: none;
}

.project-overlay::before {
    /* Logo Overlay */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-image: url('../img/LOGO.png'); /* Adjust path relative to CSS file */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay::before {
    opacity: 0.8;
    filter: grayscale(0%);
    transform: translate(-50%, -50%) scale(1.2);
}

.project-info {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.project-meta {
    font-size: 0.875rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal / Lightbox */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -20px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}

/* Scrollbar styling */
.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-track {
    background: #111;
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 4px;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.gallery-item {
    position: relative;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Watermark on individual items */
.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    background-image: url('../img/LOGO.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    pointer-events: none;
    z-index: 20; /* Increased z-index */
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.8));
}

/* Watermark for Project Cards (Thumbnails) */
.project-card::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background-image: url('../img/LOGO.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    pointer-events: none;
    z-index: 20;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.8));
}

/* Mobile Adjustments for Watermark */
@media (max-width: 768px) {
    .gallery-item::after {
        width: 40px;
        height: 40px;
        bottom: 10px;
        left: 10px;
    }
    .project-card::after {
        width: 35px;
        height: 35px;
        bottom: 10px;
        left: 10px;
    }
}


/* Filter Buttons */
.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    box-shadow: 0 0 15px rgba(198, 32, 38, 0.4);
}
