/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #050505; /* Deep dark background */
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden; /* Mobile app feel, no scrolling */
}

/* Loader */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

#loading-text {
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 10px;
    font-weight: 500;
    margin-left: 10px; /* offset for letter-spacing to center correctly */
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-transform: uppercase;
}

#loading-bar {
    width: 0%;
    height: 2px;
    background-color: #ffffff;
    max-width: 250px;
}

#intro-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
}

/* Intro Section */
#intro-section {
    z-index: 10;
    padding-top: 150px; /* Push the button down to make room for the persistent logo */
}

#persistent-logo {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    z-index: 50;
    pointer-events: none; /* Allows clicks to pass through the logo if needed */
}

#logo-wrapper svg {
    width: 100%;
    height: auto;
    /* We will animate the clip-path via GSAP */
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}

/* Glass & Liquid Button */
.glass-btn {
    position: relative;
    padding: 10px 26px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 3px;
    cursor: pointer;
    overflow: hidden;
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Hidden initially */
    transform: translateY(20px);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.glass-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* Liquid effect inside the button */
.liquid-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 60%);
    z-index: 1;
    animation: liquidMove 4s infinite linear;
    border-radius: 40%;
}

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

/* Intro Buttons Container */
#intro-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Gallery Section */
#gallery-section {
    z-index: 5;
    background: #000;
}

.video-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.gallery-video.active {
    opacity: 1;
    pointer-events: auto;
}

/* Controls */
.controls {
    position: absolute;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
    opacity: 0; /* Hidden initially */
    padding: 8px 16px;
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

#gallery-counter {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.85);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    user-select: none;
    padding: 0 8px;
}

.nav-btn {
    padding: 12px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: none;
}

.nav-btn svg {
    opacity: 0.8;
}

/* About Hanna Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.modal-content.glass-card {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 40px 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
    color: #fff;
    transform: scale(0.9);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.modal-portrait-wrapper {
    margin: 0 auto 16px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.modal-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 6px;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.modal-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 24px auto;
}

.modal-bio {
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-bio p {
    margin-bottom: 14px;
    text-align: left;
}

.modal-bio p:last-child {
    margin-bottom: 0;
}
