/* index.css */

/* Font Face Definitions linking to local system libraries and local woff2 files */
@font-face {
    font-family: 'SeriouslyNostalgic';
    src: local('SeriouslyNostalgic'), 
         local('Seriously Nostalgic'),
         local('SeriouslyNostalgic-Regular'),
         url('seriouslynostalgic-semicond-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sequel Sans Medium Disp';
    src: local('Sequel Sans Medium Disp'), 
         local('SequelSans-MediumDisp'), 
         local('Sequel Sans Medium'),
         local('Sequel Sans'),
         url('Sequel_Sans_Medium_Disp.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Whole background image configured here */
    background: url('backgroundd_1x.webp') no-repeat center center;
    background-size: cover;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Split Screen Layout Container */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: transparent;
}

/* Left Panel - Hand Visual */
.left-panel {
    width: 55%;
    height: 100%;
    background: transparent; /* Transparent to let body background show through */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    position: relative;
}

.left-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
}

.side-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Right Panel - Info & Form */
.right-panel {
    width: 56%;
    height: 100%;
    background: transparent; /* Transparent to let body background show through */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 5vh 6vw;
    position: relative;
}

/* Header Contact Link */
.header-contact {
    font-family: 'Sequel Sans Medium Disp', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    text-align: right;
    margin-top: 10px;
}

.header-contact a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.25s ease, text-decoration-color 0.25s ease;
}

.header-contact a:hover {
    opacity: 0.8;
}

/* Bottom Content Container */
.content-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    max-width: 520px;
    margin-bottom: 5vh;
    gap: 28px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Coming Soon Title */
.title-coming-soon {
    font-family: 'SeriouslyNostalgic', Georgia, serif;
    font-size: clamp(60px, 6.2vw, 92px);
    font-weight: normal;
    color: #ffffff;
    line-height: 0.95;
    text-align: right;
    letter-spacing: -0.02em;
    margin: 0;
    user-select: none;
}

/* Description Text */
.description {
    font-family: 'Sequel Sans Medium Disp', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    margin: 0;
    letter-spacing: 0.01em;
    max-width: 480px;
}

/* Waitlist Form Pill Container */
.waitlist-form {
    display: flex;
    align-items: center;
    background: #000000;
    border-radius: 100px;
    padding: 6px 6px 6px 26px;
    width: 100%;
    max-width: 440px;
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.waitlist-form:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.waitlist-form:focus-within {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Email Input */
.email-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: 'Sequel Sans Medium Disp', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    margin-right: 15px;
    width: 50%;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Override browser autocomplete/autofill styling to keep background black and text white */
.email-input:-webkit-autofill,
.email-input:-webkit-autofill:hover, 
.email-input:-webkit-autofill:focus, 
.email-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #000000 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Ensure text selection background is transparent */
.email-input::selection {
    background: transparent;
    color: #ffffff;
}

.email-input::-moz-selection {
    background: transparent;
    color: #ffffff;
}

/* Waitlist Button */
.submit-btn {
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 100px;
    padding: 14px 28px;
    font-family: 'Sequel Sans Medium Disp', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.25s ease, 
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.25s ease;
}

.submit-btn:hover {
    background-color: #f2f2f2;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Success Micro-Animation & State styling */
.success-message {
    font-family: 'Sequel Sans Medium Disp', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.050);
    padding: 10px 20px;
    border-radius: 10px;
    display: none;
    text-align: right;
    animation: fadeIn 0.5s ease both;
    margin-top: 10px;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .right-panel {
        padding: 5vh 5vw;
    }
}

@media (max-width: 768px) {
    body, html {
        overflow-y: auto;
    }
    
    .app-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    .left-panel {
        width: 100%;
        height: 48vh;
        min-height: 380px;
    }
    
    .right-panel {
        width: 100%;
        height: 52vh;
        min-height: 420px;
        padding: 6vh 6vw;
        align-items: center;
    }
    
    .header-contact {
        position: absolute;
        top: 25px;
        right: 6vw;
        margin-top: 0;
    }
    
    .content-section {
        align-items: center;
        margin-top: auto;
        margin-bottom: auto;
        max-width: 100%;
    }
    
    .title-coming-soon {
        font-size: 56px;
        text-align: center;
    }
    
    .description {
        font-size: 14px;
        text-align: center;
        max-width: 400px;
    }
    
    .waitlist-form {
        max-width: 100%;
    }
    
    .success-message {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .left-panel {
        height: 42vh;
        min-height: 300px;
    }
    
    .right-panel {
        height: 58vh;
        min-height: 380px;
        padding: 8vh 5vw 6vh 5vw;
    }
    
    .header-contact {
        top: 20px;
        right: 5vw;
        font-size: 13px;
    }
    
    .title-coming-soon {
        font-size: 46px;
    }
    
    .waitlist-form {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 12px;
    }
    
    .waitlist-form:focus-within {
        box-shadow: none;
    }
    
    .email-input {
        width: 100%;
        margin-right: 0;
        background: #000000;
        border: 1.5px solid rgba(255, 255, 255, 0.1);
        border-radius: 100px;
        padding: 16px 24px;
        text-align: center;
    }
    
    .email-input:focus {
        border-color: rgba(255, 255, 255, 0.3);
        outline: none;
    }
    
    .submit-btn {
        width: 100%;
        padding: 16px;
    }
}
