/* Import fonts */
@font-face {
    font-family: 'Conthrax';
    src: url('assets/fonts/conthrax-sb.otf') format('opentype');
}

@font-face {
    font-family: 'Jura';
    src: url('assets/fonts/Jura-VariableFont_wght.ttf') format('truetype');
}

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

/* Base */
body {
    font-family: 'Jura', sans-serif;
    background: #000000;
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hexagon Grid Background */
.hex-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000000;
    overflow: hidden;
}

.hex-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='%23037C76' fill-opacity='0.25' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/svg%3E");
    opacity: 0.8;
}

/* Shimmer effect overlay */
.hex-background::after {
    content: '';
    position: absolute;
    top: -200%;
    left: -200%;
    width: 400%;
    height: 400%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 40%,
        rgba(3, 124, 118, 0.12) 45%,
        rgba(3, 124, 118, 0.2) 50%,
        rgba(3, 124, 118, 0.12) 55%,
        transparent 60%,
        transparent 100%
    );
    animation: hexShimmer 12s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes hexShimmer {
    0% {
        transform: translate(25%, 25%);
    }
    50% {
        transform: translate(0%, 0%);
    }
    100% {
        transform: translate(25%, 25%);
    }
}

/* Carousel Wrapper - Full Screen */
.carousel-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 20px 20px;
    text-align: center;
    position: relative;
    overflow-y: auto;
}

/* Title */
.title {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 200px;
    margin-bottom: 20px;
    mix-blend-mode: screen; /* Makes black transparent */
    object-fit: contain; /* Never stretch, always maintain aspect ratio */
}

/* Tagline */
.tagline {
    font-size: 1.4rem;
    color: #B0B0B0;
    margin-bottom: 50px;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

/* CTA Section - Styled as Game Card */
.cta-section {
    position: relative;
    background: #02081C; /* Game card dark background */
    border: 2px solid rgba(255, 255, 255, 0.18); /* Game card border */
    border-radius: 12px;
    padding: 0; /* Remove padding for card structure */
    max-width: 400px; /* Card width */
    width: 100%;
    margin: 0 auto; /* Center the card */
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.7); /* Card shadow */
    animation: fadeInUp 1s ease-out 0.7s both;
    overflow: hidden;
}

/* Card Image Container */
.card-image-container {
    width: 100%;
    height: 240px;
    position: relative;
    z-index: 1;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

/* Animated holographic gradient overlay */
.cta-section::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        135deg,
        rgba(3, 124, 118, 0.2),
        rgba(250, 64, 142, 0.2),
        rgba(250, 217, 26, 0.2),
        rgba(3, 124, 118, 0.2),
        rgba(250, 64, 142, 0.2),
        rgba(250, 217, 26, 0.2),
        rgba(3, 124, 118, 0.2)
    );
    animation: holographicShimmer 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes holographicShimmer {
    0% {
        transform: translate(0%, 0%);
    }
    50% {
        transform: translate(-33%, -33%);
    }
    100% {
        transform: translate(0%, 0%);
    }
}

.cta-section > *:not(.card-image-container) {
    position: relative;
    z-index: 1;
}

.cta-heading {
    font-family: 'Conthrax', sans-serif;
    font-size: 1.8rem;
    color: #FA408E;
    margin: 0 30px 10px 30px;
    text-shadow: 0 0 20px rgba(250, 64, 142, 0.5);
}

.cta-subtext {
    font-size: 1.1rem;
    color: #B0B0B0;
    margin: 0 30px 30px 30px; /* Add side margins, keep bottom spacing */
}

/* Form */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding: 0 30px 30px 30px; /* Bottom padding for card */
}

.email-input {
    width: 100%;
    max-width: 350px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(3, 124, 118, 0.5);
    color: #FFFFFF;
    font-size: 1rem;
    font-family: 'Jura', sans-serif;
    border-radius: 8px;
    transition: all 0.3s;
}

.email-input:focus {
    outline: none;
    border-color: #037C76;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(3, 124, 118, 0.2);
}

