/* ========================================
   LEINKYBOI TATTOO - MODERN STYLESHEET
   ======================================== */

/* ========================================
   1. ROOT VARIABLES & RESET
   ======================================== */
:root {
    --primary-color: #ff0080;
    --primary-glow: #ff008088;
    --bg-dark: #0a0a0a;
    --bg-dark-secondary: #1a1a1a;
    --bg-dark-tertiary: #222;
    --text-light: #f5f5f5;
    --text-dark: #222;
    --bg-light: #f5f5f5;
    --bg-light-secondary: #fff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px var(--primary-glow);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, var(--bg-dark-secondary) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   2. LIGHT THEME
   ======================================== */
.light-theme {
    background: linear-gradient(135deg, #e8e8e8 0%, var(--bg-light) 100%);
    color: var(--text-dark);
}

.light-theme header,
.light-theme footer {
    background: linear-gradient(135deg, var(--bg-light-secondary) 0%, #fafafa 100%);
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(255, 0, 204, 0.1);
}

.light-theme .img-wrap {
    background: var(--bg-light-secondary);
    border: 2px solid rgba(255, 0, 204, 0.2);
}

.light-theme .modal {
    background: rgba(255, 255, 255, 0.98);
}

.light-theme .modal-caption,
.light-theme .img-caption {
    background: rgba(255, 0, 204, 0.1);
    color: var(--text-dark);
}

.light-theme h1,
.light-theme h2,
.light-theme h3 {
    color: var(--primary-color);
}

.light-theme .desc {
    color: #444;
}

.light-theme .visitor-counter {
    background: rgba(255, 0, 204, 0.1);
}

/* ========================================
   3. LOADER
   ======================================== */
.loader-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0020 100%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: opacity var(--transition-slow);
}

.loader-logo {
    max-width: 140px;
    margin-bottom: 1.5em;
    border-radius: 50%;
    box-shadow: 0 0 40px var(--primary-glow), 0 0 80px rgba(255, 0, 204, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loader-text {
    font-size: 1.5em;
    margin-bottom: 1em;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
}

.loader-lang {
    background: var(--primary-color);
    color: #fff;
    padding: 0.6em 1.5em;
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    font-weight: bold;
    box-shadow: var(--shadow-md);
    font-size: 1em;
    margin-top: 1em;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.loader-lang:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 204, 0.4);
}

/* ========================================
   4. HEADER - ENHANCED
   ======================================== */
header {
    background: linear-gradient(135deg, var(--bg-dark-tertiary) 0%, var(--bg-dark-secondary) 100%);
    padding: 2em 1em 3em 1em;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 0, 204, 0.3);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 0, 204, 0.05) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

header > * {
    position: relative;
    z-index: 2;
}

.logo {
    max-width: 140px;
    display: block;
    margin: 0 auto 1.5em auto;
    border-radius: 50%;
    box-shadow: 0 0 40px var(--primary-glow), 0 0 80px rgba(255, 0, 204, 0.3);
    transition: all var(--transition-normal);
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
    animation: rotate 4s linear infinite;
}

.logo:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 0 60px var(--primary-glow), 0 0 120px rgba(255, 0, 204, 0.4);
}

.logo:hover::before {
    opacity: 0.7;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1 {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 3.5em;
    color: var(--primary-color);
    margin: 0.5em 0;
    text-shadow: 0 0 25px var(--primary-glow), 0 0 50px rgba(255, 0, 204, 0.3);
    letter-spacing: 3px;
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), #ff66b3, var(--primary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px var(--primary-glow);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========================================
   5. THEME TOGGLE & LANGUAGE SWITCH - OPTIMIZED
   ======================================== */

/* Theme toggle - positioned to not interfere with header */
.theme-toggle {
    position: fixed;
    top: 2em;
    right: 2em;
    background: linear-gradient(135deg, var(--primary-color) 0%, #cc0099 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.4em;
    cursor: pointer;
    box-shadow: 0 6px 25px var(--primary-glow), var(--shadow-md);
    z-index: 10002;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Ensure proper spacing on small screens */
@media (max-width: 480px) {
    .theme-toggle {
        top: 1em;
        right: 1em;
        width: 45px;
        height: 45px;
        font-size: 1.2em;
    }
}

/* Multi-language selector - positioned in header */
.lang-selector {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin: 1em auto 0.5em auto;
    position: relative;
    z-index: 10001;
    background: rgba(255, 0, 204, 0.2);
    border: 2px solid rgba(255, 0, 204, 0.3);
    border-radius: var(--border-radius-xl);
    padding: 0.5em 1em;
    backdrop-filter: blur(10px);
    max-width: 200px;
}

/* Hide language selector when modal is open */
.modal-open .lang-selector {
    display: none;
}

.lang-btn {
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 0.4em 0.8em;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* Loader language options */
.loader-languages {
    display: flex;
    gap: 0.5em;
    margin-top: 1em;
}

.loader-lang {
    background: rgba(255, 0, 204, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4em 0.8em;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: bold;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.loader-lang:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.loader-lang.active {
    background: var(--primary-color);
    color: #fff;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, #fff 0%, #ffd6f3 100%);
    color: var(--primary-color);
    transform: rotate(180deg) scale(1.15);
    box-shadow: 0 8px 35px var(--primary-glow);
}

.theme-toggle:active {
    transform: rotate(180deg) scale(0.95);
}

/* Language switch - positioned with better spacing */
.lang-switch {
    position: fixed;
    top: 2em;
    left: 2em;
    background: linear-gradient(135deg, var(--primary-color) 0%, #cc0099 100%);
    color: #fff;
    padding: 0.8em 1.5em;
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 6px 25px var(--primary-glow);
    transition: all var(--transition-fast);
    font-size: 0.95em;
    z-index: 10001;
    min-width: 140px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lang-switch:hover {
    background: linear-gradient(135deg, #fff 0%, #ffd6f3 100%);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 40px var(--primary-glow);
}

.lang-switch:active {
    transform: translateY(-1px) scale(0.98);
}

/* ========================================
   6. VISITOR COUNTER
   ======================================== */
.visitor-counter {
    margin-top: 1.5em;
    padding: 0.8em 1.5em;
    background: rgba(255, 0, 204, 0.1);
    border-radius: var(--border-radius-md);
    display: inline-block;
    box-shadow: 0 0 15px rgba(255, 0, 204, 0.2);
}

.visitor-counter div {
    color: var(--primary-color);
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ========================================
   7. MAIN CONTENT
   ======================================== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2em 1em;
}

.desc {
    text-align: center;
    margin: 2em auto;
    font-size: 1.3em;
    max-width: 800px;
    padding: 1.5em;
    background: rgba(255, 0, 204, 0.05);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    line-height: 1.8;
}

/* ========================================
   8. GALLERY
   ======================================== */
.gallery {
    margin: 3em auto;
    padding: 0 1em;
}

.gallery h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 1.5em;
    text-shadow: 0 0 15px var(--primary-glow);
    letter-spacing: 1px;
}

.images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5em;
    padding: 1em 0;
}

.img-wrap {
    background: var(--bg-dark-tertiary);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: 1em;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
}

.img-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 0, 204, 0.15) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

.img-wrap::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2em;
    color: #fff;
    background: rgba(255, 0, 204, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all var(--transition-normal);
    z-index: 2;
}

.img-wrap:hover::before {
    opacity: 1;
}

.img-wrap:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.img-wrap:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px var(--primary-glow), var(--shadow-lg);
    border-color: var(--primary-color);
}

.img-wrap img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: block;
}

.img-wrap img:hover {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05) saturate(1.1);
}

/* ========================================
   9. IMAGE CAPTIONS
   ======================================== */
.img-caption {
    text-align: center;
    font-size: 0.9em;
    color: var(--primary-color);
    margin-top: 0.5em;
    padding: 0.4em 0.8em;
    background: rgba(255, 0, 204, 0.1);
    border-radius: var(--border-radius-sm);
    font-style: italic;
}

/* ========================================
   10. FADE-IN ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.scrolled,
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   11. MODAL - IMPROVED IMAGE VIEWING
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: rgba(10, 0, 15, 0.95);
    backdrop-filter: blur(8px);
    animation: fadeIn var(--transition-normal);
    touch-action: manipulation;
}

.modal-content {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 0 60px var(--primary-glow), var(--shadow-lg);
    border: 3px solid var(--primary-color);
    animation: popIn var(--transition-normal);
    object-fit: contain;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    transition: all var(--transition-normal);
}

.modal-content:active {
    cursor: grabbing;
}

.modal-content.loading {
    opacity: 0.7;
    filter: blur(2px);
}

.close {
    position: fixed;
    top: 25px;
    right: 25px;
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    text-shadow: 0 0 20px var(--primary-color);
    transition: all var(--transition-fast);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 204, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 0, 204, 0.3);
}

.close:hover {
    transform: rotate(90deg) scale(1.2);
    background: var(--primary-color);
    text-shadow: 0 0 30px #fff;
    box-shadow: 0 0 30px var(--primary-glow);
    border-color: var(--primary-color);
}

.close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Modal Navigation - Enhanced for better UX */
.modal .nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(255, 0, 204, 0.2);
    font-size: 2.8em;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    z-index: 10001;
    padding: 0.6em 0.8em;
    border-radius: 50%;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--primary-glow);
    border: 2px solid rgba(255, 0, 204, 0.3);
    min-width: 70px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal .nav.left {
    left: 25px;
}

.modal .nav.right {
    right: 25px;
}

.modal .nav:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 40px var(--primary-glow);
    border-color: var(--primary-color);
}

.modal .nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Fullscreen Button - Enhanced */
.fullscreen-btn {
    position: fixed;
    top: 25px;
    left: 25px;
    background: rgba(255, 0, 204, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 0, 204, 0.3);
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 4px 20px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.fullscreen-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 30px var(--primary-glow);
    border-color: var(--primary-color);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

/* Modal Caption - Improved Styling */
.modal-caption {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-size: 1.2em;
    background: rgba(255, 0, 204, 0.95);
    border-radius: var(--border-radius-lg);
    padding: 1em 2em;
    max-width: 80vw;
    box-shadow: 0 0 30px var(--primary-glow);
    font-style: italic;
    backdrop-filter: blur(15px);
    z-index: 10000;
    border: 2px solid rgba(255, 0, 204, 0.3);
    animation: fadeInUp var(--transition-normal);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========================================
   12. FOOTER
   ======================================== */
footer {
    background: linear-gradient(135deg, var(--bg-dark-tertiary) 0%, var(--bg-dark-secondary) 100%);
    color: #fff;
    text-align: center;
    padding: 3em 1em 2em 1em;
    margin-top: 4em;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    border-top: 2px solid rgba(255, 0, 204, 0.3);
}

footer h3 {
    color: var(--primary-color);
    margin-bottom: 1em;
    font-size: 1.8em;
    text-shadow: 0 0 15px var(--primary-glow);
}

footer p {
    margin: 1em 0;
    font-size: 1.05em;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 600;
}

footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}

/* ========================================
   13. SOCIAL LINKS
   ======================================== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin: 1.5em 0;
    flex-wrap: wrap;
}

.social-links .icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: all var(--transition-fast);
}

.social-links a {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links a:hover .icon {
    filter: drop-shadow(0 0 20px #fff) brightness(1.3);
    transform: scale(1.2) rotate(5deg);
}

/* ========================================
   14. CONTACT FORM
   ======================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 500px;
    margin: 2em auto;
    background: var(--bg-dark-tertiary);
    padding: 2em;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 0, 204, 0.2);
}

.contact-form input,
.contact-form textarea {
    background: var(--bg-dark-secondary);
    color: #fff;
    border: 2px solid rgba(255, 0, 204, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 0.8em 1em;
    font-size: 1em;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-xl);
    padding: 0.8em 1.5em;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.contact-form button:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* ========================================
   15. ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   16. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .gallery h2 {
        font-size: 1.8em;
    }

    .desc {
        font-size: 1.1em;
        padding: 1em;
    }

    .images {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1em;
    }

    .img-wrap {
        padding: 0.5em;
    }

    .img-wrap img {
        height: 200px;
    }

    .theme-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
        top: 1.2em;
        right: 1.2em;
    }

    .lang-switch {
        top: 1.2em;
        left: 1.2em;
        padding: 0.6em 1.2em;
        font-size: 0.9em;
        min-width: 120px;
    }

    /* IMPROVED MODAL FOR MOBILE */
    .modal-content {
        max-width: 95vw;
        max-height: 75vh;
        border-width: 2px;
        border-radius: var(--border-radius-md);
    }

    .modal .nav {
        font-size: 2.2em;
        padding: 0.5em 0.7em;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 60px;
        min-height: 60px;
    }

    .modal .nav.left {
        left: 15px;
    }

    .modal .nav.right {
        right: 15px;
    }

    .close {
        font-size: 2.2em;
        width: 50px;
        height: 50px;
        top: 15px;
        right: 15px;
    }

    .fullscreen-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
        top: 15px;
        left: 15px;
    }

    .modal-caption {
        font-size: 1.1em;
        padding: 0.8em 1.2em;
        bottom: 25px;
        max-width: 90vw;
        border-radius: var(--border-radius-md);
    }

    .img-caption {
        font-size: 0.8em;
        padding: 0.3em 0.5em;
    }

    .social-links {
        gap: 1.5em;
    }

    .social-links .icon {
        width: 32px;
        height: 32px;
    }

    .contact-form {
        padding: 1.5em;
        max-width: 95vw;
    }

    footer {
        padding: 2em 1em 1.5em 1em;
    }

    footer h3 {
        font-size: 1.5em;
    }

    /* Mobile adjustments for new features */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
        bottom: 1.5em;
        right: 1.5em;
    }
    
    .stat-card {
        min-width: 150px;
        padding: 1.5em;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
    
    .stat-label {
        font-size: 0.9em;
    }
    
    .filter-btn {
        padding: 0.5em 1em;
        font-size: 0.9em;
    }
}

/* ========================================
   24. IMAGE PROTECTION & WATERMARKS
   ======================================== */
.watermark-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 0, 128, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
    opacity: 0.7;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ========================================
   25. ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus indicators */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 0, 128, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff0080;
        --text-light: #ffffff;
        --text-dark: #000000;
        --bg-dark: #000000;
        --bg-dark-secondary: #111111;
    }
    
    .light-theme {
        --text-light: #000000;
        --text-dark: #ffffff;
        --bg-dark: #ffffff;
        --bg-dark-secondary: #eeeeee;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle {
        animation: none !important;
    }
    
    .floating-decoration {
        animation: none !important;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    z-index: 10003;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced keyboard navigation for modal */
.modal[aria-hidden="false"] {
    display: block !important;
}

.modal[aria-hidden="true"] {
    display: none !important;
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--border-radius-md);
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 0, 128, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved button states */
button:disabled,
.filter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

button[aria-pressed="true"] {
    background: var(--primary-color);
    color: #fff;
}

/* Enhanced form accessibility */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
        letter-spacing: 2px;
    }

    h1::after {
        width: 80px;
        bottom: -10px;
    }

    .logo {
        max-width: 110px;
        margin-bottom: 1em;
    }

    .loader-logo {
        max-width: 100px;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.1em;
        top: 1em;
        right: 1em;
    }

    .lang-switch {
        top: 1em;
        left: 1em;
        padding: 0.5em 1em;
        font-size: 0.85em;
        min-width: 110px;
    }

    .images {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .img-wrap img {
        height: 250px;
    }

    .desc {
        font-size: 1em;
    }

    .visitor-counter div {
        font-size: 1em;
    }

    /* EXTRA SMALL MOBILE MODAL IMPROVEMENTS */
    .modal-content {
        max-width: 98vw;
        max-height: 80vh;
        border-radius: var(--border-radius-sm);
    }

    .modal .nav {
        font-size: 1.8em;
        width: 50px;
        height: 50px;
        padding: 0.4em 0.6em;
        min-width: 50px;
        min-height: 50px;
    }

    .modal .nav.left {
        left: 8px;
    }

    .modal .nav.right {
        right: 8px;
    }

    .close {
        width: 45px;
        height: 45px;
        font-size: 1.8em;
        top: 8px;
        right: 8px;
    }

    .fullscreen-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
        top: 8px;
        left: 8px;
    }

    .modal-caption {
        font-size: 0.95em;
        padding: 0.6em 1em;
        bottom: 20px;
        border-radius: var(--border-radius-sm);
    }

    .stats-container {
        gap: 1em;
    }

    .stat-card {
        min-width: 120px;
        padding: 1em;
    }

    .stat-number {
        font-size: 2em;
    }

    .stat-label {
        font-size: 0.8em;
    }

    .filter-btn {
        padding: 0.4em 0.8em;
        font-size: 0.85em;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.1em;
        bottom: 1em;
        right: 1em;
    }
    
    /* Mobile-specific language selector */
    .lang-selector {
        margin: 0.8em auto 0.3em auto;
        padding: 0.4em 0.8em;
        max-width: 160px;
        transform: scale(0.9);
    }
    
    .lang-btn {
        padding: 0.3em 0.6em;
        font-size: 0.8em;
    }
    
    /* Mobile image protection */
    .watermark-overlay {
        font-size: 8px !important;
        padding: 2px 4px !important;
        bottom: 5px !important;
        right: 5px !important;
    }
}

