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

:root {
    --primary-color: rgba(255, 255, 255, 0.95);
    --secondary-color: rgba(255, 255, 255, 0.8);
    --text-color: #ffffff;
    --accent-color: rgba(255, 255, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Avenir Next', 'Avenir', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    overflow-y: auto; /* Allow content scrolling if needed */
    line-height: 1.6;
    background: #1a1a1a; /* Fallback color */
    margin: 0;
    padding: 0;
}

/* Fixed Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-color);
    justify-self: start;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.logo:hover {
    opacity: 0.8;
}

.nav-page-title {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-color);
    text-align: center;
    margin: 0;
    justify-self: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-self: end;
}

.nav-menu a,
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 300;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after,
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-link:hover::after {
    width: 100%;
}

/* Active state - thin border for current page */
.nav-menu a.active,
.nav-link.active {
    border-bottom: 1px solid var(--text-color);
    padding-bottom: calc(0.5rem - 1px);
}

.nav-menu a.active::after,
.nav-link.active::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a; /* Neutral background for padding areas */
}

.background-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(100vw, calc(100vh * 1.5)); /* Fit to viewport while maintaining 3:2 */
    height: min(100vh, calc(100vw / 1.5)); /* Fit to viewport while maintaining 3:2 */
    min-width: 320px; /* Prevent too small on mobile */
    min-height: 213px; /* Maintain 3:2 ratio for min size */
    aspect-ratio: 3 / 2;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a1a1a; /* Neutral padding color */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
    /* Prevent layout shifts */
    box-sizing: border-box;
}

.background-image.active {
    opacity: 1;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Subtle dark overlay for readability */
    pointer-events: none;
    z-index: 1;
}

/* Image Title Container */
.image-title-container {
    position: fixed;
    bottom: 6rem; /* Position above controls */
    left: 2rem;
    z-index: 10;
    max-width: calc(50% - 4rem);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
}

.image-title {
    color: var(--text-color);
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 1.5px;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    max-width: 100%;
}

.image-title.show {
    opacity: 1;
}

/* Logo Overlay */
.logo-overlay {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.7;
    transition: var(--transition);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-overlay:hover {
    opacity: 0.9;
}

.watermark-logo {
    max-width: 139px;
    height: auto;
    filter: 
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9))
        drop-shadow(0 -2px 4px rgba(255, 255, 255, 0.4))
        drop-shadow(2px 0 4px rgba(0, 0, 0, 0.7))
        drop-shadow(-2px 0 4px rgba(255, 255, 255, 0.3))
        drop-shadow(0 0 12px rgba(0, 0, 0, 0.6))
        contrast(1.1)
        brightness(1.05);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background: transparent; /* Allow background to show through */
}

/* Page Content (for non-landing pages) */
.main-content.page-content {
    padding-top: 100px; /* Account for fixed navbar */
    padding-bottom: 4rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    padding-top: 25vh;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    letter-spacing: 4px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.btn {
    padding: 1rem 2.5rem;
    border: 2px solid var(--text-color);
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-color);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
}

/* Sections */
.section {
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.section:first-of-type {
    border-top: none;
}

/* Sections on pages without background images */
.page-content .section {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-content .section:first-of-type {
    padding-top: 6rem;
}

.section-dark {
    background: rgba(0, 0, 0, 0.3);
}

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

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.page-content .section-title {
    margin-bottom: 2rem;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-content .section-description {
    margin-bottom: 4rem;
    opacity: 0.85;
}

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

/* Gallery Cards */
.gallery-card {
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.gallery-card-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.1);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(0);
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 50%, transparent 100%);
}

.gallery-card-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gallery-card-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Gallery Items (for individual images within a gallery) */
.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Gallery Back Button */
.gallery-back-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
    margin-bottom: 2rem;
    font-family: inherit;
}

.gallery-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Gallery Title */
.gallery-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: var(--text-color);
}