.email-input::placeholder {
    color: #666;
}

.submit-btn {
    width: 100%;
    max-width: 350px;
    padding: 16px 30px;
    background: linear-gradient(135deg, #037C76, #FA408E);
    border: none;
    color: #FFFFFF;
    font-family: 'Conthrax', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(250, 64, 142, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

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

/* Message */
.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    display: none;
    font-size: 0.95rem;
}

.form-message.success {
    display: block;
    color: #00FF88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.form-message.error {
    display: block;
    color: #FF4444;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* Store Buttons */
.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 30px 15px 30px;
    align-items: center;
}

.store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.app-store-btn {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-color: rgba(255, 255, 255, 0.2);
    padding-left: 14px; /* offset to center content */
}

.play-store-btn {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-color: rgba(255, 255, 255, 0.2);
    padding-left: 15px; /* offset to center content */
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 64, 142, 0.3);
    border-color: rgba(250, 64, 142, 0.5);
}

.store-icon {
    width: 32px;
    height: 32px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.store-label {
    font-size: 0.7rem;
    color: #B0B0B0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-name {
    font-family: 'Conthrax', sans-serif;
    font-size: 1.1rem;
    color: #FFFFFF;
    letter-spacing: 0.02em;
}

/* Discord link */
.discord-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    padding: 5px 20px;
    color: #00FFE0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.discord-link:hover {
    color: #FFFFFF;
    background: rgba(88, 101, 242, 0.2);
}

.discord-icon {
    width: 22px;
    height: 22px;
}


/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Wider to accommodate arrows outside */
    min-height: 600px;
    margin: 50px auto;
    padding: 0 80px; /* Space for arrows on sides */
}

/* Carousel Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateX(100%);
    width: calc(100% - 160px); /* Account for arrow padding */
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(-50%);
    pointer-events: auto;
}

.carousel-slide.prev {
    transform: translateX(-50%) translateX(-100%);
}

.carousel-slide.next {
    transform: translateX(-50%) translateX(100%);
}

/* Carousel Navigation Arrows (in-game style) */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.carousel-arrow svg {
    width: 60px;
    height: 60px;
}

.carousel-arrow:hover {
    opacity: 1;
}

.arrow-left {
    left: 0;
}

.arrow-right {
    right: 0;
}

/* Mobile nav hidden on desktop */
.mobile-nav {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex !important;
    }
}

