:root {
    --depth: 5000px;
    --bg-color: #030303;
    --cyan: #22d3ee;
    --navy: #1e3a8a;
    --lime: #a3e635;
    --yellow: #facc15;
    --red: #f87171;
    --purple: #c084fc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: #ffffff;
    height: var(--depth);
    margin: 0;
    overflow-x: hidden;
}

#viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    perspective: 1000px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #030303 100%);
}

#world {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.section-room {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    opacity: 0;
}

/* Industrial Grid Floor */
.floor-grid {
    position: absolute;
    top: 50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    transform: rotateX(90deg) translateZ(-300px);
    transform-style: preserve-3d;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 0px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 7s ease-in-out infinite 1s;
}

.fog {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #030303 90%);
    pointer-events: none;
    z-index: 50;
}

.custom-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
    transition: all 0.3s;
}

.custom-input:focus {
    outline: none;
    border-bottom: 1px solid var(--cyan);
}

.custom-input.error {
    border-bottom: 1px solid var(--red);
}

.custom-input.success {
    border-bottom: 1px solid var(--lime);
}

/* Mobile: Maximum contrast for inputs */
@media (max-width: 768px) {
    .custom-input {
        color: #ffffff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
    
    .custom-input:focus {
        border-bottom: 1px solid var(--cyan) !important;
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }
    
    .custom-input::placeholder {
        color: #a1a1aa !important;
        opacity: 1;
    }
}

/* Pattern Classes based on Logo */
.pattern-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 10px 10px;
}

.glass-panel {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

h1, h2, h3 {
    letter-spacing: -0.04em;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--cyan);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Custom Checkbox */
.checkbox-wrapper input:checked + div {
    background-color: var(--cyan);
    border-color: var(--cyan);
    color: black;
}

/* Step line for process */
.step-line {
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--lime), transparent);
    z-index: 0;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-overlay {
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Menu Links */
.mobile-menu-link {
    display: block;
    text-decoration: none;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Better touch targets */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve text readability on mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Better scrolling on mobile */
    #viewport {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text size adjustment on iOS */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* Better form inputs on mobile */
    .custom-input {
        font-size: 16px !important;
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
    }
    
    /* Submit button optimization */
    #submit-btn {
        min-height: 48px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 20px rgba(34, 211, 238, 0.4) !important;
    }
    
    /* Form spacing */
    form {
        margin-bottom: 2rem;
    }
    
    /* Improve readability for small text */
    .text-\[9px\], .text-\[10px\] {
        font-size: 12px !important;
        line-height: 1.5;
    }
    
    /* Better paragraph readability */
    p {
        font-size: 15px !important;
        line-height: 1.7 !important;
        color: #d4d4d8 !important;
    }
    
    /* General text brightness */
    body {
        color: #d4d4d8 !important;
    }
    
    /* Headings brighter */
    h1, h2, h3, h4, h5, h6 {
        color: #ffffff !important;
    }
    
    /* Improve heading readability */
    h1, h2, h3, h4 {
        line-height: 1.2 !important;
        letter-spacing: -0.02em !important;
    }
    
    /* Better list readability */
    ul, ol {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    /* Improve text contrast - brighter on mobile */
    .text-zinc-400 {
        color: #d4d4d8 !important;
    }
    
    .text-zinc-500 {
        color: #a1a1aa !important;
    }
    
    .text-zinc-600 {
        color: #71717a !important;
    }
    
    /* Contact form - maximum contrast for mobile */
    #contact-form {
        background: #1a1a1a !important;
        border-color: rgba(34, 211, 238, 0.5) !important;
        box-shadow: none !important;
    }
    
    #contact-form .bg-\\[\\#0f0f0f\\] {
        background: #1f1f1f !important;
    }
    
    #contact-form label {
        color: #f4f4f5 !important;
        font-weight: 700 !important;
    }
    
    /* Form inputs maximum brightness */
    #contact-form input,
    #contact-form textarea {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-bottom-color: rgba(255, 255, 255, 0.4) !important;
    }
    
    #contact-form input:focus,
    #contact-form textarea:focus {
        color: #ffffff !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-bottom-color: var(--cyan) !important;
    }
    
    /* Checkbox buttons maximum brightness */
    #contact-form .checkbox-wrapper div {
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
    
    #contact-form .checkbox-wrapper div:hover {
        border-color: rgba(255, 255, 255, 0.6) !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    #contact-form .checkbox-wrapper input:checked + div {
        background-color: var(--cyan) !important;
        color: #000000 !important;
        border-color: var(--cyan) !important;
    }
    
    /* Form header text */
    #contact-form .font-mono {
        color: #e4e4e7 !important;
    }
    
    /* Submit button - no shadow, brighter on mobile */
    #submit-btn {
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        background: #06b6d4 !important;
        color: #000000 !important;
        font-weight: 700 !important;
        border: none !important;
    }
    
    #submit-btn:hover,
    #submit-btn:focus {
        background: #ffffff !important;
        color: #000000 !important;
        box-shadow: none !important;
    }
    
    #submit-btn:active {
        background: #e0f2fe !important;
        box-shadow: none !important;
    }
    
    /* Better spacing for mobile */
    .space-y-3 > * + * {
        margin-top: 1rem !important;
    }
    
    .space-y-4 > * + * {
        margin-top: 1.25rem !important;
    }
    
    /* Contact form mobile optimizations */
    #contact-form {
        margin-bottom: 1rem;
    }
    
    /* Ensure form is visible and accessible */
    #room-5 {
        padding-bottom: 2rem;
    }
}

/* Form Validation Messages */
.error-message {
    color: var(--red);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: var(--lime);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 1rem;
    background: rgba(163, 230, 53, 0.1);
    border: 1px solid rgba(163, 230, 53, 0.3);
    border-radius: 0.25rem;
    display: none;
}

.success-message.show {
    display: block;
}

/* Loading State */
.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
    overflow-y: auto;
}

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

.modal-content {
    background: #0a0a0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

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

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #0a0a0f;
    z-index: 10;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.modal-close {
    background: transparent;
    border: none;
    color: #a1a1aa;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
    color: #d4d4d8;
    line-height: 1.7;
}

.modal-body h2 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.modal-body h2:first-child {
    margin-top: 0;
}

.modal-body h3 {
    color: #e4e4e7;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul, .modal-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-banner-text {
    flex: 1;
    color: #d4d4d8;
    font-size: 0.875rem;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--cyan);
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-banner-text a:hover {
    color: #06b6d4;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--cyan);
    color: black;
}

.cookie-btn-accept:hover {
    background: white;
}

.cookie-btn-decline {
    background: transparent;
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cookie-btn-settings {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
}

.cookie-btn-settings:hover {
    background: rgba(34, 211, 238, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-room {
        padding: 2rem 1rem;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .cookie-banner-actions {
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

