* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(0.5px);
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(74, 158, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 158, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
    animation: gridFloat 8s ease-in-out infinite;
}

@keyframes gridFloat {
    0%, 100% { 
        opacity: 0.6; 
        transform: translateY(0px);
    }
    50% { 
        opacity: 0.3; 
        transform: translateY(-2px);
    }
}

.header {
    position: absolute;
    top: 18%;
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-cubes {
    display: flex;
    gap: 8px;
    perspective: 1000px;
    justify-content: center;
    margin: 20px 0 0 0;
}

.cube {
    position: relative;
    width: 32px;
    height: 32px;
    transform-style: preserve-3d;
    animation: cubeRotate 8s ease-in-out infinite;
}

.cube-1 { animation-delay: 0s; }
.cube-2 { animation-delay: 0.5s; }
.cube-3 { animation-delay: 1s; }

@keyframes cubeRotate {
    0%, 100% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateX(20deg) rotateY(45deg) rotateZ(10deg);
    }
    50% {
        transform: rotateX(0deg) rotateY(90deg) rotateZ(0deg);
    }
    75% {
        transform: rotateX(-20deg) rotateY(135deg) rotateZ(-10deg);
    }
}

.face {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(74, 158, 255, 0.4);
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.8) 0%, rgba(107, 182, 255, 0.6) 100%);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.front { transform: rotateY(0deg) translateZ(16px); }
.back { transform: rotateY(180deg) translateZ(16px); }
.right { transform: rotateY(90deg) translateZ(16px); }
.left { transform: rotateY(-90deg) translateZ(16px); }
.top { transform: rotateX(90deg) translateZ(16px); }
.bottom { transform: rotateX(-90deg) translateZ(16px); }

.cube-1 .face {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.9) 0%, rgba(107, 182, 255, 0.7) 100%);
}

.cube-2 .face {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.7) 0%, rgba(107, 182, 255, 0.5) 100%);
}

.cube-3 .face {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.5) 0%, rgba(107, 182, 255, 0.3) 100%);
}

.title {
    font-size: 4.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #4a9eff 50%, #6bb6ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: elegantShift 6s ease-in-out infinite;
    letter-spacing: -2px;
    text-shadow: 0 0 40px rgba(74, 158, 255, 0.3);
    margin: 0;
}

.subtitle {
    font-size: 1rem;
    color: #a0b4cc;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 300;
    margin-top: 10px;
}

@keyframes elegantShift {
    0%, 100% { 
        background-position: 0% 50%; 
        filter: brightness(1);
    }
    50% { 
        background-position: 100% 50%; 
        filter: brightness(1.1);
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.nav-button {
    position: relative;
    padding: 18px 36px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(107, 182, 255, 0.05) 100%);
    border: 1px solid rgba(74, 158, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 20px rgba(74, 158, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: translateY(0) scale(1);
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(107, 182, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-button:hover {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2) 0%, rgba(107, 182, 255, 0.1) 100%);
    border-color: rgba(74, 158, 255, 0.6);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(74, 158, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.nav-button:hover::after {
    opacity: 1;
}

.nav-button:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 4px 20px rgba(74, 158, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.button-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.95) 0%, rgba(107, 182, 255, 0.9) 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 
        0 10px 40px rgba(74, 158, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: #4a9eff;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(74, 158, 255, 0.8);
    animation: professionalFloat 10s linear infinite;
}

@keyframes professionalFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(20px) rotate(180deg);
        opacity: 0;
    }
}

.nav-button:focus {
    outline: 2px solid rgba(74, 158, 255, 0.8);
    outline-offset: 4px;
    box-shadow: 
        0 8px 30px rgba(74, 158, 255, 0.25),
        0 0 0 4px rgba(74, 158, 255, 0.1);
}

@media (max-width: 1024px) {
    .title {
        font-size: 3.5rem;
    }
    
    .cube {
        width: 28px;
        height: 28px;
    }
    
    .face {
        width: 28px;
        height: 28px;
    }
    
    .front, .back { transform: rotateY(0deg) translateZ(14px); }
    .back { transform: rotateY(180deg) translateZ(14px); }
    .right { transform: rotateY(90deg) translateZ(14px); }
    .left { transform: rotateY(-90deg) translateZ(14px); }
    .top { transform: rotateX(90deg) translateZ(14px); }
    .bottom { transform: rotateX(-90deg) translateZ(14px); }
    
    .nav-container {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    
    .cube {
        width: 24px;
        height: 24px;
    }
    
    .face {
        width: 24px;
        height: 24px;
    }
    
    .front, .back { transform: rotateY(0deg) translateZ(12px); }
    .back { transform: rotateY(180deg) translateZ(12px); }
    .right { transform: rotateY(90deg) translateZ(12px); }
    .left { transform: rotateY(-90deg) translateZ(12px); }
    .top { transform: rotateX(90deg) translateZ(12px); }
    .bottom { transform: rotateX(-90deg) translateZ(12px); }
    
    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .nav-container {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-button {
        padding: 16px 28px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }
    
    .header {
        top: 22%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
    }

    .header {
        top: 20%;
    }

    .logo-cubes {
        gap: 6px;
    }
    
    .cube {
        width: 20px;
        height: 20px;
    }
    
    .face {
        width: 20px;
        height: 20px;
    }
    
    .front, .back { transform: rotateY(0deg) translateZ(10px); }
    .back { transform: rotateY(180deg) translateZ(10px); }
    .right { transform: rotateY(90deg) translateZ(10px); }
    .left { transform: rotateY(-90deg) translateZ(10px); }
    .top { transform: rotateX(90deg) translateZ(10px); }
    .bottom { transform: rotateX(-90deg) translateZ(10px); }

    .nav-button {
        width: 220px;
        text-align: center;
        padding: 18px 24px;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .notification {
        top: 20px;
        right: 20px;
        left: 20px;
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.nav-button[style*="pointer-events: none"] {
    opacity: 0.7;
    cursor: not-allowed;
}