/* Import IBM Plex Sans font only */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap');

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

html {
    background: none;
}

/* Global nearest neighbor scaling for all images and canvas elements */
img, canvas {
    /* Most aggressive pixelated rendering possible */
    image-rendering: -moz-crisp-edges !important;
    image-rendering: -webkit-crisp-edges !important;
    image-rendering: -webkit-optimize-contrast !important; 
    image-rendering: -o-crisp-edges !important;
    image-rendering: pixelated !important;
    image-rendering: crisp-edges !important;
    -ms-interpolation-mode: nearest-neighbor !important;
    
    /* Disable all smoothing and acceleration */
    -webkit-font-smoothing: none !important;
    -moz-osx-font-smoothing: unset !important;
    -webkit-backface-visibility: hidden !important;
    -webkit-transform: translate3d(0,0,0) !important;
    transform: translate3d(0,0,0) !important;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: none;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Disable text selection on all elements */
* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Background and Canvas */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: filter 0.5s ease;
    background: none;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: none;
}

.background-image.active {
    opacity: 1;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    background: none;
    
    /* Force no smoothing at all */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    
    /* Remove any browser interference */
    transform: none;
    filter: none;
}

.background-image.active {
    opacity: 1;
}

/* Blur layer - sits between drawing and backgrounds */
.blur-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.blur-layer.active {
    opacity: 1;
    background: rgba(34, 68, 68, 0.4); /* Dark teal overlay for better text legibility */
}



#drawingCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    cursor: crosshair;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#drawingCanvas.drawing-mode {
    cursor: crosshair;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 5;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 40px 140px 40px;
    background: none;
    pointer-events: none;
}

.content-wrapper > * {
    pointer-events: auto;
}

/* Header - ASCII Style */
.main-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 6;
    pointer-events: none;
}