/* ========================================
   17. UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1em; }
.mt-2 { margin-top: 2em; }
.mb-1 { margin-bottom: 1em; }
.mb-2 { margin-bottom: 2em; }

/* ========================================
   18. PRINT STYLES
   ======================================== */
@media print {
    .theme-toggle,
    .lang-switch,
    .loader-bg,
    .modal {
        display: none !important;
    }
}



/* ========================================
   19. SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2em;
    right: 2em;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #cc0099 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-glow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px var(--primary-glow);
    background: linear-gradient(135deg, #fff 0%, #ffd6f3 100%);
    color: var(--primary-color);
}

/* ========================================
   20. ANIMATED BACKGROUND PARTICLES
   ======================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 10px var(--primary-glow);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-100px) translateX(50px) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-200px) translateX(-30px) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-150px) translateX(80px) scale(1.1);
        opacity: 0.6;
    }
}

/* ========================================
   21. GLASSMORPHISM ELEMENTS
   ======================================== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin: 3em auto;
    flex-wrap: wrap;
    max-width: 900px;
}

.stat-card {
    background: rgba(255, 0, 204, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 0, 204, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 2em;
    min-width: 200px;
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 32px rgba(255, 0, 204, 0.2);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px var(--primary-glow);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow);
    display: block;
    margin-bottom: 0.2em;
}

.stat-label {
    font-size: 1.1em;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.light-theme .stat-label {
    color: var(--text-dark);
}

/* ========================================
   22. IMAGE FILTER BUTTONS
   ======================================== */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin: 2em 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 0, 204, 0.1);
    color: var(--primary-color);
    border: 2px solid rgba(255, 0, 204, 0.3);
    border-radius: var(--border-radius-xl);
    padding: 0.8em 1.8em;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

