/* --- GLOBAL STYLES --- */
html { scroll-behavior: smooth; }
body, html { margin: 0; padding: 0; width: 100%; font-family: 'Montserrat', sans-serif; color: white; }

/* --- BACKGROUND SLIDESHOW --- */
.slideshow-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; background-color: #1a1a1a;
}

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 2s ease-in-out;
    object-fit: cover; object-position: center;
}
.slide.active { opacity: 1; }

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* --- CONTROL BUTTONS (SHARED STYLES) --- */
.control-btn {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 30px;
    font-size: 1rem;
    display: flex; align-items: center; gap: 10px;
    transition: background 0.3s;
    font-family: 'Montserrat', sans-serif;
}
.control-btn:hover { background: rgba(255,255,255,0.2); }
.fi { font-size: 1.2rem; border-radius: 2px; }

/* --- SCROLL TO TOP BUTTON --- */
.scroll-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scroll-btn:hover { background: rgba(255,255,255,0.05); }
.scroll-btn.visible { opacity: 1; }

/* --- TOP LEFT: MUSIC --- */
.music-container {
    position: fixed; top: 20px; left: 20px; z-index: 100;
    display: flex; align-items: center; gap: 15px;
}

#song-info {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease; /* Smooth fade in/out */
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

#song-info.visible {
    opacity: 0.75; /* Target opacity */
}

/* --- TOP RIGHT: LANGUAGE --- */
.lang-container {
    position: fixed; top: 20px; right: 20px; z-index: 100;
}

/* --- SECTIONS LAYOUT --- */
.screen-section {
    min-height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; position: relative;
    padding: 20px; box-sizing: border-box;
}

/* --- TYPOGRAPHY --- */
h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem; margin: 0; font-weight: 300;
    letter-spacing: 2px; text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: row;
    gap: 0.25em;
}
p.subtitle {
    font-size: 1.2rem; text-transform: uppercase; letter-spacing: 4px;
    margin-bottom: 20px; text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

h2.subtitle {
    display: flex;
    flex-direction: row;
    gap: 0.25em;
}

.name-part {
    display: block;
}
.date-box {
    border-top: 1px solid rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.7);
    padding: 15px 40px; margin: 30px 0;
}
.date {
    font-size: 1.8rem; font-family: 'Cormorant Garamond', serif;
    font-weight: 600; margin: 0;
}

/* --- BUTTONS --- */
.btn-main {
    background-color: white; color: black; border: none;
    padding: 15px 40px; font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; font-weight: 600; margin-top: 30px;
    transition: transform 0.2s, background-color 0.3s;
    text-decoration: none; display: inline-block;
}
.btn-main:hover { background-color: #f2f2f2; transform: scale(1.05); }

/* --- Q&A STYLES --- */
.qa-container {
    max-width: 600px;
    margin: 30px auto;
    text-align: left;
    font-size: 0.9rem;
}

#qa h2 {
    max-width: 600px;
    margin: 0 auto 20px;
}

#qa p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.qa-container details {
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.qa-container summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    list-style: none;
}

.qa-container summary::before {
    content: "►";
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s;
    font-size: 1.2em;
}

.qa-container details[open] summary::before {
    transform: rotate(90deg);
}

.qa-container summary:hover {
    background: rgba(255,255,255,0.1);
}

.qa-container details p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.qa-container details[open] p {
    max-height: 1000px;
}

.qa-container details dl {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.qa-container details[open] dl {
    max-height: 1000px;
}

.qa-container p {
    padding: 0 15px 15px 15px;
    margin: 0;
    color: rgba(255,255,255,0.9);
}

.qa-container dl {
    padding: 0 15px 15px 15px;
    margin: 0;
    color: rgba(255,255,255,0.9);
}

.qa-container dt {
    font-weight: bold;
    float: left;
    width: 130px;
    clear: left;
    margin-bottom: 10px;
}

.qa-container dt::before {
    content: "•";
    margin-right: 5px;
}

.qa-container dd {
    margin-left: 140px;
    margin-bottom: 10px;
}

/* --- FORM STYLES --- */
.form-wrapper {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    max-width: 500px; width: 100%;
    backdrop-filter: blur(5px);
}

.web3-form { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; letter-spacing: 1px; }

.web3-form input[type="text"], .web3-form input[type="email"], .web3-form input[type="tel"] {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px; color: white; font-family: 'Montserrat', sans-serif;
    width: 100%; box-sizing: border-box; font-size: 1rem;
}
.web3-form input:focus { outline: none; border-color: white; background: rgba(255,255,255,0.1); }

.web3-form select {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px; color: white; font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}
.web3-form select:focus { outline: none; border-color: white; background: rgba(255,255,255,0.1); }

.web3-form select option {
    background: black;
    color: white;
}

.phone-input { display: flex; gap: 10px; }
.phone-input select { flex: 0 0 auto; width: auto; }
.phone-input input { flex: 1; }

.web3-form textarea {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px; color: white; font-family: 'Montserrat', sans-serif;
    width: 100%; box-sizing: border-box; font-size: 1rem; resize: vertical;
}
.web3-form textarea:focus { outline: none; border-color: white; background: rgba(255,255,255,0.1); }

.radio-group { display: flex; gap: 20px; margin-top: 5px; }
.radio-option { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.radio-option input { margin: 0; cursor: pointer; width: 18px; height: 18px; }

.number-input { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.number-input button { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.5); color: white; padding: 10px 15px; cursor: pointer; font-size: 1.2rem; border-radius: 5px; }
.number-input button:hover { background: rgba(255,255,255,0.2); }
.number-input input { background: transparent; border: 1px solid rgba(255,255,255,0.5); padding: 10px; color: white; text-align: center; width: 50px; font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; flex-direction: column; gap: 0; }
    h2.subtitle { flex-direction: column; gap: 0; }
    .date { font-size: 1.5rem; }
    .form-wrapper { padding: 20px; width: 90%; }
    .music-container { top: 20px; left: 20px; }
    #song-info { font-size: 0.7rem; max-width: 150px; text-align: left; }
}