* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, 'Inter', sans-serif;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b1120;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tech-loader {
    position: relative;
    width: 180px;
    height: 180px;
}

.orbital-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #0ea5e9;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.orbital-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #3b82f6;
    animation: spin 1.5s linear infinite reverse;
}

.orbital-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #8b5cf6;
    animation: spin 1s linear infinite;
}

.central-core {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.7);
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-text {
    color: #e2e8f0;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
}

.loading-text::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 1.2rem;
    background: #0ea5e9;
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

.loading-message {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: -5px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loading-message.show {
    opacity: 1;
}

.loading-progress {
    width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.loading-percent {
    color: #0ea5e9;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.loading-dots {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #0ea5e9;
    border-radius: 50%;
    animation: dots 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

body {
    min-height: 100vh;
    color: #f1f5f9;
    overflow-x: hidden;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.5s forwards;
    background: #0a0f1c;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

.video-background.loaded {
    opacity: 1;
    visibility: visible;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: brightness(0.65) contrast(1.15) saturate(0.9);
    border: none !important;
    visibility: hidden;
}

.video-background.loaded iframe {
    visibility: visible;
}

.container {
    display: flex;
    flex: 1;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
    z-index: 1;
    opacity: 0;
}

.container.loaded {
    opacity: 1;
}

.menu-wrapper {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.content-wrapper {
    position: fixed;
    right: -55vw;
    top: 0;
    width: 55vw;
    height: 100vh;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    overflow-y: auto;
}

.content-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    max-width: 100%;
    width: 100%;
    backdrop-filter: none;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.content-info {
    flex: 1;
    min-width: 280px;
}

.content-image {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.system-preview {
    max-width: 50%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.system-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.container.slide-active .menu-wrapper {
    width: 45vw;
    transform: translateX(-5vw);
}

.container.slide-active .content-wrapper {
    right: 0;
    opacity: 1;
    transform: translateX(0);
}

.container.slide-active .radial-menu {
    transform: rotate(-12deg);
}

.container.slide-active .menu-item,
.container.slide-active .menu-item i,
.container.slide-active .menu-item span {
    transform: rotate(12deg);
}

.radial-menu {
    position: relative;
    width: min(520px, 82vw);
    height: min(520px, 82vw);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-center {
    width: 95px;
    height: 95px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 11;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(4px);
    border: none;
}

.menu-center:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.1);
}

.menu-center.active {
    transform: translate(-50%, -50%) rotate(180deg);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.menu-center i {
    transition: transform 0.5s ease;
}

.menu-center.active i {
    transform: rotate(180deg);
}

.menu-item {
    position: absolute;
    width: min(92px, 19vw);
    height: min(92px, 19vw);
    background: transparent;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75), 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: none;
    opacity: 0;
    z-index: 9;
    backdrop-filter: blur(6px);
    transform: scale(0) rotate(-720deg);
}

.menu-item:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 1), 0 12px 28px rgba(0, 0, 0, 0.5);
    background: rgba(15, 25, 45, 0.3);
}

.menu-item.selected {
    transform: scale(1.1) !important;
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 8px rgba(59, 130, 246, 0.5), 0 15px 30px rgba(0, 0, 0, 0.5);
    background: rgba(30, 50, 80, 0.4);
}

.menu-item i {
    font-size: min(2rem, 4vw);
    margin-bottom: 6px;
    transition: all 0.2s ease;
    color: white !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.menu-item span {
    font-size: min(0.75rem, 1.8vw);
    text-align: center;
    font-weight: 500;
    max-width: 85px;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.back-button, .access-button {
    background: transparent;
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 40px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.access-button {
    margin-bottom: 0;
}

.back-button:hover, .access-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.content-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.content-text {
    line-height: 1.6;
    font-size: 1rem;
    color: #eef2ff;
    margin-bottom: 28px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.content-text p {
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .content-container {
        flex-direction: column;
    }
    .content-image {
        order: 2;
        margin-top: 40px;
        margin-bottom: 20px;
        width: 100%;
    }
    .content-info {
        order: 1;
    }
    .system-preview {
        max-width: 100%;
        width: auto;
        height: auto;
        max-height: 260px;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .tech-loader { width: 140px; height: 140px; }
    .video-background iframe {
        width: 150vw;
        height: 84.375vw;
    }

    .menu-wrapper {
        position: relative;
        width: 100vw;
        height: 100vh;
        transform: none !important;
    }

    .content-wrapper {
        position: absolute;
        top: 100vh;
        left: 0;
        width: 100vw;
        height: 75vh;
        right: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(40px);
        padding: 30px 20px;
        background: transparent;
    }

    .container.slide-active .menu-wrapper {
        width: 100vw;
        height: 45vh;
        transform: translateY(-5vh) !important;
    }

    .container.slide-active .content-wrapper {
        top: 45vh;
        height: 55vh;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .radial-menu {
        width: min(380px, 85vw);
        height: min(380px, 85vw);
    }

    .menu-item {
        width: min(76px, 18vw);
        height: min(76px, 18vw);
    }
    .menu-item i { font-size: min(1.6rem, 3.8vw); }
    .menu-item span { font-size: min(0.7rem, 1.8vw); }

    .menu-center {
        width: min(75px, 17vw);
        height: min(75px, 17vw);
        font-size: 1.7rem;
    }

    .content-title { font-size: 1.5rem; }
    .content-text { font-size: 0.9rem; }
    
    .system-preview {
        max-height: 220px;
    }
}

@media (max-width: 480px) {
    .radial-menu {
        width: min(320px, 88vw);
        height: min(320px, 88vw);
    }
    .menu-item {
        width: min(68px, 20vw);
        height: min(68px, 20vw);
    }
    .menu-item i { font-size: 1.4rem; margin-bottom: 4px; }
    .menu-item span { font-size: 0.6rem; }
    .menu-center {
        width: 65px;
        height: 65px;
        font-size: 1.4rem;
    }
    .content-wrapper {
        padding: 25px 16px;
    }
    .container.slide-active .menu-wrapper {
        height: 40vh;
        transform: translateY(-3vh) !important;
    }
    .container.slide-active .content-wrapper {
        top: 40vh;
        height: 60vh;
    }
    .system-preview {
        max-height: 180px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes dots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes itemEntry {
    0% {
        transform: scale(0) rotate(-720deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.08) rotate(8deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}
@keyframes vortexExit {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(720deg);
        opacity: 0;
    }
}

.menu-open .menu-item {
    animation: itemEntry 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.menu-close-active .menu-item {
    animation: vortexExit 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards !important;
}

.content-wrapper::-webkit-scrollbar {
    width: 5px;
}
.content-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.content-wrapper::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}