body {
    margin: 0;
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ffd700;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content > * {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-size: 1.1rem;
}

nav ul li a:hover {
    border-bottom: 2px solid #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Language toggle button */
.lang-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    gap: 5px;
}

.lang-btn:hover {
    background: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.lang-btn span {
    opacity: 0.5;
}

.lang-btn span.active {
    opacity: 1;
}

nav ul li a {
    color: #ffd700; /* gold color */
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s;
}

nav ul li a:hover {
    border-bottom: 2px solid #ffd700;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: #ffd700; /* gold color */
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s;
}

nav ul li a:hover {
    border-bottom: 2px solid #ffd700;
}

main {
    position: relative;
    z-index: 1;
    padding-top: 60px; /* to account for fixed header */
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    min-height: calc(100vh - 60px);
}

#hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9));
}

.hero-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    perspective: 1000px;
    text-shadow: 
        2px 2px 0 #000,
        4px 4px 0 rgba(255, 215, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.5);
    animation: textFloat 3s ease-in-out infinite;
}

@keyframes textFloat {
    0%, 100% { transform: translateZ(0); }
    50% { transform: translateZ(10px); }
}

.hero-text:hover {
    text-shadow: 
        2px 2px 0 #000,
        4px 4px 0 rgba(255, 215, 0, 0.5),
        0 0 50px rgba(255, 215, 0, 0.8);
}

.hero-subtext {
    font-size: 1.3rem;
    opacity: 0.9;
    margin: 1.5rem 0;
    color: #fff;
    cursor: pointer;
    transition: transform 0.1s ease-out, text-shadow 0.3s;
    transform-style: preserve-3d;
    perspective: 800px;
}

.hero-subtext:hover {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    color: #ffd700;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffd700, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    background-color: #ffd700;
    color: #000000;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

#container {
    position: relative;
    width: 100vw;
    height: calc(100vh - 60px); /* account for header */
    margin-top: 60px; /* offset for fixed header */
}

/* Gallery styles */
.gallery {
    padding: 0;
    margin: 0;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #0d0d0d 50%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    animation: goldPulseGallery 10s ease-in-out infinite;
}

@keyframes goldPulseGallery {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.gallery h1 {
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffd700, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: shimmer 3s infinite;
    background-size: 200% auto;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.viewer-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

#central-viewer {
    width: 100%;
    max-width: 600px;
    height: 400px;
    background: linear-gradient(135deg, #000000 0%, #1a1a0a 30%, #2a2500 50%, #1a1a0a 70%, #000000 100%);
    border-radius: 20px;
    border: 3px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), inset 0 0 60px rgba(255, 215, 0, 0.1);
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    position: relative;
    transform-style: preserve-3d;
    animation: viewer3DPulse 4s ease-in-out infinite;
}

@keyframes viewer3DPulse {
    0%, 100% { transform: perspective(1000px) rotateX(0deg) rotateY(0deg); }
    25% { transform: perspective(1000px) rotateX(0.5deg) rotateY(-0.5deg); }
    50% { transform: perspective(1000px) rotateX(0deg) rotateY(0deg); }
    75% { transform: perspective(1000px) rotateX(-0.5deg) rotateY(0.5deg); }
}

/* Blurred color effects on sides */
#central-viewer::before,
#central-viewer::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    z-index: 2;
    pointer-events: none;
}

#central-viewer::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 215, 0, 0.3), transparent);
    filter: blur(30px);
    animation: goldSideLeft 3s ease-in-out infinite;
}

#central-viewer::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 215, 0, 0.3), transparent);
    filter: blur(30px);
    animation: goldSideRight 3s ease-in-out infinite;
}

@keyframes goldSideLeft {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(10px); }
}

@keyframes goldSideRight {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(-10px); }
}

/* 3D Carousel styles */
.carousel-3d {
    perspective: 1000px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    cursor: grab;
    animation: carouselFloat 6s ease-in-out infinite;
}

@keyframes carouselFloat {
    0%, 100% { transform: translateZ(0px) rotateX(0deg); }
    50% { transform: translateZ(10px) rotateX(1deg); }
}

