:root {
    --background-color: #235451;
    --primary-color: #f5f8fc;
    --accent-color: #0e1310;
    --gradient-1: rgba(6, 52, 76, 0.7);
    --gradient-2: rgba(27, 100, 100, 0.8);
    --light-color: rgba(27, 100, 100, 0.4);
    --gradient-1-dark: rgba(6, 52, 76, 1);
    --dark-color: rgba(27, 100, 100, 1);
}

html {
    margin: 0;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
}

body {
    margin: 0;
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    background-color: var(--background-color);
    background-size: cover;
    background-position-x: left;
    background-position-y: center;
    flex-direction: column;
    font-family: sans-serif;
}

.home-page {
    font-family: 'Chivo Mono', monospace;
}

.name {
    font-size: 1em;
    line-height: 1;
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    top: 20px;
    left: 20px;
    z-index: 50;
}

.name-vertical, .by-line-vertical {
    display: none;
    z-index: 10;
}

.by-line {
    font-size: 1em;
    line-height: 1;
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 50;
}

.social {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    z-index: 50;
}

.social img.google-play {
    height: 90px;
}

.social img.app-store {
    height: 60px;
    padding: 15px;
}

.content {
    font-size: 1.5vw;
    font-weight: 600;
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 10;
}

a {
    color: var(--primary-color);
    transition: color 0.2s ease-out;
}
a:hover {
    color: var(--accent-color);
}

.copy {
    width: 20vw;
    position: relative;
}

.copy img {
    max-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.phone-border {
    position: relative !important;
    z-index: 30;
    pointer-events: none;
}

.phone-background {
    position: absolute !important;
    z-index: 10;
    pointer-events: none;
}

.screen-image {
    z-index: 20;
    opacity: 0;
    animation: fadeInOutScreen 60s infinite;
}

.screen-image:nth-child(1) {
    animation-delay: 0s;
}

.screen-image:nth-child(2) {
    animation-delay: 15s;
}

.screen-image:nth-child(3) {
    animation-delay: 30s;
}

.screen-image:nth-child(4) {
    animation-delay: 45s;
}

@keyframes fadeInOutScreen {
    0% { opacity: 0; }
    2% { opacity: 1; }
    24% { opacity: 1; }
    28% { opacity: 0; }
    100% { opacity: 0; }
}

.phone-demo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.screen-description-landscape-1, .screen-description-landscape-2, .screen-description-landscape-3, .screen-description-landscape-4 {
    position: absolute;
    width: 26vw;
    color: var(--primary-color);
    padding: 1vw;
    border-radius: 10px;
    z-index: 0;
}

.screen-description-landscape-1::before,
.screen-description-landscape-2::before,
.screen-description-landscape-3::before,
.screen-description-landscape-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
    pointer-events: none;
}

.screen-description-landscape-1 {
    right: calc(100% + 20px);
    top: 10%;
    text-align: right;
    background: linear-gradient(to right, var(--light-color) 10%, var(--gradient-1) 80%);
}
.screen-description-landscape-1::before {
    background: linear-gradient(to right, var(--dark-color) 10%, var(--gradient-1-dark) 80%);
}
.screen-description-landscape-2 {
    left: calc(100% + 20px);
    top: 20%;
    text-align: left;
    background: linear-gradient(to left, var(--light-color) 10%, var(--gradient-1) 80%);
}
.screen-description-landscape-2::before {
    background: linear-gradient(to left, var(--dark-color) 10%, var(--gradient-1-dark) 80%);
}
.screen-description-landscape-3 {
    right: calc(100% + 20px);
    top: 40%;
    text-align: right;
    background: linear-gradient(to right, var(--light-color) 10%, var(--gradient-1) 80%);
}
.screen-description-landscape-3::before {
    background: linear-gradient(to right, var(--dark-color) 10%, var(--gradient-1-dark) 80%);
}
.screen-description-landscape-4 {
    left: calc(100% + 20px);
    top: 55%;
    text-align: left;
    background: linear-gradient(to left, var(--light-color) 10%, var(--gradient-1) 80%);
}
.screen-description-landscape-4::before {
    background: linear-gradient(to left, var(--dark-color) 10%, var(--gradient-1-dark) 80%);
}

.screen-description-landscape-1.active::before,
.screen-description-landscape-2.active::before,
.screen-description-landscape-3.active::before,
.screen-description-landscape-4.active::before {
    opacity: 1;
}

