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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Elements */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

/* WebP Background Layer (Bottom Layer) */
.background-webp-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('src/assets/images/background-01.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

/* Red Layer Background */
.background-red-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('src/assets/images/red_layer_background-01.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.background-back-full {
    position: absolute;
    width: 2223.63px;
    height: 2224.29px;
    left: -441.32px;
    top: -731px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.background-top-diagonal {
    position: absolute;
    width: 2084.64px;
    height: 2087.10px;
    left: -227px;
    top: -656px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    opacity: 0.05;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Header Styles */
.header {
    position: relative;
    width: 100%;
    height: 94px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo-left {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.logo-right {
    display: flex;
    align-items: center;
}

.resources-text {
    font-family: 'NeueDisplay-Ultra', 'Inter', sans-serif;
    font-weight: normal;
    font-size: 32px;
    color: #ffffff;
    -webkit-text-stroke: 1px #E82E21;
    text-stroke: 1px #E82E21;
    letter-spacing: -0.02em;
}

.header-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.main-content {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 60px;
    min-height: calc(100vh - 94px);
    position: relative;
}

/* Navigation Column - L-shaped layout */
.nav-column {
    display: flex;
    flex-direction: column;
    gap: 35px;
    flex-shrink: 0;
    width: 345px;
    min-width: 345px;
}


.nav-button {
    position: relative;
    width: 345px;
    height: 83px;
    min-width: 345px;
    min-height: 83px;
    background: #E82E21;
    border: none;
    border-radius: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 1px 4px 4px 2px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-button::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;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 1px 8px 8px 4px rgba(0, 0, 0, 0.3);
}

.nav-button:active {
    transform: translateY(0);
    box-shadow: 1px 2px 4px 1px rgba(0, 0, 0, 0.25);
}

.button-text {
    color: white;
    font-family: 'NeueDisplay-Ultra', 'Inter', sans-serif;
    font-weight: normal;
    font-size: 28px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Button-specific positioning */
.workshops-btn .button-text {
    font-size: 28px;
}

.canvas-btn .button-text {
    font-size: 28px;
}

.consultations-btn .button-text {
    font-size: 24px;
}

.bookings-btn .button-text {
    font-size: 28px;
}

.contact-btn .button-text {
    font-size: 28px;
}

/* Terminal Column */
.terminal-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    position: relative;
}

/* Bottom Buttons */
.bottom-buttons {
    display: flex;
    gap: 35px;
    justify-content: space-between;
    width: 100%;
    max-width: 806px;
    min-width: 806px;
    flex-shrink: 0;
}

.terminal {
    width: 806px;
    height: 462px;
    min-width: 806px;
    min-height: 462px;
    background: #000000;
    border-radius: 10px;
    border: 5px solid #838383;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: terminalGlow 3s ease-in-out infinite alternate;
    flex-shrink: 0;
}

@keyframes terminalGlow {
    0% { box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3); }
    100% { box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.5); }
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #2a2a2a;
    border-bottom: 1px solid #838383;
}

.terminal-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.close {
    background: #ff5f56;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #27ca3f;
}

.terminal-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.terminal-content {
    padding: 20px;
    height: calc(100% - 60px);
    overflow: hidden;
}

.terminal-line {
    margin-bottom: 6px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.terminal-line.prompt-command {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.prompt {
    color: #00ff00;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
}

.command {
    color: #ffffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.output {
    color: #cccccc;
    margin-left: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: calc(100% - 20px);
}

.terminal-line.output-link {
    display: flex;
    align-items: flex-start;
}

.terminal-line.output-link .output {
    margin-left: 20px;
    margin-right: 8px;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Terminal link styling */
.terminal-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    text-decoration: none;
    animation: linkBlink 2s infinite;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    margin-left: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

@keyframes linkBlink {
    0%, 50% { 
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }
    51%, 100% { 
        background: rgba(255, 255, 255, 0.4);
        color: #ffffff;
    }
}

.terminal-link:hover {
    background: rgba(255, 255, 255, 0.6);
    animation: none;
}

/* Bottom Buttons */
.bottom-buttons .nav-button {
    width: 240px;
    height: 83px;
    min-width: 240px;
    min-height: 83px;
    flex: 1;
}

.bottom-buttons .button-text {
    font-size: 24px;
}

/* Desktop Layout - Fixed positioning to prevent movement on window scaling */
@media (min-width: 769px) {
    .main-content {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        min-width: 1251px; /* 345px nav + 60px gap + 806px terminal + 40px padding */
        height: auto;
    }
    
    .nav-column {
        display: flex;
        flex-direction: column;
        gap: 35px;
        flex-shrink: 0;
        width: 345px;
        min-width: 345px;
        height: auto;
    }
    
    .nav-button {
        width: 345px;
        height: 83px;
        min-width: 345px;
        min-height: 83px;
        flex-shrink: 0;
    }
    
    .terminal-column {
        flex-shrink: 0;
        width: 806px;
        min-width: 806px;
        height: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 35px;
    }
    
    .terminal {
        width: 806px;
        height: 462px;
        min-width: 806px;
        min-height: 462px;
        flex-shrink: 0;
        margin: 0;
    }
    
    .bottom-buttons {
        display: flex;
        gap: 35px;
        justify-content: space-between;
        width: 806px;
        min-width: 806px;
        flex-shrink: 0;
    }
    
    .bottom-buttons .nav-button {
        width: 240px;
        height: 83px;
        min-width: 240px;
        min-height: 83px;
        flex: 1;
    }
    
    /* Hide mobile-specific elements on desktop */
    .mobile-buttons-container {
        display: none !important;
    }
    
    .mobile-only {
        display: none !important;
    }
    
    /* Show desktop-only elements */
    .desktop-only {
        display: flex !important;
    }
}

/* CLEAN MOBILE/DESKTOP SEPARATION */

/* Hide mobile layout on desktop */
@media (min-width: 769px) {
    .mobile-layout {
        display: none;
    }
    .desktop-layout {
        display: block;
    }
}

/* Hide desktop layout on mobile, show mobile layout */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
    }
    
    .desktop-layout {
        display: none;
    }
    
    .mobile-layout {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* MOBILE HEADER: 10% */
    .mobile-header {
        width: 100%;
        max-width: 100%;
        height: 10vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 8px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .mobile-logo {
        height: 5vh;
        max-height: 25px;
        min-height: 18px;
        flex-shrink: 0;
    }
    
    .mobile-title {
        font-family: 'NeueDisplay-Ultra', 'Inter', sans-serif;
        font-size: 9px;
        color: #E82E21;
        font-weight: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50%;
        flex-shrink: 1;
    }
    
    /* MOBILE TERMINAL: 50% */
    .mobile-terminal {
        width: 100%;
        max-width: 100%;
        height: 50vh;
        padding: 6px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .mobile-terminal {
        background: #000000;
        border-radius: 8px;
        border: 1px solid #838383;
        box-sizing: border-box;
        height: calc(50vh - 12px);
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow: hidden;
    }
    
    .mobile-terminal-header {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        background: #2a2a2a;
        border-bottom: 1px solid #838383;
    }
    
    .mobile-terminal-controls {
        display: flex;
        gap: 6px;
        margin-right: 12px;
    }
    
    .mobile-control {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        cursor: pointer;
    }
    
    .mobile-control.close { background: #ff5f56; }
    .mobile-control.minimize { background: #ffbd2e; }
    .mobile-control.maximize { background: #27ca3f; }
    
    .mobile-terminal-title {
        color: #ffffff;
        font-size: 12px;
        font-weight: 500;
    }
    
    .mobile-terminal-content {
        padding: 12px;
        height: calc(100% - 50px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .mobile-terminal-line {
        margin-bottom: 4px;
        font-family: 'Courier New', monospace;
        font-size: 10px;
        line-height: 1.2;
    }
    
    .mobile-prompt {
        color: #00ff00;
        font-weight: bold;
        margin-right: 6px;
    }
    
    .mobile-command {
        color: #ffffff;
    }
    
    .mobile-output {
        color: #cccccc;
        margin-left: 15px;
    }
    
    .mobile-cursor {
        color: #00ff00;
        animation: blink 1s infinite;
    }
    
    /* MOBILE BUTTONS: 40% */
    .mobile-buttons {
        width: 100%;
        max-width: 100%;
        height: 40vh;
        padding: 6px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 4px;
        overflow: hidden;
    }
    
    .mobile-button-row {
        display: grid;
        gap: 4px;
        height: 50px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .mobile-button-row:not(.mobile-button-row-3) {
        grid-template-columns: 1fr 1fr;
    }
    
    .mobile-button-row-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .mobile-nav-button {
        background: #E82E21;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.25);
        transition: all 0.3s ease;
        box-sizing: border-box;
    }
    
    .mobile-nav-button:active {
        transform: scale(0.95);
        box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
    }
    
    .mobile-button-text {
        color: white;
        font-family: 'NeueDisplay-Ultra', 'Inter', sans-serif;
        font-weight: normal;
        font-size: 8px;
        text-align: center;
        line-height: 1.0;
        padding: 2px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}




/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #E82E21;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 