/* Loading spinner styles */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

button:disabled, input[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

/* Remove text shadow from feedback modal */
#feedbackModal h2,
#feedbackModal h3,
#feedbackModal p,
#feedbackModal label,
#feedbackModal span {
    text-shadow: none !important;
}



        /* Global Box Sizing */
        *, *::before, *::after {
            box-sizing: border-box;
        }

        /* Container and Layout */
        .container{
            max-width:1200px;
            margin:0 auto;
            padding:16px;
            box-sizing: border-box;
        }
        @media (max-width:768px){.container{padding:20px}}
        @media (max-width:480px){.container{padding:12px}}
        @media (max-width:375px){.container{padding:8px}}
        @media (max-width:320px){.container{padding:6px}}
        
        /* Header */
        header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:18px 0}
        @media (max-width:768px){header{padding:12px 0}}
        @media (max-width:480px){header{padding:8px 0;gap:12px}}
        @media (max-width:375px){header{padding:6px 0;gap:8px}}
        
        .brand{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
        @media (max-width:480px){.brand{width:100%;justify-content:flex-start;gap:8px}}
        @media (max-width:375px){.brand{gap:6px}}
        
        .logo-img{max-width:48px;height:auto;border-radius:8px}
        @media (max-width:480px){.logo-img{max-width:40px}}
        @media (max-width:375px){.logo-img{max-width:40px}}
        @media (max-width:320px){.logo-img{max-width:40px}}
        
        /* nav{display:flex;
            gap:12px;
            flex-wrap:wrap;
            align-items:center
        } */

        nav {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            padding: 1rem 0.5rem;
            flex-wrap: wrap;
        }

        nav button {
            padding: 0.6rem 1.2rem;
            border: 2px solid rgb(151, 0, 0);
            background: rgb(151, 0, 0);
            /*color: white;*/
            border-radius: 8px;
            /*text-shadow: 1px 1px #404040;*/
            /*-webkit-text-stroke: 0.2px #404040;*/
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 600;
            min-width: 80px;
        }

        nav button:hover {
            background: rgb(151, 0, 0);
            color: white;
        }
        
        @media (max-width: 480px) {
            nav {
                padding: 0.8rem 0.3rem;
                gap: 0.6rem;
            }
            
            nav button {
                padding: 0.5rem 0.8rem;
                font-size: 12px;
                min-width: 70px;
            }
        }
        
        @media (max-width: 375px) {
            nav button {
                padding: 0.4rem 0.6rem;
                font-size: 11px;
                min-width: 60px;
            }
        }
        
        @media (max-width: 320px) {
            nav {
                gap: 0.5rem;
            }
            
            nav button {
                padding: 0.4rem 0.5rem;
                font-size: 10px;
                min-width: 55px;
            }
        }

        /* Desktop navigation */
        .desktop-nav {
        display: flex;
        gap: 12px;
        align-items: center;
        }
        
        /* Mobile navigation */
        .mobile-nav {
        display: none;
        position: relative;
        }
        
        @media (max-width: 768px) {
        .desktop-nav {
            display: none;
        }
        
        .mobile-nav {
            display: block;
        }
        }

        /* Hide/Show Elements */
        @media (max-width:768px){
        .hide-mobile{display:none}
        .show-mobile{display:block}
        
        /* Mobile navigation */
        .mobile-nav {
            position: relative;
        }
        
        .mobile-menu-dropdown {
            display: none;
            position: absolute;
            top: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            width: 200px;
            /*background: var(--bg);*/
            background-color: white;
            /*border: 1px solid var(--border);*/
            border-radius: 12px;
            /*box-shadow: 0 8px 24px var(--shadow);*/
            padding: 16px;
            flex-direction: column;
            align-items: stretch;
            gap: 12px;
            z-index: 100;
            animation: slideDown 0.3s ease-out;
            /*background: rgba(255, 255, 255, 0.2);*/
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .mobile-nav.mobile-open .mobile-menu-dropdown {
            display: flex;
        }
        
        .mobile-menu-dropdown .btn {
            width: 100%;
            justify-content: center;
            
        }
        
        .mobile-menu-dropdown .btn:hover {
            width: 100%;
            justify-content: center;
            
        }
        
        @keyframes slideDown {
            from {
            opacity: 0;
            transform: translateX(-50%) translateY(-10px);
            }
            to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
            }
        }
        }

        @media (max-width: 480px) {
        .mobile-menu-dropdown {
            width: 180px;
            padding: 12px;
            gap: 8px;
            top: calc(100% + 6px);
           
        }
        }

        @media (max-width: 375px) {
        .mobile-menu-dropdown {
            width: 160px;
            padding: 10px;
            gap: 6px;
            top: calc(100% + 4px);
            
        }
        }
        
        @media (min-width:769px){
        .show-mobile{display:none}
        }
    
        /* Footer */
        footer{padding:32px 0; color:white; font-size: small;}
        @media (max-width:768px){footer{padding:24px 0}}
        @media (max-width:480px){footer{padding:20px 0}}
        
        .footer-content{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
        @media (max-width:768px){.footer-content{gap:8px}}
        @media (max-width:480px){.footer-content{flex-direction:column;align-items:center;text-align:center;gap:16px}}
        @media (max-width:375px){.footer-content{gap:12px}}
        
        .footer-links{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
        @media (max-width:768px){.footer-links{gap:8px}}
        @media (max-width:480px){.footer-links{width:100%;justify-content:center;gap:12px}}
        @media (max-width:375px){.footer-links{gap:8px}}
        
        /* Sections */
        section{padding:48px 0;border-top:1px solid var(--border)}
        @media (max-width:768px){section{padding:32px 0}}
        @media (max-width:480px){section{padding:24px 0}}

        @font-face {
            font-family: 'Lalezar Font';
            src: url('fonts/Lalezar-Regular.ttf') format('ttf');
            font-weight: normal;
            font-style: normal;
        }
        body{
            /* background-color: #F0E7DA; */
            height: 100%; 
            margin: 0; /* Removes default body margin  */
            /* background-image: linear-gradient(to bottom, rgb(17, 18, 13) 70%,  #565449);
            /* background-image: url(images/2025-09-29T165204.932.jpeg), url(images/22d78027ab249cbfff08f060638774c6.png);  */
            background-image: url(https://www.ltrd.space/images/Background%20Overlay%2010px.webp);
            background-position: center;
            background-repeat: no-repeat;
            background-size:cover;
            overflow-x: hidden;
            width: 100%;
        }
        
        html {
            overflow-x: hidden;
            width: 100%;
        }
        header{
            /* background-color: rgb(22 24 51); */
            width: 100%;
            justify-content: center;
            align-items: center;
            margin-top: 4rem;
            margin-bottom: 2rem;
        }
        footer{
            /* background-color: rgb(22 24 51); */
            width: 100%;
            margin-top: 5rem;
        }
        
        @media (max-width: 768px) {
            header {
                margin-top: 2rem;
                margin-bottom: 1rem;
            }
        }
        
        @media (max-width: 480px) {
            header {
                margin-top: 1.5rem;
                margin-bottom: 0.5rem;
            }
        }
        * {
            font-family:  'Lalezar Font', Arial, Helvetica;
            text-transform: uppercase;
            text-align: center;
        }
        h1 {
            /*color:  rgb(34,49,29);*/
            color: white;
            /*-webkit-text-stroke: 0.5px #000000;*/
            font-weight: bold;
            text-shadow: 1px 1px #404040;
        }
        h2, h3 {
            /*color:  rgb(22 24 51);*/
            color: white;
            /*-webkit-text-stroke: 0.3px #000000;*/
            font-weight: bold;
            text-shadow: 1px 1px #404040;
        }
        p {
            /*color:rgb(22 24 51);*/
            color: white;
            /*-webkit-text-stroke: 0.2px #000000;*/
            font-weight: bold;
            text-shadow: 1px 1px #404040;
        }
        a, button{
            text-decoration: none;
            color: #F0E7DA;
            background-color: transparent;
        }

        input, select{
            background-color: white;
            padding: 10px 12px;
            margin: 8px 0;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            border: 2px solid rgb(34,49,29);
            border-radius: 7px;
            font-size: 14px;
        }

        input[type="text"],
        input[type="email"],
        input[type="number"],
        input[type="url"]{
            background-color: white;
            padding: 10px 12px;
            margin: 8px 0;
            border: 2px solid rgb(34,49,29);
            width: 100%;
            box-sizing: border-box;
        }
        
        input[type="text"]:focus,
        input[type="email"]:focus,
        input[type="number"]:focus,
        input[type="url"]:focus,
        select:focus{
            background-color: white;
            border-color: rgb(151, 0, 0);
            outline: none;
        }

        input[type="submit"]{
            margin-top: 1.5rem;
            border: 2px solid rgb(34,49,29);
            padding: 12px 24px;
            background-color: rgb(34,49,29);
            color: white;
            cursor: pointer;
            font-weight: bold;
            width: 100%;
            max-width: 300px;
            transition: all 0.3s ease;
        }
        
        input[type="submit"]:hover{
            background-color: rgb(151, 0, 0);
            border-color: rgb(151, 0, 0);
        }

        input:focus{
            border-color: rgb(151, 0, 0);
            outline: none;
        }
        
        @media (max-width: 480px) {
            input, select {
                padding: 8px 10px;
                font-size: 13px;
                margin: 6px 0;
            }
            
            input[type="submit"] {
                padding: 10px 20px;
                font-size: 14px;
            }
        }

        #backgroundVideo{
            position: fixed;
            right: 0;
            bottom: 0;
            min-width: 100%;
            max-height: 70%;
            opacity: 5%;
            z-index: 1;
            background-blend-mode: luminosity;
        }

        /* Grid Overlay Wrapper */
        .grid-overlay-wrapper {
            position: relative;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            min-height: 600px;
            padding: 2rem 0;
            box-sizing: border-box;
            overflow: visible;
        }

        /* Main/Middle Container */
        main{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            text-align: center;
            padding: 2rem;
            width: 85%;
            max-width: 600px;
            position: absolute;
            color: white;
            /*outline-color: #000000;*/
            z-index: 10;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            min-height: 400px;
        }

        /* Hidden state */
        main.fade-out {
            opacity: 0;
        }

        #content{
            /*border: 2px solid rgb(34,49,29);*/
            border-radius: 12px;
            /*background-color: white;*/
            position: absolute;
            z-index: 100;
            width: 85%;
            max-width: 600px;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            padding: 2rem;
            opacity: 1;
            transition: opacity 0.3s ease;
            min-height: 500px;
            max-height: 75vh;
            overflow-y: auto;
            overflow-x: hidden;
            /*box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);*/
            background: rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        #content img {
            max-width: 100%;
            height: auto;
        }
        
        #content::-webkit-scrollbar {
            width: 8px;
        }
        
        #content::-webkit-scrollbar-track {
            /*background: #f1f1f1;*/
            border-radius: 10px;
            background: rgba(255, 255, 255, 0);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            /* border: 1px solid rgba(255, 255, 255, 0.3); */
        }
        
        #content::-webkit-scrollbar-thumb {
            background: rgb(34,49,29);
            border-radius: 10px;
        }
        
        #content::-webkit-scrollbar-thumb:hover {
            background: rgb(151, 0, 0);
        }

        /* Media Queries for Smaller Screens */
        @media (max-width: 768px) {
            .grid-overlay-wrapper {
                padding: 1.5rem 0;
                min-height: 550px;
            }

            main {
                width: 75%;
                max-width: 480px;
                padding: 1.5rem;
            }

            #content {
                width: 75%;
                max-width: 480px;
                padding: 1.5rem;
                min-height: 450px;
                max-height: 70vh;
                border-radius: 10px;
            }
        }

        @media (max-width: 480px) {
            .grid-overlay-wrapper {
                padding: 1rem 0;
                min-height: 500px;
            }

            main {
                width: 68%;
                max-width: 320px;
                padding: 1rem;
            }

            #content {
                width: 68%;
                max-width: 320px;
                padding: 1rem;
                min-height: 360px;
                max-height: 65vh;
                border-radius: 8px;
                border-width: 1px;
            }
            
            #content h1 {
                font-size: 1.3rem;
                margin-bottom: 0.7rem;
            }
            
            #content h2 {
                font-size: 1.05rem;
                margin-bottom: 0.5rem;
            }
            
            #content p {
                font-size: 0.82rem;
                line-height: 1.35;
            }
            
            #content::-webkit-scrollbar {
                width: 5px;
            }
        }

        @media (max-width: 375px) {
            .grid-overlay-wrapper {
                padding: 0.8rem 0;
                min-height: 420px;
                margin-top: 6rem;
            }

            main {
                width: 67%;
                max-width: 275px;
                padding: 0.8rem;
            }

            #content {
                width: 67%;
                max-width: 275px;
                padding: 0.9rem;
                min-height: 300px;
                max-height: 58vh;
            }
            
            #content h1 {
                font-size: 1.15rem;
                margin-bottom: 0.5rem;
            }
            
            #content h2 {
                font-size: 0.95rem;
                margin-bottom: 0.4rem;
            }
            
            #content p {
                font-size: 0.78rem;
                line-height: 1.3;
            }
            
            #content::-webkit-scrollbar {
                width: 4px;
            }
        }
        
        @media (max-width: 320px) {
            .grid-overlay-wrapper {
                padding: 0.6rem 0;
                min-height: 380px;
                margin-top: 6rem;
            }

            main {
                width: 65%;
                max-width: 235px;
                padding: 0.6rem;
            }

            #content {
                width: 65%;
                max-width: 235px;
                padding: 0.8rem;
                min-height: 280px;
                max-height: 55vh;
            }
            
            #content h1 {
                font-size: 1.05rem;
                margin-bottom: 0.4rem;
            }
            
            #content h2 {
                font-size: 0.9rem;
                margin-bottom: 0.3rem;
            }
            
            #content p {
                font-size: 0.75rem;
                line-height: 1.25;
            }
        }

        .main-picture-grid{
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, auto);
            gap: 2rem;
            width: 100%;
            max-width: 100%;
            position: relative;
            height: auto;
            padding: 0;
            z-index: 1;
            box-sizing: border-box;
            margin: 0;
        }
        
        @media (max-width: 768px) {
            .main-picture-grid {
                gap: 1rem;
            }
        }
        
        @media (max-width: 480px) {
            .main-picture-grid {
                gap: 0.6rem;
            }
        }
        
        @media (max-width: 375px) {
            .main-picture-grid {
                gap: 0.5rem;
            }
        }
        
        @media (max-width: 320px) {
            .main-picture-grid {
                gap: 0.4rem;
            }
        }

        .picture-grid-card{
            background-color: #F0E7DA;
            border: 1px solid rgb(34,49,29);
            padding: 0.6rem;
            text-align: center;
            font-size: 1.2em;
            position: relative;
            z-index: 0;
            width: 100%; /* full width inside grid cell */
            aspect-ratio: 4 / 4; /* square on desktop */
            overflow: hidden; /* crop overflow */
            display: flex;
            justify-content: center;
            align-items: center;
            box-sizing: border-box;
        }
        
        @media (max-width: 768px) {
            .picture-grid-card {
                aspect-ratio: 4 / 5; /* taller on tablet */
            }
        }
        
        @media (max-width: 480px) {
            .picture-grid-card {
                padding: 0.4rem;
                aspect-ratio: 4 / 5; /* taller on mobile */
            }
        }
        
        @media (max-width: 375px) {
            .picture-grid-card {
                padding: 0.3rem;
                aspect-ratio: 4 / 5.5; /* even taller on small mobile */
            }
        }

        .picture-grid-card img{
            position: relative;
            z-index: 0;
            filter: grayscale(60%);
            width: 100%;
            height: 100%;
            object-fit: cover; /* fill box and crop overflow */
            display: block;
            object-position: center; /* center focal point */
            transform: scale(1.05); /* slight default zoom to eliminate edges */
        }
        
        .picture-grid-card {
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .picture-grid-card:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* Individual slides */
        .mySlides {
            position: absolute; /* stacked on top of each other */
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: none; /* hidden initially */
        }
        
        /* Modal Overlay */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.85);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            padding: 20px;
            box-sizing: border-box;
            animation: fadeIn 0.3s ease;
        }
        
        .modal-overlay.active {
            display: flex;
        }
        
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
        
        /* Modal Content */
        .modal-content {
            position: relative;
            width: 85vw;
            height: 85vh;
            max-width: 1200px;
            max-height: 900px;
            background-color: #F0E7DA;
            border: 2px solid rgb(34,49,29);
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: zoomIn 0.3s ease;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }
        
        @keyframes zoomIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }
        
        .modal-content .modal-slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: none;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            display: block;
            filter: grayscale(60%);
        }
        
        /* Close Button */
        .modal-close {
            position: absolute;
            top: -15px;
            right: -15px;
            background-color: rgb(151, 0, 0);
            color: white;
            border: 2px solid rgb(151, 0, 0);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 24px;
            font-weight: bold;
            transition: all 0.3s ease;
            z-index: 10001;
        }
        
        .modal-close:hover {
            background-color: rgb(120, 0, 0);
            border-color: rgb(120, 0, 0);
            transform: scale(1.1);
        }
        
        /* Responsive Modal */
        @media (max-width: 768px) {
            .modal-content {
                width: 90vw;
                height: 80vh;
                max-width: none;
                max-height: none;
                padding: 1.5rem;
            }
            
            .modal-close {
                width: 35px;
                height: 35px;
                font-size: 20px;
                top: -12px;
                right: -12px;
            }
        }
        
        @media (max-width: 480px) {
            .modal-content {
                width: 92vw;
                height: 75vh;
                padding: 1rem;
            }
            
            .modal-close {
                width: 32px;
                height: 32px;
                font-size: 18px;
                top: -10px;
                right: -10px;
            }
        }

        footer p{
            margin-bottom: 0rem;
        }

        .footer-disclaimer{
            font-size: x-small;
            color: #F0E7DA;
            margin: 1rem 2rem 3rem 2rem;
            padding: 0 1rem;
            text-align: center;
        }

        .app-store-btns{
            flex: 1;
            flex-direction: row;
            gap: 2rem;
        }

        .app-store-btns a img{
            width: 20%;
            height: auto;
        }
        @media (max-width:375px){.app-store-btns a img{
            width: 60%;
            height: 40%;
        }}

        /* Form */
        form {
            margin-top: 2rem;
            width: 100%;
        }
        
        form label{
            font-size: 12px;
            display: block;
            text-align: left;
            margin-top: 12px;
            margin-bottom: 4px;
            font-weight: 600;
            /*color: rgb(34,49,29);*/
            color: white;
            text-shadow: 1px 1px #404040;
        }

        form input,
        form select{
            border-radius: 7px;
        }
        
        form h2 {
            margin-top: 1.5rem;
            margin-bottom: 1rem;
            font-size: 1.3rem;
        }
        
        form hr {
            margin: 2rem 0;
            border: none;
            border-top: 1px solid rgb(34,49,29);
            opacity: 0.3;
        }
        
        @media (max-width: 480px) {
            form {
                margin-top: 1.5rem;
            }
            
            form label {
                font-size: 11px;
            }
            
            form h2 {
                font-size: 1.1rem;
                margin-top: 1.2rem;
            }
            
            form hr {
                margin: 1.5rem 0;
            }
        }

        /* @media (max-width:768px){form{margin-top: 2rem;}}
        @media (max-width:480px){form{margin-top: 1rem;}}
        @media (max-width:375px){form{margin-top: 0.5rem;}}

        @media (max-width:768px){form label{margin-top: 2rem;}}
        @media (max-width:480px){form label{margin-top: 1rem;}}
        @media (max-width:375px){form label{margin-top: 0.5rem;}}

        @media (max-width:768px){form input{margin-top: 2rem;}}
        @media (max-width:480px){form input{margin-top: 1rem;}}
        @media (max-width:375px){form input{margin-top: 0.5rem;}} */

       