.screen-description h2 {
    font-size: 1.6em;
    margin-bottom: 0.5em;
    line-height: 1.2;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.screen-description div p {
    font-size: 1em;
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
.screen-description div p:first-child {
    margin-bottom: 0.3em;
}

.screen-description-portrait {
    display: none;
}

.glow {
    z-index: -1;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130vw;
    height: 130vw;
    transform: translate(-50%, -50%);
}

.circle.expanded {
    width: 400vw;
    height: 300vh;
    bottom: -150vh;
    left: -150vw;
    z-index: 5;
}

.contact-form {
    color: var(--primary-color);
    font-size: 2vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1vh;
}

.contact-form.visible {
    visibility: visible;
    opacity: 1;
}

.contact-text {
    position: relative;
    z-index: 10;
    text-decoration: underline;
    cursor: pointer;
}
.contact-text.expanded {
    color: var(--accent-color);
}

.contact:hover {
    color: var(--accent-color);
}

.circle.expanded {
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background-color: var(--background-color);
}

.contact-text {
    position: relative;
    z-index: 10;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease-in;
}
.contact-text.expanded {
    color: var(--accent-color);
}

.name-vertical .mini-skull {
    margin-left: calc(-0.75em);
}

.bottom-gradient {
    display: none;
}

.platform-toggle {
    visibility: visible;
    display: flex;
    gap: 0;
    margin: 10px auto 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    background-color: transparent;
    width: fit-content;
}

.platform-toggle-portrait {
    visibility: hidden;
}

.platform-option {
    padding: 4px 10px;
    font-family: 'Chivo Mono', monospace;
    font-size: 0.5em;
    border: none;
    background-color: transparent;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.platform-option:first-child {
    border-right: 1px solid var(--accent-color);
}

.platform-option:last-child {
    border-left: 1px solid var(--accent-color);
}

.platform-option:hover {
    background-color: rgba(14, 19, 16, 0.2);
}

.platform-option.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

@media (orientation: portrait) {
    .social img.google-play {
        height: 60px;
    }
    .social img.app-store {
        height: 40px;
        padding: 10px;
    }
    .contact-form {
        font-size: 5vw;
    }
    .contact:hover .circle:not(.expanded) {
        bottom: -12vh;
        left: -2vw;
        width: 40vw;
        height: 25vh;
    }
    .content {
        font-size: 5vw;
        bottom: 20px;
        z-index: 40;
    }
    .name-vertical, .by-line-vertical {
        display: flex;
        flex-direction: column;
        font-size: 5vw;
        position: absolute;
    }
    .name-vertical {
        align-items: flex-start;
        top: 20px;
        left: 20px;
    }
    .by-line-vertical {
        align-items: flex-end;
        bottom: 20px;
        left: 16px;
        z-index: 50;
    }
    .by-line-vertical a {
        text-decoration: none;
        border-left: 2px solid var(--primary-color);
        padding-left: 2px;
    }
    .by-line-vertical a:hover {
        border-left: 2px solid var(--accent-color);
    }
    .name, .by-line {
        display: none;
    }
    .skull {
        max-width: 30vw;
    }
    .glow {
        width: 100vh;
        height: 100vh;
    }
    .phone-demo-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        position: static;
        transform: none;
        margin-top: 80px;
    }
    .screen-description-portrait {
        display: block;
        position: static;
        transform: none;
        align-self: center;
        width: 66vw;
        padding: 4vw;
        text-align: left;
        transition: opacity 0.6s ease-in-out, height 0.6s ease-in-out;
        overflow: hidden;
        color: var(--primary-color);
        border-radius: 10px;
        background: linear-gradient(to top, var(--gradient-2) 10%, var(--gradient-1) 80%);
    }
    .screen-description-landscape-1, .screen-description-landscape-2, .screen-description-landscape-3, .screen-description-landscape-4 {
        display: none;
    }
    .screen-description h2 {
        font-size: 2em;
        margin-bottom: 10px;
    }
    .screen-description p {
        font-size: 1.2em;
        font-weight: 500;
    }
    .copy {
        width: 74vw;
    }
    .home-page {
        justify-content: flex-start;
    }
    .bottom-gradient {
        display: block;
        z-index: 35;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.8;
        background: linear-gradient(to bottom, transparent 70%, var(--background-color) 90%)
    }
    .platform-toggle-portrait {
        visibility: visible;
        display: flex;
        gap: 0;
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid var(--accent-color);
        background-color: var(--light-color);
        width: fit-content;
        position: absolute;
        top: 50%;
        right: -30px;
        transform: rotate(270deg);
        z-index: 50;
    }
    .platform-toggle {
        visibility: hidden;
    }
}

@media (orientation: portrait) and (max-aspect-ratio: 10 / 16) {
    body {
        background-position-x: 15%;
    }
}

@media (orientation: portrait) and (max-aspect-ratio: 8 / 16) {
    body {
        background-position-x: 19%;
    }
}

.nav-bar {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 30px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex: 0 0 auto;
    z-index: 10;
    position: relative;
}

.mini-skull {
    max-width: 2em;
}

/* Terms and Conditions css */
.main-content {
    color: var(--accent-color);
    overflow: auto;
    margin: 30px;
    padding: 30px;
    background-color: var(--primary-color);
    border-radius: 10px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: calc(100vw - 120px);
    z-index: 50;
    position: relative;
}

.main-content a {
    color: var(--background-color);
    transition: color 0.2s ease-out;
}
.main-content a:hover {
    color: var(--accent-color);
}

/* Support Form Styles */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    width: 100%;
    align-self: center;
}

.support-text {
    align-self: center;
    display: flex;
    flex-direction: column;
    max-width: 500px;
    width: 100%;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.form-group label {
    font-family: 'Chivo Mono', monospace;
}

.form-group input,
.form-group select,
.form-group textarea {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    background: rgba(185, 131, 131, 0.1);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border: 1px solid var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.form-group select option {
    background: #1a1a1a;
}

.submit-button {
    padding: 1rem 2rem;
    background: var(--background-color);
    border: none;
    border-radius: 6px;
    font-family: 'Chivo Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.submit-button:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    box-shadow: 0 4px 12px var(--background-color);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-family: 'Chivo Mono', monospace;
}

/* Floating Skulls Animation */
.floating-skulls-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.floating-skull {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity;
    animation: float infinite ease-in-out, fadeInOut infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(var(--move-x), calc(var(--move-y) * 0.5)) rotate(calc(var(--rotation) * 0.5));
    }
    50% {
        transform: translate(calc(var(--move-x) * 1.5), var(--move-y)) rotate(var(--rotation));
    }
    75% {
        transform: translate(calc(var(--move-x) * 0.5), calc(var(--move-y) * 1.2)) rotate(calc(var(--rotation) * -0.3));
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 0.2;
    }
    85% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
    }
}