/* IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Mono&display=swap');

/* CUSTOM FONTS */
@font-face {
    font-family: 'Minecraft';
    src: url('fonts/minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DentraDemo';
    src: url('fonts/DentraDemo-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* CSS VARIABLES */
:root {
    --primary-pink: #FC84D8;
    --pale-yellow: #FFF59D;
    --black: #000;
    --white: #FFF;
    --purple: #6C3E89;
    --dark-navy: #171D3A;
    --light-blue: #7ECEFD;
    --burgundy: #A43030;
    --olive-green: #759036;
    --golden-yellow: #F6DB6E;
    --light-pink: #FFEBFC;
    
    --heading-font: 'Minecraft', 'Press Start 2P', 'VT323', 'Courier Prime', monospace;
    --body-font: 'PT Mono', 'Courier Prime', monospace;
}

/* GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('images/cursor.png') 20 20, auto;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--body-font);
    color: var(--black);
    line-height: 1.6;
}

/* BODY TEXT - USE DENTRA DEMO */
p, li, a, .section-content p, .nested-card-content, #modalDescription, .success-content p, .icon-title {
    font-family: var(--body-font);
}

/* HEADINGS - USE MINECRAFT */
h1, h2, h3, h4, h5, h6, .header-title, .form-title, .section-content h3, .nested-card h4, #modalTitle, .success-content h3 {
    font-family: var(--heading-font);
}

/* OVERRIDE: Nested card content MUST be DentraDemo */
.nested-card-content {
    font-family: var(--body-font) !important;
}

/* OVERRIDE: Modal description MUST be DentraDemo */
#modalDescription {
    font-family: var(--body-font) !important;
}

/* FORCE ALL TEXT IN MODAL TO BE DENTRA - BUT NOT NESTED CARD TITLES */
.modal-content,
.modal-content *,
.modal-content p,
.modal-content span,
.modal-content div,
.nested-card-content,
.nested-card-content *,
.nested-card-content p {
    font-family: var(--body-font) !important;
}

/* ONLY TITLE USES MINECRAFT */
#modalTitle {
    font-family: var(--heading-font) !important;
}

.nested-card h4 {
    font-family: var(--heading-font) !important;
    text-align: center !important;
}

/* ENSURE NESTED CARD H4 STAYS MINECRAFT EVEN WITH WILDCARD OVERRIDES */
.nested-card, .modal-content .nested-card h4 {
    font-family: var(--heading-font) !important;
}

/* BACKGROUND CONTAINER (for custom background) */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
    pointer-events: none;
}

/* FALLBACK BACKGROUND */
body {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
    border-right: 4px solid var(--dark-navy);
    padding: 20px;
    overflow-y: auto;
    z-index: 100;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.sidebar-content {
    text-align: center;
}

.sidebar-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px dashed var(--primary-pink);
}

.sidebar-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.sidebar-subtitle {
    font-size: 24px;
    color: var(--purple);
    letter-spacing: 0.5px;
}

.menu-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-btn {
    background: transparent;
    border: 2px solid var(--primary-pink);
    color: var(--black);
    padding: 8px 10px;
    font-family: var(--heading-font);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: wrap;
    line-height: 1.1;
}

.menu-btn:hover {
    background: var(--primary-pink);
    color: var(--white);
    transform: scale(1.05);
}

/* MENU DIVIDER */
.menu-divider {
    height: 3px;
    background: var(--primary-pink);
    margin: 30px 0;
    opacity: 0.5;
}

/* START LABEL */
.start-label {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-pink);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    background: var(--primary-pink);
    border: 2px solid var(--black);
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    z-index: 101;
    font-family: var(--mono-font);
}

/* MAIN CONTENT */
.main-content {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
    background: transparent;
}

.header {
    text-align: center;
    margin-bottom: 60px;
}

.header-logo-container {
    margin-bottom: 40px;
}