/* Video Section */
.video-section {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.video-heading {
    font-family: 'Conthrax', sans-serif;
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 9/16; /* YouTube Shorts aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.18);
}

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

/* Pricing Section */
.pricing-section {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 60px 20px 40px;
    text-align: center;
}

.pricing-title {
    font-family: 'Conthrax', sans-serif;
    font-size: 2rem;
    color: #FFFFFF;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: #B0B0B0;
    margin-bottom: 50px;
}

.pricing-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    flex: 1;
    max-width: 280px;
    background: #02081C;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card-inner {
    position: relative;
    z-index: 1;
    padding: 36px 24px;
}

/* Card accent colors */
.pricing-card.quarterly {
    border-color: rgba(3, 124, 118, 0.4);
}

.pricing-card.quarterly:hover {
    box-shadow: 0 8px 30px rgba(3, 124, 118, 0.25);
}

.pricing-card.quarterly .plan-name {
    color: #037C76;
}

.pricing-card.quarterly .plan-price {
    text-shadow: 0 0 20px rgba(3, 124, 118, 0.4);
}

.pricing-card.annual {
    border-color: rgba(250, 64, 142, 0.5);
}

.pricing-card.annual:hover {
    box-shadow: 0 8px 30px rgba(250, 64, 142, 0.3);
}

.pricing-card.annual .plan-name {
    color: #FA408E;
}

.pricing-card.annual .plan-price {
    text-shadow: 0 0 20px rgba(250, 64, 142, 0.4);
}

.pricing-card.lifetime {
    border-color: rgba(250, 217, 26, 0.4);
}

.pricing-card.lifetime:hover {
    box-shadow: 0 8px 30px rgba(250, 217, 26, 0.2);
}

.pricing-card.lifetime .plan-name {
    color: #FAD91A;
}

.pricing-card.lifetime .plan-price {
    text-shadow: 0 0 20px rgba(250, 217, 26, 0.4);
}

/* Featured card (annual) */
.pricing-card.featured {
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FA408E, #ff6bab);
    color: #FFFFFF;
    font-family: 'Conthrax', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 0;
    z-index: 2;
}

.plan-name {
    font-family: 'Conthrax', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.plan-price {
    font-family: 'Conthrax', sans-serif;
    font-size: 2.8rem;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.plan-period {
    font-size: 0.95rem;
    color: #808080;
    margin-bottom: 8px;
}

.plan-savings {
    display: inline-block;
    font-size: 0.8rem;
    color: #00FF88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 12px;
}

.plan-desc {
    font-size: 0.9rem;
    color: #B0B0B0;
    line-height: 1.5;
    margin-top: 8px;
}

/* Pricing CTA (store buttons) */
.pricing-cta {
    margin-top: 40px;
}

.pricing-cta .store-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    padding: 0;
}

/* Footer Social Icons */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-socials a {
    color: #00FFE0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-socials a:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    margin-top: 60px;
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(0, 255, 224, 0.2);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #00FFE0;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
}

.footer .separator {
    color: #666;
}

.footer-copyright {
    color: #808080;
    font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 20px 15px 20px;
    }

    .title {
        max-height: 120px;
        margin-bottom: 10px;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .cta-section {
        padding: 0;
    }

    /* Image fills width with consistent padding */
    .card-image-container {
        height: auto;
        padding: 15px;
    }

    .card-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    .cta-heading {
        font-size: 1.4rem;
        margin: 15px 20px 8px 20px;
    }

    .cta-subtext {
        font-size: 0.95rem;
        margin: 0 20px 20px 20px;
    }

    .video-heading {
        font-size: 1.5rem;
    }

    .video-container {
        max-width: 100%;
    }

    .store-buttons {
        padding: 0 15px 15px 15px;
    }

    .store-btn {
        max-width: 100%;
        padding: 12px 16px;
    }

    .store-icon {
        width: 28px;
        height: 28px;
    }

    .store-name {
        font-size: 1rem;
    }

    /* Mobile: card takes full width */
    .carousel-container {
        padding: 0;
        margin: 0 auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .carousel-slide {
        position: relative;
        width: 100%;
        transform: none;
        left: 0;
        opacity: 1;
        pointer-events: auto;
    }

    .carousel-slide:not(.active) {
        display: none;
    }

    .carousel-slide.active {
        display: block;
        transform: none;
    }

    /* Hide the overlay arrows on mobile */
    .carousel-arrow {
        display: none !important;
    }

    /* Mobile navigation link styling */
    .mobile-nav {
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        padding: 12px 24px;
        color: #00FFE0;
        font-size: 0.95rem;
        cursor: pointer;
        transition: opacity 0.3s;
    }

    .mobile-nav:hover {
        opacity: 0.8;
    }

    .mobile-nav svg {
        width: 20px;
        height: 20px;
    }

    /* Pricing mobile */
    .pricing-section {
        padding: 40px 15px 20px;
        margin-top: 20px;
    }

    .pricing-title {
        font-size: 1.4rem;
    }

    .pricing-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .pricing-card {
        max-width: 100%;
        width: 100%;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .pricing-card-inner {
        padding: 28px 20px;
    }

    .pricing-badge {
        padding: 5px 0;
    }

    .plan-price {
        font-size: 2.2rem;
    }

    .pricing-cta .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Footer visible on mobile */
    .footer {
        margin-top: 30px;
        padding: 20px 15px;
    }

    .footer-links a {
        margin: 0 8px;
        font-size: 0.8rem;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }
}