/* Living Serif Font */
@font-face {
    font-family: 'Living Serif';
    src: url('./assets/fonts/Living Serif.woff') format('woff'),
         url('./assets/fonts/Living Serif.ttf') format('truetype'),
         url('./assets/fonts/Living Serif.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Figtree', sans-serif;
    overflow-x: hidden;
    background: #000;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
}

/* Video Background */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    mix-blend-mode: color;
    pointer-events: none;
    transition: background-color 0.3s ease;
}
/* Content Wrapper - Flexbox Based */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 48px 20px 0 20px;
    position: relative;
    height: 100%;
}

/* Logo Container - Flexbox Centered */
.logo-container {
    display: flex;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    z-index: 10;
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
    width: 100%;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* Main Content Area - Flexbox */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    flex: 1;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

/* Show main content */
.main-content.show {
    opacity: 1;
    visibility: visible;
}

/* Logo Wrapper - GSAP controlled positioning */
.logo-wrapper {
    position: absolute;
    width: 100%;
    aspect-ratio: 231 / 131; 
    overflow: hidden;
    transform-origin: center;
}

/* After animation complete - GSAP controlled */
.logo-container.animation-complete {
    position: relative;
    height: auto;
    justify-content: center;
}

.logo-container.animation-complete .logo-wrapper {
    position: relative;
    margin: 0 auto;
}

/* Lottie Player Web Component (supports JSON) */
#lottieAnimation {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    display: block;
    transform: translate(-50%, -50%) scale(2.5);
}

lottie-player {
    width: 100%;
    height: 100%;
    display: block;
}

/* Vertical Line - Flexbox Centered */
.vertical-line {
    display: flex;
    align-self: center;
    width: 1px;
    background: rgba(255, 255, 255, 1);
    opacity: 0;
    flex: 1 1 0%;
    transform: translateY(100%);
    z-index: 5;
    pointer-events: none;
    flex-shrink: 0;
    margin-top: 48px;
    will-change: transform, opacity;
}

/* Content Section */
.content-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 769px;
    opacity: 0;
    padding: 0 20px 63px 20px;
    transform: translateY(20px);
    will-change: transform, opacity;
}

/* Content Box */
.content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

/* Content Title */
.content-title {
    font-family: 'Living Serif', serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    color: white;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.35);
    margin: 0;
    padding: 0;
    max-width: 100%;
}

/* Content Button */
.content-button {
    background: #000;
    color: white;
    border: none;
    padding: 8px 24px;
    height: 44px;
    width: 250px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.3;
}

.content-button:hover {
    background: #333;
}

/* Footer - Flexbox */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    background: white;
    border-top: 1px solid #d9d9d9;
    z-index: 100;
    padding: 0 15px;
    flex-shrink: 0;
}

.footer p {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    color: #111;
    text-transform: capitalize;
}

/* Dialog Styles - Responsive */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.dialog-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dialog {
    background: white;
    padding: 30px 20px;
    width: 500px;
    max-width: 90%;
    position: relative;
    transform: translateY(20px);
}

.dialog-overlay.active .dialog {
    transform: translateY(0);
}

.dialog-close {
    position: absolute;
    top: 16px;
    left: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 15px;
    height: 14px;
    z-index: 10;
    transform: rotate(180deg) scaleY(-1);
    transition: opacity 0.2s ease;
}

.dialog-close:hover {
    opacity: 0.7;
}

.dialog-close:hover {
    opacity: 0.7;
}

.dialog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 2vh, 17px);
}

.dialog-title {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #131313;
    text-transform: uppercase;
    text-align: center;
    line-height: normal;
    padding: 0 100px;
    margin-bottom: 17px;
}

.subscription-form {
    width: 400px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #828282;
    position: absolute;
    top: 11px;
    left: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    line-height: 1.3;
}

.form-group input {
    width: 100%;
    height: 52px;
    border: none;
    border-bottom: 0.75px solid #131313;
    background: white;
    padding: 28px 11px 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #131313;
    outline: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 10px;
}

/* Email error message */
.error-message {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #dc2626;
    margin-top: 5px;
    line-height: 1.3;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.error-message.show {
    opacity: 1;
    max-height: 50px;
}

.form-group.error input {
    border-bottom-color: #dc2626;
}

.submit-btn {
    width: 100%;
    height: 44px;
    background: #131313;
    border: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 8px;
    padding: 8px 24px;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #000;
}

.submit-btn span {
    flex: 1 0 0;
    text-align: center;
    line-height: 1.3;
}

/* Dialog Success State - Responsive */
.dialog-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    min-height: 241px;
}

.dialog-success.active {
    display: flex;
}

/* Success dialog specific size */
.dialog:has(.dialog-success.active) {
    height: 241px;
}

.success-title {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #131313;
    text-transform: uppercase;
    line-height: normal;
    margin-bottom: 0;
}

.success-divider {
    width: 1px;
    height: 57px;
    background: #131313;
    margin: 25px 0;
}

.success-message {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    color: #131313;
    text-transform: uppercase;
    line-height: normal;
}

/* Animation States */
body.state-1 #bgVideo {
    filter: brightness(0.6) saturate(1.2);
}

body.state-1 .video-overlay {
    background: rgba(0, 0, 0, 0);
}

body.state-2 #bgVideo {
    filter: brightness(0.5) saturate(1);
}

body.state-2 .video-overlay {
    background: rgba(0, 0, 0, 0);
}

body.state-3 #bgVideo {
    filter: brightness(0.4) saturate(0.8) grayscale(0.3);
}

body.state-3 .video-overlay {
    background: rgba(102, 102, 102, 0.2);
}

body.state-4 #bgVideo {
    filter: brightness(0.3) saturate(0.6) grayscale(0.5);
}

body.state-4 .video-overlay {
    background: rgba(0, 0, 0, 0.3);
}

body.state-5 #bgVideo {
    filter: brightness(0.25) saturate(0.4) grayscale(0.7);
}

body.state-5 .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

body.state-6 #bgVideo {
    filter: brightness(0.2) saturate(0.2) grayscale(0.85);
}

body.state-6 .video-overlay {
    background: rgba(0, 0, 0, 0.6);
}

body.state-7 #bgVideo {
    filter: brightness(0.15) saturate(0) grayscale(1);
}

body.state-7 .video-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.state-8 #bgVideo {
    filter: brightness(0.15) saturate(0) grayscale(1);
}

body.state-8 .video-overlay {
    background: rgba(0, 0, 0, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 30px 20px 0 20px;
    }
    
    
    .main-content {
        padding-top: 20px;
    }
    

    .content-title {
        font-size: 40px;
        line-height: 1;
    }

    .content-box {
        gap: 30px;
    }

    .content-button {
        width: 250px;
        height: 44px;
        font-size: 12px;
    }
    
    .vertical-line {
        margin-top: 30px;
    }

    .dialog {
        padding: 25px 15px;
        width: 95%;
    }

    .dialog-title {
        padding: 0 20px;
        font-size: 11px;
    }

    .subscription-form {
        width: 100%;
        padding: 0 10px;
    }

    .dialog-close {
        top: 16px;
        left: 14px;
    }
}