.main-header .header-image {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    /* Apply pixelated rendering */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

.main-header h1 {
    font-size: clamp(3rem, 7.5vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Navigation - ASCII Style */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 6;
    pointer-events: none;
}

.nav-link {
    display: inline-block;
    padding: 0px;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.nav-icon {
    width: 64px;
    height: 64px;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}



.nav-link:hover {
    filter: brightness(1.2) saturate(1.1);
    transform: translateY(-2px);
}

.nav-link:active {
    transform: translateY(0);
    filter: brightness(0.8) saturate(1.3);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.body-text {
    text-align: center;
    line-height: 1.8;
    position: relative;
    z-index: 5;
    transition: all 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.body-text.hidden {
    opacity: 0;
    transform: translateY(-20px);
    height: 0;
    overflow: hidden;
}

.body-text p {
    font-size: clamp(1.5rem, 3.75vw, 2.1rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Footer */
.main-footer {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 6;
    pointer-events: none;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Copyright (side by side with progress bar) */
.copyright {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.copyright-image {
    max-height: 40px;
    height: auto;
    opacity: 0.7;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

/* Hidden Email - ASCII Style */
.hidden-email {
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.hidden-email.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hidden-email a {
    color: #fff;
    text-decoration: none;
    font-size: 1.65rem;
    pointer-events: auto;
    font-weight: 500;
    padding: 10px 20px;
    border: 5px solid #55aaaa;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: none;
    background: rgba(0, 0, 0, 0.8);
    font-family: 'IBM Plex Sans', sans-serif;
}

.hidden-email a::before {
    content: "[> ";
    color: #55aaaa;
}

.hidden-email a::after {
    content: " <]";
    color: #55aaaa;
}

.hidden-email a:hover {
    background: #55aaaa;
    color: #000;
    transform: translateY(-2px);
}



/* Bottom Layout Container */
.bottom-layout {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 60px;
    width: auto;
    max-width: 90vw;
}

/* Progress Bar */
.progress-container {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 6;
    transition: all 0.5s ease;
    font-family: 'IBM Plex Sans', sans-serif;
}

.progress-bar {
    width: 400px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 5px solid #55aaaa;
    position: relative;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'IBM Plex Sans', sans-serif;
    overflow: visible;
}

.progress-bar::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #55aaaa;
    font-size: 18px;
    line-height: 1;
    white-space: pre;
    pointer-events: none;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #55aaaa;
    transition: width 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-fill::before {
    content: "████████████████████████████████████████████████████████████████████████████████████████████████";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #55aaaa;
    font-size: 15px;
    line-height: 2.5;
    white-space: pre;
    overflow: hidden;
    display: flex;
    align-items: center;
}



.send-button {
    width: 400px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 5px solid #55aaaa;
    position: relative;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'IBM Plex Sans', sans-serif;
    overflow: visible;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: normal;
    display: none;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    opacity: 0.8;
}

.send-button.active {
    display: flex;
}

/* Hide progress bar when in send mode */
.progress-container.send-mode .progress-bar {
    display: none;
}

.progress-container.send-mode .progress-fill {
    display: none;
}

.progress-container.complete .progress-bar {
    transform: scaleY(1.2);
    animation: asciiTransform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes asciiTransform {
    0% { transform: scaleY(1) scaleX(1); }
    50% { transform: scaleY(0.8) scaleX(1.1); }
    100% { transform: scaleY(1.2) scaleX(1); }
}

.progress-container.complete .progress-fill {
    background: #ff0000;
}

/* Red Overlay Effect with Intensity Levels */
.red-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.3);
    z-index: 8;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.red-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Red overlay intensity levels */
.red-overlay.light {
    background: rgba(255, 0, 0, 0.15);
}

.red-overlay.medium {
    background: rgba(255, 0, 0, 0.3);
}

.red-overlay.heavy {
    background: rgba(255, 0, 0, 0.45);
}

.red-overlay.extreme {
    background: rgba(255, 0, 0, 0.6);
}

/* ASCII Art Shake Animation with Intensity Levels */
.shake {
    animation: asciiShake 0.5s ease-in-out;
}

.shake-light {
    animation: asciiShakeLight 0.3s ease-in-out;
}

.shake-medium {
    animation: asciiShakeMedium 0.5s ease-in-out;
}

.shake-heavy {
    animation: asciiShakeHeavy 0.7s ease-in-out;
}

.shake-extreme {
    animation: asciiShakeExtreme 1s ease-in-out;
}

/* Light shake - 3px displacement */
@keyframes asciiShakeLight {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Medium shake - 5px displacement (default) */
@keyframes asciiShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes asciiShakeMedium {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Heavy shake - 8px displacement */
@keyframes asciiShakeHeavy {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Extreme shake - 12px displacement with Y-axis */
@keyframes asciiShakeExtreme {
    0%, 100% { transform: translate(0, 0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-12px, -2px); }
    20%, 40%, 60%, 80% { transform: translate(12px, 2px); }
    15%, 35%, 55%, 75% { transform: translate(-8px, 3px); }
    25%, 45%, 65%, 85% { transform: translate(8px, -3px); }
}



/* Mark Counter (Hidden) */
.mark-counter {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 16px;
    border: 5px solid #55aaaa;
    font-size: 11px;
    font-weight: 500;
    z-index: 8;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'IBM Plex Sans', monospace;
    min-width: 200px;
    display: none; /* Keep hidden */
}

.mark-counter.visible {
    opacity: 0; /* Keep hidden even when "visible" */
}

/* Final White Effect */
.final-complete {
    background: #fff !important;
}

.final-complete .background-container {
    background: #fff;
}

.final-complete .content-wrapper {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.final-complete h1,
.final-complete .nav-link,
.final-complete p,
.final-complete a {
    color: #000 !important;
    text-shadow: none !important;
}

/* ASCII Art Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #000;
    color: #fff;
    border: 5px solid #55aaaa;
    padding: 30px;
    font-family: 'IBM Plex Sans', sans-serif;
    position: relative;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-large {
    max-width: 800px;
}

.modal-content h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 30px;
    margin-bottom: 20px;
    color: #55aaaa;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ASCII Art Form Elements */
.name-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.form-section h3,
.preview-section h3 {
    color: #55aaaa;
    margin-bottom: 15px;
    font-size: 13px;
    font-family: 'IBM Plex Sans', monospace;
    font-weight: 600;
}

.form-section h3::before,
.preview-section h3::before {
    content: ">> ";
    color: #ff0000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'IBM Plex Sans', monospace;
    font-size: 11px;
    color: #55aaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group label::before {
    content: "> ";
    color: #ff0000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 5px solid #55aaaa;
    color: #fff;
    font-family: 'IBM Plex Sans', monospace;
    font-size: 11px;
    resize: vertical;
}

.form-group textarea {
    min-height: 80px;
    max-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(85, 170, 170, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
    font-style: italic;
}

.char-counter {
    font-family: 'IBM Plex Sans', monospace;
    font-size: 11px;
    color: #55aaaa;
    text-align: right;
    margin-top: 5px;
    font-weight: 500;
}

.char-counter.warning {
    color: #ff0000;
}

.char-counter.danger {
    color: #ff0000;
    font-weight: bold;
}

/* ASCII Art Drawing Preview */
.drawing-preview {
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#nameModalCanvas {
    border: 5px solid #55aaaa;
    background: #fff;
    max-width: 100%;
    height: 270px;
    width: auto;
    display: block;
    margin: 0 auto 20px auto;
    object-fit: contain;
    
    /* Nearest neighbor scaling for modal canvas */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

.preview-note {
    font-family: 'IBM Plex Sans', monospace;
    font-size: 11px;
    color: #aaa;
    margin-top: 10px;
    font-style: italic;
    font-weight: 500;
}

.preview-note::before {
    content: "* ";
    color: #ff0000;
}

/* ASCII Art Buttons */
.form-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: 5px solid #55aaaa;
    background: #000;
    color: #fff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}



.btn-primary {
    background: #55aaaa;
    border-color: #55aaaa;
    color: #000;
}

.btn-primary:hover {
    background: #55aaaa;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #000;
    border-color: #55aaaa;
    color: #fff;
}

.btn-secondary:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-success {
    background: #55aaaa;
    border-color: #55aaaa;
    color: #000;
}

.btn-success:hover {
    background: #55aaaa;
    transform: translateY(-2px);
}

/* ASCII Art Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    font-family: 'IBM Plex Sans', monospace;
    color: #fff;
}

.loading-content p {
    font-size: 12px;
    margin-top: 20px;
    color: #55aaaa;
}

/* Success Modal - Center all content */
#successModal .modal-content {
    text-align: center;
}

#successModal .modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

#successModal .modal-content p {
    margin-bottom: 25px;
    text-align: center;
    font-size: 16px;
}

#successModal .modal-content button {
    margin: 0 auto;
    display: block;
}

/* ASCII Art Spinner */
.spinner {
    font-family: 'IBM Plex Sans', monospace;
    font-size: 18px;
    color: #55aaaa;
    animation: asciiSpin 1s linear infinite;
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #55aaaa;
}

@keyframes asciiSpin {
    0% { content: "◐"; }
    25% { content: "◓"; }
    50% { content: "◑"; }
    75% { content: "◒"; }
    100% { content: "◐"; }
}

.spinner::before {
    content: "◐";
}

/* Email Copied Popup */
.email-copied-popup {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 24px;
    border: 5px solid #55aaaa;
    font-size: 11px;
    font-weight: 500;
    z-index: 9;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'IBM Plex Sans', monospace;
    pointer-events: none;
}

.email-copied-popup.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.email-copied-popup span {
    display: block;
    text-align: center;
}

/* Email Confirmation Popup */
.email-confirmation-popup {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 16px 24px;
    border: 5px solid #55aaaa;
    font-size: 11px;
    font-weight: 500;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'IBM Plex Sans', monospace;
    pointer-events: none;
}

.email-confirmation-popup.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.email-confirmation-popup span {
    display: block;
    text-align: center;
    margin-bottom: 12px;
}

.confirmation-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.confirm-btn {
    background: #55aaaa;
    color: #000;
    border: 2px solid #55aaaa;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'IBM Plex Sans', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.confirm-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.confirm-btn.cancel {
    background: transparent;
    color: #fff;
    border-color: #666;
}

.confirm-btn.cancel:hover {
    background: #666;
    color: #fff;
    border-color: #666;
}

/* Mobile Responsive ASCII Art */

/* Mobile detection and better responsive layout */
@media screen and (max-width: 768px) {
    /* Force mobile browsers to respect our layout */
    html, body {
        overflow-x: hidden;
        -webkit-text-size-adjust: none;
        -ms-text-size-adjust: none;
        text-size-adjust: none;
    }
    
    .content-wrapper {
        padding: 15px 15px 120px 15px;
        display: flex;
        flex-direction: column;
        height: 100vh;
        justify-content: center;
    }
    
    /* Header adjustments */
    .main-header {
        margin-bottom: 15px;
    }
    
    .main-header .header-image {
        max-height: 80px;
    }
    
    /* Navigation - ALWAYS horizontal on mobile, never column */
    .main-nav {
        display: flex;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .nav-link {
        font-size: 0.75rem;
        flex-shrink: 0;
    }
    
    .nav-icon {
        width: 32px;
        height: 32px;
    }
    
    /* Content area - better use of vertical space */
    .main-content {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px 0;
        max-width: none;
    }
    
    .body-text p {
        margin-bottom: 1.5rem;
        font-size: clamp(18px, 4.5vw, 24px);
        line-height: 1.6;
        font-family: 'IBM Plex Sans', sans-serif;
    }
    
    /* Modal adjustments */
    .modal-content {
        padding: 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-large {
        max-width: 95%;
    }
    
    .name-form-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    /* Bottom layout for mobile */
    .bottom-layout {
        bottom: 20px;
        gap: 30px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 95vw;
    }
    
    .progress-bar {
        width: 280px;
        height: 40px;
    }
    
    .send-button {
        width: 280px;
        height: 40px;
        font-size: 14px;
    }
}

/* Mobile landscape - better layout without rotation */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .content-wrapper {
        flex-direction: row;
        align-items: center;
        padding: 10px 15px;
        gap: 20px;
    }
    
    .main-header {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .main-header .header-image {
        max-height: 60px;
    }
    
    .main-nav {
        flex-direction: column;
        margin-bottom: 0;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .nav-icon {
        width: 28px;
        height: 28px;
    }
    
    .main-content {
        flex: 1;
        padding: 0;
    }
    
    .body-text p {
        font-size: 14px;
        margin-bottom: 0.5rem;
    }
}

/* Smaller mobile devices */
@media screen and (max-width: 480px) {
    .content-wrapper {
        padding: 10px 10px 100px 10px;
        justify-content: center;
    }
    
    .main-content {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
        max-width: none;
    }
    
    .main-header .header-image {
        max-height: 60px;
    }
    
    .main-nav {
        gap: 0.75rem;
    }
    
    .nav-icon {
        width: 28px;
        height: 28px;
    }
    
    .nav-link {
        /* Border removed - using tinting for states */
    }
    
    .body-text p {
        font-size: clamp(16px, 4vw, 20px);
        margin-bottom: 1.2rem;
        line-height: 1.5;
        font-family: 'IBM Plex Sans', sans-serif;
    }
    
    .modal-content {
        padding: 15px;
        width: 98%;
    }
    
    /* Smaller mobile - stack vertically */
    .bottom-layout {
        gap: 20px;
        flex-direction: column;
        align-items: center;
        bottom: 15px;
    }

    .progress-bar {
        width: 250px;
        height: 35px;
    }

    .send-button {
        width: 250px;
        height: 35px;
        font-size: 12px;
    }
}

/* Ultra-wide mobile landscape - horizontal layout */
@media screen and (max-width: 932px) and (max-height: 430px) and (orientation: landscape) {
    .content-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
    }
    
    .main-header {
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .main-header .header-image {
        max-height: 50px;
    }
    
    .main-nav {
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .main-content {
        flex: 1;
        max-width: 400px;
    }
    
    .body-text p {
        font-size: clamp(14px, 3vw, 16px);
        margin-bottom: 0.7rem;
        line-height: 1.4;
        font-family: 'IBM Plex Sans', sans-serif;
    }
} 