.filter-btn:active {
    transform: translateY(0) scale(0.98);
}

.img-wrap.hidden {
    display: none;
}

/* ========================================
   23. PARALLAX EFFECT & FLOATING DECORATIONS
   ======================================== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 0, 204, 0.1) 0%, transparent 100%);
    z-index: -1;
    transition: transform 0.1s ease-out;
}

/* Floating decorative elements */
.floating-decoration {
    position: fixed;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 0, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.floating-decoration:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-decoration:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 8s;
    animation-duration: 30s;
}

.floating-decoration:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 15s;
    animation-duration: 35s;
}

.floating-decoration:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 5s;
    animation-duration: 28s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-60px) translateX(-15px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-40px) translateX(25px) rotate(270deg);
        opacity: 0.5;
    }
}

/* Mobile adjustments for new features */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.2em;
        bottom: 1.5em;
        right: 1.5em;
    }
    
    .stat-card {
        min-width: 150px;
        padding: 1.5em;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
    
    .stat-label {
        font-size: 0.9em;
    }
    
    .filter-btn {
        padding: 0.5em 1em;
        font-size: 0.9em;
    }
}

/* ========================================
   24. IMAGE PROTECTION & WATERMARKS
   ======================================== */
.watermark-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 0, 128, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
    opacity: 0.7;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ========================================
   25. ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus indicators */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 0, 128, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff0080;
        --text-light: #ffffff;
        --text-dark: #000000;
        --bg-dark: #000000;
        --bg-dark-secondary: #111111;
    }
    
    .light-theme {
        --text-light: #000000;
        --text-dark: #ffffff;
        --bg-dark: #ffffff;
        --bg-dark-secondary: #eeeeee;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle {
        animation: none !important;
    }
    
    .floating-decoration {
        animation: none !important;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    z-index: 10003;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced keyboard navigation for modal */
.modal[aria-hidden="false"] {
    display: block !important;
}

.modal[aria-hidden="true"] {
    display: none !important;
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--border-radius-md);
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 0, 128, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved button states */
button:disabled,
.filter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

button[aria-pressed="true"] {
    background: var(--primary-color);
    color: #fff;
}

/* Enhanced form accessibility */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}


/* ========================================
   24. IMAGE PROTECTION & WATERMARKS
   ======================================== */
.watermark-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 0, 128, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
    font-weight: bold;
    pointer-events: none;
    z-index: 10;
    opacity: 0.7;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ========================================
   25. ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus indicators */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 0, 128, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff0080;
        --text-light: #ffffff;
        --text-dark: #000000;
        --bg-dark: #000000;
        --bg-dark-secondary: #111111;
    }
    
    .light-theme {
        --text-light: #000000;
        --text-dark: #ffffff;
        --bg-dark: #ffffff;
        --bg-dark-secondary: #eeeeee;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle {
        animation: none !important;
    }
    
    .floating-decoration {
        animation: none !important;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    z-index: 10003;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced keyboard navigation for modal */
.modal[aria-hidden="false"] {
    display: block !important;
}

.modal[aria-hidden="true"] {
    display: none !important;
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--border-radius-md);
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 0, 128, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved button states */
button:disabled,
.filter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

button[aria-pressed="true"] {
    background: var(--primary-color);
    color: #fff;
}

/* Enhanced form accessibility */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}
