/* ============================================ */
/* GALLERY PAGE - MODERN CSS RESET & STYLES    */
/* ============================================ */

:root {
    --primary: #0b1120;
    --primary-light: #1e3a8a;
    --accent: #3b82f6;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --max-width: 1280px;
    --nav-height: 80px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --primary: #1a1f35;
    --primary-light: #2d5a8c;
    --text-dark: #e2e8f0;
    --text-light: #cbd5e1;
    --bg-light: #0f172a;
    --white: #1e293b;
}

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

html {
    scroll-behavior: smooth;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    color: var(--text-dark); 
    background-color: var(--white); 
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
    opacity: 1;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

ul { 
    list-style: none; 
}

img { 
    max-width: 100%; 
    display: block;
    height: auto;
}

.container { 
    max-width: var(--max-width); 
    margin: 0 auto; 
    padding: 0 24px; 
}

/* ============================================ */
/* LANGUAGE TRANSLATION STYLES                 */
/* ============================================ */

[data-i18n] {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.fade-out {
    opacity: 0 !important;
}

/* Theme transition - smooth color changes */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================ */
/* HEADER & NAVIGATION                          */
/* ============================================ */

header { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    background-color: var(--primary); 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: var(--nav-height); 
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--white); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.logo span { 
    color: var(--accent); 
}

.nav-links { 
    display: flex; 
    gap: 32px; 
}

.nav-links a { 
    color: #cbd5e1; 
    font-weight: 500; 
    transition: var(--transition); 
}

.nav-links a:hover, 
.nav-links a.active { 
    color: var(--white); 
}

.lang-switch { 
    background: rgba(255,255,255,0.1); 
    color: var(--white); 
    border: 1px solid rgba(255,255,255,0.2); 
    padding: 8px 12px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 600; 
    transition: var(--transition);
}

.lang-switch:hover {
    background: rgba(255,255,255,0.2);
}

.theme-toggle-btn {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--white);
    transform: scale(1.05);
}

.hamburger { 
    display: none; 
    cursor: pointer; 
    color: var(--white); 
    font-size: 1.8rem; 
    transition: transform 0.3s;
}

.hamburger:hover {
    transform: scale(1.1);
}

.nav-actions {
    display: flex; 
    gap: 15px; 
    align-items: center;
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 100%; 
    height: 100vh;
    background-color: var(--primary); 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    gap: 30px;
    transition: 0.4s ease-in-out; 
    z-index: 999;
}

.mobile-nav-overlay.active { 
    right: 0; 
}

.mobile-nav-overlay a { 
    font-size: 1.5rem; 
    color: var(--white); 
    font-weight: 600; 
    transition: color 0.3s;
}

.mobile-nav-overlay a:hover {
    color: var(--accent);
}

/* ============================================ */
/* PAGE HEADER                                  */
/* ============================================ */

.page-header { 
    background-color: var(--primary); 
    padding: 140px 0 60px; 
    text-align: center; 
    color: var(--white); 
}

.page-header h1 { 
    font-size: 3rem; 
    margin-bottom: 16px; 
    font-weight: 800;
}

.page-header p { 
    color: #cbd5e1; 
    max-width: 600px; 
    margin: 0 auto; 
    font-size: 1.1rem; 
}

/* ============================================ */
/* GALLERY GRID & ITEMS                         */
/* ============================================ */

.gallery-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 24px; 
    padding: 80px 0;
}

.gallery-item {
    border-radius: 8px; 
    overflow: hidden; 
    height: 300px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative; 
    cursor: pointer; 
    transition: var(--transition);
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.gallery-item:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px rgba(0,0,0,0.1); 
}

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

/* ============================================ */
/* LIGHTBOX                                     */
/* ============================================ */

.lightbox {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); 
    justify-content: center; 
    align-items: center;
    opacity: 0; 
    transition: opacity 0.3s ease;
    padding-top: 50px;
}

.lightbox.show { 
    opacity: 1; 
}

.lightbox-content { 
    max-width: 90%; 
    max-height: 85vh; 
    border-radius: 4px; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5); 
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
}

.lightbox-content.visible { 
    opacity: 1; 
}

.close-btn { 
    position: absolute; 
    top: 20px; 
    right: 30px; 
    color: #fff; 
    font-size: 50px; 
    cursor: pointer; 
    z-index: 2001; 
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--accent);
}

.lightbox-nav {
    cursor: pointer; 
    position: absolute; 
    top: 50%; 
    color: white; 
    font-weight: bold; 
    font-size: 40px; 
    padding: 20px; 
    user-select: none; 
    transform: translateY(-50%); 
    transition: color 0.3s;
}

.prev { 
    left: 10px; 
}

.next { 
    right: 10px; 
}

.lightbox-nav:hover { 
    color: var(--accent); 
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */

footer { 
    background-color: #020617; 
    color: var(--white); 
    padding: 80px 0 30px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 40px; 
    padding-bottom: 40px; 
    border-bottom: 1px solid #1e293b; 
    margin-bottom: 30px; 
}

.footer-col-desc {
    color: #94a3b8; 
    margin-top: 20px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p {
    color: #94a3b8;
    margin-bottom: 10px;
}

.contact-link { 
    color: #94a3b8; 
    transition: var(--transition); 
    display: inline-block; 
}

.contact-link:hover { 
    color: var(--accent); 
}

.social-links { 
    display: flex; 
    gap: 15px; 
    margin-top: 20px; 
}

.social-icon { 
    width: 24px; 
    height: 24px; 
    fill: #94a3b8; 
    transition: var(--transition); 
}

.social-icon:hover { 
    fill: var(--white); 
    transform: translateY(-3px); 
}

.copyright { 
    text-align: center; 
    color: #64748b; 
    font-size: 0.9rem; 
}

/* ============================================ */
/* RESPONSIVE DESIGN                            */
/* ============================================ */

@media (max-width: 768px) {
    .nav-links, .nav-actions { 
        display: none; 
    }
    
    .hamburger { 
        display: block; 
    }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
    }
    
    .page-header h1 { 
        font-size: 2.2rem; 
    }
}
