/* Import Segment A Key Trial font */
@font-face {
    font-family: 'Segment A Key Trial';
    src: url('SegmentAKeyTrial-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* Import Bricolage Grotesque font */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Lock scroll */
    font-family: 'Segment A Key Trial', sans-serif;
}

body {
    background-color: #101010;
    position: relative;
}

/* Intro Animation Styles */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #101010;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    animation: fadeIn 1s ease-out forwards;
}

.intro-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('logo.svg') no-repeat center center;
    background-size: 150%;
    opacity: 0;
    filter: brightness(0);
    z-index: 1;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
}

.intro-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(255, 63, 63, 0.3), transparent);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
}

.intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.intro-logo-container {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.intro-logo {
    max-width: 150px;
    height: auto;
    display: block;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
    position: relative;
    z-index: 10;
    transition: opacity 2s ease-out;
}

.intro-content.fade-out {
    opacity: 0;
}

.count-up {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 180px;
    color: #FF3F3F;
    text-align: center;
    letter-spacing: 0;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.5s forwards;
}

.typewriter-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    opacity: 0;
    height: 250px;
}

.typewriter-text.show {
    opacity: 1;
}

.typewriter-text span {
    font-family: 'Segment A Key Trial', sans-serif;
    font-weight: 900;
    font-size: 120px;
    color: #ffffff;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    line-height: 0.9;
}

.container {
    display: none;
    opacity: 0;
}

.container.show {
    display: block;
    animation: fadeInContent 2s ease-in forwards;
}

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

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

/* Removed body::before and body::after - using intro-overlay background instead */

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

.logo-container {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
}

.logo {
    max-width: 150px;
    height: auto;
    display: block;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 30px;
}

.coming-soon {
    font-family: 'Segment A Key Trial', sans-serif;
    font-weight: 900;
    font-size: 120px;
    color: #ffffff;
    text-align: center;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
}

.coming-soon.show {
    opacity: 1;
}

.facebook-button {
    display: inline-block;
    padding: 16px 48px;
    background-color: #FF3F3F;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    border-radius: 8px;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 63, 63, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    width: 240px;
    text-align: center;
}

.facebook-button.show {
    opacity: 1;
    transform: translateY(0);
}

.facebook-button:hover {
    background-color: #cc3232;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 63, 63, 0.6);
}

.facebook-button:active {
    transform: translateY(0);
}

.share-button {
    display: inline-block;
    padding: 16px 48px;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out, background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    width: 240px;
    text-align: center;
}

.share-button.show {
    opacity: 1;
    transform: translateY(0);
}

.share-button:hover {
    background-color: #ffffff;
    color: #101010;
}

.share-button:active {
    transform: translateY(0) scale(0.98);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    background: linear-gradient(145deg, #1a1a1a, #252525);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 80px rgba(255, 63, 63, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.close-modal {
    position: absolute;
    right: -60px;
    top: 0;
    width: 44px;
    height: 44px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid #444;
    padding: 0;
}

.close-modal:hover {
    color: #FF3F3F;
    background: #252525;
    border-color: #FF3F3F;
}

.share-modal-content h2 {
    font-family: 'Segment A Key Trial', sans-serif;
    font-weight: 900;
    font-size: 36px;
    color: #ffffff;
    margin: 0 0 30px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Language Toggle Switch */
.language-toggle {
    display: flex;
    position: relative;
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    width: 100%;
}

.toggle-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: #999;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toggle-btn.active {
    color: #ffffff;
}

.toggle-btn .flag {
    font-size: 20px;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #FF3F3F, #cc3232);
    border-radius: 10px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 63, 63, 0.4);
}

.toggle-slider.slide-right {
    transform: translateX(calc(100% + 4px));
}

/* Share Image Preview */
.share-image-container {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-image {
    width: 70%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

.share-image.fade-transition {
    opacity: 0;
}

/* Share Text Container */
.share-text-container {
    margin-bottom: 25px;
}

.share-text-container label {
    display: block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-text-container textarea {
    width: 100%;
    padding: 16px;
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 10px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: none;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

.share-text-container textarea:focus {
    outline: none;
    border-color: #FF3F3F;
}

/* Share Action Buttons */
.share-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.action-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 10px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: none;
}

.copy-btn:hover {
    background: #ffffff;
    color: #101010;
    transform: translateY(-2px);
}

.download-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: none;
}

.download-btn:hover {
    background: #ffffff;
    color: #101010;
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF3F3F, #cc3232);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 30px rgba(255, 63, 63, 0.5);
    z-index: 20001;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
    bottom: 40px;
}

.toast span {
    font-size: 20px;
    font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    body::before {
        background-size: 300%;
    }
    
    .intro-overlay::before {
        background-size: 300%;
    }
    
    .intro-logo {
        max-width: 120px;
    }
    
    .intro-logo-container {
        top: 20px;
    }
    
    .count-up {
        font-size: 20vw;
    }
    
    .typewriter-text span {
        font-size: 10vw;
        padding: 0 15px;
        line-height: 0.9;
    }
    
    .intro-content {
        gap: 15px;
    }
    
    .share-modal-content {
        padding: 30px 20px;
        margin-top: 50px;
    }
    
    .close-modal {
        right: 10px;
        top: -50px;
    }
    
    .share-modal-content h2 {
        font-size: 28px;
    }
    
    .share-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .toggle-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .logo-container {
        top: 20px;
    }
    
    .coming-soon {
        font-size: 18vw;
        padding: 0 20px;
        line-height: 1.1;
    }
    
    .facebook-button {
        padding: 14px 40px;
        font-size: 16px;
        font-weight: 700;
    }
    
    .share-button {
        padding: 14px 40px;
        font-size: 16px;
        font-weight: 700;
    }
    
    .content {
        gap: 30px;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        max-width: 100px;
    }
    
    .logo-container {
        top: 15px;
    }
    
    .coming-soon {
        font-size: 18vw;
        padding: 0 15px;
        line-height: 1.1;
    }
    
    .facebook-button {
        padding: 12px 32px;
        font-size: 14px;
        font-weight: 700;
    }
    
    .share-button {
        padding: 12px 32px;
        font-size: 14px;
        font-weight: 700;
    }
    
    .content {
        gap: 25px;
    }
}

@media screen and (max-width: 360px) {
    .coming-soon {
        font-size: 18vw;
        line-height: 1.1;
    }
    
    .facebook-button {
        padding: 10px 28px;
        font-size: 13px;
    }
    
    .share-button {
        padding: 10px 28px;
        font-size: 13px;
    }
}

/* Landscape orientation handling */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .logo {
        max-width: 80px;
    }
    
    .logo-container {
        top: 10px;
    }
    
    .coming-soon {
        font-size: 32px;
    }
    
    .facebook-button {
        padding: 10px 30px;
        font-size: 14px;
    }
    
    .content {
        gap: 20px;
    }
}