/* Image Modal/Lightbox */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-copyright-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-copyright {
    color: var(--text-color);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
    z-index: 2001;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
    z-index: 2001;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav.prev {
    left: 2rem;
}

.modal-nav.next {
    right: 2rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-content .contact-form {
    margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-form textarea {
    border-radius: 25px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: rgba(255, 100, 100, 0.8);
    background: rgba(255, 100, 100, 0.1);
}

.contact-form input:disabled,
.contact-form textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form .field-error {
    color: rgba(255, 150, 150, 0.9);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    margin-left: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-form .form-message {
    padding: 1rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.contact-form .form-message.success {
    background: rgba(100, 255, 100, 0.2);
    border: 2px solid rgba(100, 255, 100, 0.4);
    color: rgba(200, 255, 200, 0.95);
    display: block;
}

.contact-form .form-message.error {
    background: rgba(255, 100, 100, 0.2);
    border: 2px solid rgba(255, 100, 100, 0.4);
    color: rgba(255, 200, 200, 0.95);
    display: block;
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.contact-form .btn-loader {
    display: inline-block;
}

.contact-form .recaptcha-badge {
    margin-top: 1rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.75rem;
}

.contact-form .recaptcha-badge small {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.contact-form .recaptcha-badge a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    transition: var(--transition);
}

.contact-form .recaptcha-badge a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Hide default reCAPTCHA badge from bottom-right corner on all pages */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}

/* Show reCAPTCHA badge only when it's inside the contact form container */
.recaptcha-badge-container .grecaptcha-badge {
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Background Controls */
.bg-controls {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 100;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.6;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.bg-controls:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.15);
}

.bg-control-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
    opacity: 0.8;
}

.bg-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
    transform: scale(1.05);
}

.bg-indicators {
    display: flex;
    gap: 0.4rem;
}

.bg-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

.bg-indicator:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.5);
}

.bg-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    width: 20px;
    border-radius: 3px;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .background-container {
        width: 100vw;
        height: 100vh;
    }

    .background-image {
        width: min(100vw, calc(100vh * 1.5));
        height: min(100vh, calc(100vw / 1.5));
        aspect-ratio: 3 / 2;
        background-attachment: scroll; /* Better performance on mobile */
    }

    .image-title-container {
        bottom: 5rem;
        left: 1.5rem;
        max-width: calc(50% - 2rem);
    }

    .image-title {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .logo-overlay {
        top: 50%;
        right: 1.5rem;
        transform: translateY(-50%);
    }

    .nav-container {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-page-title {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
    }

    .main-content.page-content {
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .background-container {
        top: 0;
        height: 100vh;
    }

    .page-content .section {
        padding: 3rem 1.5rem;
    }

    .page-content .section:first-of-type {
        padding-top: 4rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        gap: 0;
        justify-self: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-card {
        border-radius: 15px;
    }

    .gallery-card-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .gallery-card-title {
        font-size: 1.2rem;
    }

    .gallery-card-description {
        font-size: 0.85rem;
    }

    .gallery-back-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .bg-controls {
        bottom: 1rem;
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
    }

    .bg-control-btn {
        font-size: 1.3rem;
        width: 28px;
        height: 28px;
    }

    .bg-indicator {
        width: 5px;
        height: 5px;
    }

    .bg-indicator.active {
        width: 16px;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }

    .modal-nav.prev {
        left: 1rem;
    }

    .modal-nav.next {
        right: 1rem;
    }

    .modal-copyright-bar {
        padding: 1rem 1.5rem;
    }

    .modal-copyright {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .background-container {
        width: 100vw;
        height: 100vh;
    }

    .background-image {
        width: min(100vw, calc(100vh * 1.5));
        height: min(100vh, calc(100vw / 1.5));
        aspect-ratio: 3 / 2;
        background-attachment: scroll; /* Better performance on mobile */
    }

    .image-title-container {
        bottom: 4.5rem;
        left: 1rem;
        max-width: calc(50% - 1.5rem);
    }

    .image-title {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }

    .logo-overlay {
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
    }

    .nav-container {
        padding: 1rem;
        gap: 0.75rem;
    }

    .nav-page-title {
        font-size: 1.2rem;
    }

    .main-content.page-content {
        padding-top: 70px;
        padding-bottom: 2rem;
    }

    .background-container {
        top: 0;
        height: 100vh;
    }

    .page-content .section {
        padding: 2.5rem 1rem;
    }

    .page-content .section:first-of-type {
        padding-top: 3rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        padding: 1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

    .logo-overlay {
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
    }

    .watermark-logo {
        max-width: 92px;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .modal-nav.prev {
        left: 0.5rem;
    }

    .modal-nav.next {
        right: 0.5rem;
    }

    .modal-copyright-bar {
        padding: 0.75rem 1rem;
    }

    .modal-copyright {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(255, 255, 255, 0.3);
    color: var(--text-color);
}