.header-logo {
    max-width: 100%;
    width: 100%;
    max-height: 200px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* HERO IMAGE SECTION */
.hero-image-section {
    margin-bottom: 40px;
    text-align: center;
}

.hero-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* EXPLORE THE SYSTEM HEADING */
.explore-heading {
    font-family: var(--heading-font);
    font-size: 48px;
    color: var(--primary-pink);
    margin: 60px 0 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

/* INTRO SECTIONS */
.intro-sections {
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
}

.intro-text {
    font-family: var(--body-font);
    font-size: 24px;
    color: var(--black);
    line-height: 1.8;
    margin-bottom: 30px;
}

.intro-text strong {
    font-weight: bold;
    color: var(--black);
}

/* CLARITY HEADING & TEXT */
.clarity-heading {
    font-family: var(--heading-font);
    font-size: 44px;
    color: var(--primary-pink);
    margin: 50px 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.clarity-text {
    font-family: var(--body-font);
    font-size: 24px;
    color: var(--black);
    line-height: 1.8;
    margin-bottom: 60px;
}

.header-subtitle {
    font-size: 28px;
    color: var(--purple);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.header-intro {
    font-size: 24px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--black);
}

/* SPIRAL SECTION */
.spiral-section {
    display: flex;
    justify-content: center;
    margin: 60px 0;
}

.spiral-container {
    position: relative;
    width: 700px;
    height: 700px;
    margin: 0 auto;
}

/* SPIRAL BACKGROUND IMAGE */
.spiral-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spiral-bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ELEMENTS CONTAINER */
.elements-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* SPIRAL ELEMENTS - CIRCULAR LAYOUT (NO ROTATION) */
.spiral-element {
    position: absolute;
    top: var(--top, 50%);
    left: var(--left, 50%);
    transform: translate(-50%, -50%);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

/* Animation delays for each element */
.spiral-element[data-id="1"] { animation-delay: 0s; }
.spiral-element[data-id="2"] { animation-delay: 0.1s; }
.spiral-element[data-id="3"] { animation-delay: 0.2s; }
.spiral-element[data-id="4"] { animation-delay: 0.3s; }
.spiral-element[data-id="5"] { animation-delay: 0.4s; }
.spiral-element[data-id="6"] { animation-delay: 0.5s; }
.spiral-element[data-id="7"] { animation-delay: 0.6s; }
.spiral-element[data-id="8"] { animation-delay: 0.7s; }
.spiral-element[data-id="9"] { animation-delay: 0.8s; }
.spiral-element[data-id="10"] { animation-delay: 0.9s; }
.spiral-element[data-id="11"] { animation-delay: 1s; }
.spiral-element[data-id="12"] { animation-delay: 1.1s; }
.spiral-element[data-id="13"] { animation-delay: 1.2s; }

.element-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    z-index: 10;
}

.element-icon:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.icon-title {
    font-family: var(--body-font);
    font-size: 20px;
    color: var(--black);
    text-align: center;
    font-weight: bold;
    max-width: 160px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* FLOATING ANIMATION - Gentle vertical movement */
@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

/* FORM SECTION */
.form-section {
    background: white;
    border: 4px solid var(--primary-pink);
    padding: 40px;
    margin: 60px auto;
    text-align: center;
}

.form-container-with-images {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 40px auto 0;
}

.form-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
}

.mockup-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-pink);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-subtitle {
    font-size: 28px;
    color: var(--black);
    margin-bottom: 25px;
    line-height: 1.6;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.form-input {
    padding: 12px 15px;
    font-family: var(--heading-font);
    font-size: 24px;
    border: 2px solid var(--primary-pink);
    background: var(--white);
    color: var(--black);
    border-radius: 0;
}

.form-input::placeholder {
    color: #ccc;
}

.form-button {
    padding: 12px 15px;
    background: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    color: var(--white);
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.form-button:hover {
    background: var(--black);
    border-color: var(--black);
}

/* WAITLIST BUTTON (end of page) */
.waitlist-btn {
    padding: 16px 32px;
    background: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    color: var(--white);
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.waitlist-btn:hover {
    background: var(--black);
    border-color: var(--black);
    transform: scale(1.05);
}

/* RESPONSIVE: Three-column layout on tablet/mobile */
@media (max-width: 1024px) {
    .form-container-with-images {
        flex-direction: column;
        gap: 30px;
    }

    .form-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .mockup-img {
        max-width: 100%;
    }

    .waitlist-form {
        width: 100%;
        max-width: none;
    }

    .clarity-section h2 {
        font-size: 36px;
    }

    .clarity-section p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .form-container-with-images {
        flex-direction: column;
    }

    .form-image {
        width: 100%;
    }

    .clarity-section {
        padding: 40px 20px;
    }

    .clarity-section h2 {
        font-size: 28px;
    }

    .clarity-section p {
        font-size: 18px;
    }

    .form-section {
        padding: 30px 20px;
    }
}

/* TOGGLE BUTTON */
.toggle-button {
    display: block;
    margin: 40px auto;
    padding: 12px 30px;
    background: var(--primary-pink);
    border: 2px solid var(--black);
    color: var(--white);
    font-family: var(--heading-font);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.toggle-button:hover {
    background: var(--black);
    color: var(--primary-pink);
    transform: scale(1.05);
}

/* EXPANDABLE CONTENT */
.expandable-content {
    max-width: 600px;
    margin: 0 auto 60px;
    display: none; /* HIDDEN BY DEFAULT */
}

.section-content {
    background: white;
    border: 3px solid var(--primary-pink);
    padding: 30px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content h3 {
    font-size: 40px;
    color: var(--primary-pink);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-content p {
    font-size: 24px;
    line-height: 1.8;
    color: var(--black);
    margin-bottom: 12px;
}

.section-content ul {
    font-size: 24px;
    line-height: 1.8;
    color: var(--black);
    list-style: none;
    padding-left: 15px;
}

.section-content ul li {
    margin-bottom: 10px;
}

/* OVERLAY MODAL */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.modal {
    background: white;
    border: 4px solid var(--primary-pink);
    padding: 40px;
    max-width: 600px;
    text-align: center;
    position: relative;
    animation: modalSlide 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px 0;
    font-family: var(--body-font) !important;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.modal-icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 48px;
    cursor: pointer;
    color: var(--primary-pink);
    line-height: 1;
}

.close-btn:hover {
    transform: scale(1.2);
}

.modal-content {
    text-align: left;
    font-family: var(--body-font) !important;
}

.modal-content strong {
    font-weight: bold;
    color: var(--primary-pink);
}

#modalTitle {
    font-family: var(--heading-font) !important;
    font-size: 40px;
    color: var(--primary-pink);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

#modalDescription {
    font-family: var(--body-font) !important;
    font-size: 24px;
    color: var(--black);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* NESTED CARDS */
.nested-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.nested-card {
    background: #f9f9f9;
    border: 2px solid var(--primary-pink);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.nested-card:hover {
    background: var(--primary-pink);
    color: var(--white);
    transform: translateX(5px);
}

.nested-card h4 {
    font-size: 24px;
    color: var(--primary-pink);
    margin-bottom: 10px;
    font-family: var(--heading-font) !important;
    text-align: center;
}

.nested-card:hover h4 {
    color: var(--white);
}

.nested-card-content {
    font-size: 20px;
    line-height: 1.6;
    display: none;
    margin-top: 15px;
    color: var(--black);
    font-family: var(--body-font) !important;
}

.nested-card-content p {
    margin-bottom: 10px;
    font-size: 20px;
    font-family: var(--body-font) !important;
}

.nested-card.expanded .nested-card-content {
    display: block;
}

.nested-card.expanded {
    background: var(--white);
    border: 3px solid var(--primary-pink);
    padding: 25px;
}

/* SUCCESS OVERLAY */
.success-modal {
    border: 4px solid var(--primary-pink);
    background: white;
    padding: 60px 40px;
    max-width: 600px;
    text-align: center;
}

.success-content h3 {
    font-family: var(--heading-font) !important;
    font-size: 48px;
    color: var(--primary-pink);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.success-content p {
    font-family: var(--body-font) !important;
    font-size: 28px;
    color: var(--black);
    line-height: 1.8;
    margin-bottom: 20px;
}

.success-content strong {
    color: var(--primary-pink);
    font-weight: bold;
}

.success-content a {
    color: var(--primary-pink) !important;
    text-decoration: none !important;
    font-weight: bold !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.success-content a:hover {
    text-decoration: underline !important;
}

footer a {
    color: #FC84D8 !important;
    text-decoration: none !important;
    font-weight: bold !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

footer a:hover {
    text-decoration: underline !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
        padding: 20px;
    }
    
    .spiral-container {
        width: 400px;
        height: 400px;
    }
    
    .header-title {
        font-size: 40px;
    }
    
    .header-intro {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .spiral-container {
        width: 600px;
        height: 600px;
    }
    
    .icon-img {
        width: 80px;
        height: 80px;
    }
    
    .icon-title {
        font-size: 14px;
    }
    
    .center-spiral-img {
        width: 100px;
        height: 100px;
    }
    
    .header-title {
        font-size: 36px;
    }
    
    .header-intro {
        font-size: 18px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .section-content {
        padding: 20px;
    }
    
    .nested-card {
        padding: 15px;
    }
    
    .nested-card h4 {
        font-size: 20px;
    }
    
    .nested-card-content {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .sidebar-title {
        font-size: 24px;
    }
    
    .menu-btn {
        font-size: 18px;
        padding: 6px 8px;
    }
    
    .spiral-container {
        width: 750px;
        height: 750px;
    }
    
    .element-icon {
        padding: 6px;
    }
    
    .icon-img {
        width: 40px;
        height: 40px;
    }
    
    .header-title {
        font-size: 32px;
    }
    
    .header-intro {
        font-size: 16px;
    }
    
    .form-title {
        font-size: 36px;
    }
    
    .form-subtitle {
        font-size: 20px;
    }
    
    .form-input {
        font-size: 18px;
    }
    
    .form-button {
        font-size: 18px;
    }
    
    .toggle-button {
        font-size: 24px;
        padding: 10px 20px;
    }
    
    .section-content h3 {
        font-size: 28px;
    }
    
    .section-content p {
        font-size: 18px;
    }
    
    .section-content ul {
        font-size: 18px;
    }
    
    .modal {
        max-width: 90%;
    }
    
    #modalTitle {
        font-size: 28px;
    }
    
    #modalDescription {
        font-size: 18px;
    }
    
    .success-content h3 {
        font-size: 36px;
    }
    
    .success-content p {
        font-size: 20px;
    }
}