.carousel-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3), inset 0 0 40px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #000000 0%, #1a1a0a 50%, #000000 100%);
    padding: 15px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    animation: imageGlow 3s ease-in-out infinite;
}

@keyframes imageGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3), inset 0 0 40px rgba(0, 0, 0, 0.6); }
    50% { box-shadow: 0 0 60px rgba(255, 215, 0, 0.8), 0 0 100px rgba(255, 215, 0, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.6); }
}

#current-image {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(255, 215, 0, 0.3), inset 0 0 40px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, #000000 0%, #1a1a0a 50%, #000000 100%);
    padding: 15px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    animation: imageGlow 3s ease-in-out infinite;
}

#current-image:hover {
    transform: scale(1.05) rotateX(2deg);
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.8), 0 0 120px rgba(255, 215, 0, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.description {
    font-size: 1.2rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.description:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(0, 0, 0, 0.5) 100%);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.caption {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
}

.contact-btn {
    display: inline-block;
    margin: 20px auto;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ffdd33 0%, #ffcc00 100%);
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ffd700;
    color: #ffd700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.nav-btn:active {
    transform: scale(0.95);
}

.counter {
    color: #ffffff;
    font-size: 1.2rem;
    min-width: 60px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery h1 {
        font-size: 2rem;
    }
    
    .viewer-container {
        width: 90%;
    }
    
    #central-viewer {
        height: 400px;
    }
    
    .caption {
        font-size: 1.5rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 50px;
    }
}

/* Contact styles */
.contact {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #000000 0%, #0d0d0d 50%, #000000 100%);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 180px);
}

.contact::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
    animation: goldPulseContact 12s ease-in-out infinite;
}

@keyframes goldPulseContact {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(5deg); }
}

.contact h1 {
    margin-bottom: 2rem;
    background: linear-gradient(to right, #ffd700, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-content {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.contact-info p {
    margin: 1rem 0;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #ffd700;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero p {
        font-size: 1.2rem;
    }
    
    nav ul {
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Footer styles */
footer {
    text-align: center;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #ffd700;
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 0.8;
}

footer p {
    margin: 0;
}

/* Babylon.js Viewer Styles */
.babylon-viewer {
    width: 300px;
    height: 300px;
    background-color: #000;
    margin: 15px auto;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.babylon-viewer:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

/* Responsive adjustments for babylon viewers */
@media (max-width: 768px) {
    .babylon-viewer {
        width: 250px;
        height: 250px;
        margin: 10px auto;
    }
    
    .gallery-item {
        margin-bottom: 25px;
    }
}

/* 3D Viewer Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content {
    background-color: rgba(0,0,0,0.95);
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #ffd700;
    width: 90%; /* Could be more or less, depending on screen size */
    max-width: 800px;
    position: relative;
    border-radius: 10px;
}

.close-btn {
    color: #ffd700;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #ffd700;
    margin: 0;
    font-size: 1.8rem;
}

.modal-body {
    position: relative;
}

#viewerContainer {
    width: 100%;
    height: 400px;
    background-color: #000;
    border-radius: 5px;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.controls button {
    background-color: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.controls button:hover {
    background-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.controls button:active {
    transform: translateY(0);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    #viewerContainer {
        height: 300px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .controls button {
        width: 80%;
        max-width: 200px;
    }
}

/* Responsive adjustments for babylon viewers */
@media (max-width: 768px) {
    .babylon-viewer {
        width: 150px;
        height: 150px;
    }
    
    .gallery-item {
        margin-bottom: 20px;
    }
}

/* Legal/Privacy Page Styles */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 100px;
    text-align: left;
    background: linear-gradient(135deg, #000000 0%, #0d0d0d 50%, #000000 100%);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 120px);
}

.legal-page::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: goldPulseLegal 15s ease-in-out infinite;
}

@keyframes goldPulseLegal {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.legal-page h1 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.legal-page h1:first-child {
    margin-top: 0;
}

.legal-section {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-section h2 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.legal-section p {
    color: #ffffff;
    line-height: 1.8;
    margin: 0;
}