@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Mono:wght@400;700&display=swap');

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

body {
    font-family: 'Orbitron', monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    perspective: 1000px;
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridPulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, #00ffff, transparent);
    border-radius: 50%;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.main-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.acronym-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    animation: slideInFromTop 2s ease-out;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-200px) rotateX(90deg);
        opacity: 0;
        filter: blur(20px);
    }
    50% {
        transform: translateY(-50px) rotateX(45deg);
        opacity: 0.5;
        filter: blur(10px);
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

.letter-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: letterReveal 0.8s ease-out both;
}

.letter-box:nth-child(1) { animation-delay: 0.2s; }
.letter-box:nth-child(3) { animation-delay: 0.4s; }
.letter-box:nth-child(5) { animation-delay: 0.6s; }
.letter-box:nth-child(7) { animation-delay: 0.8s; }
.letter-box:nth-child(9) { animation-delay: 1.0s; }

@keyframes letterReveal {
    0% {
        transform: scale(0) rotateY(180deg) rotateX(90deg);
        opacity: 0;
        filter: blur(20px);
    }
    50% {
        transform: scale(1.2) rotateY(90deg) rotateX(45deg);
        opacity: 0.7;
        filter: blur(10px);
    }
    100% {
        transform: scale(1) rotateY(0deg) rotateX(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

.letter {
    font-size: 120px;
    font-weight: 900;
    background: linear-gradient(45deg, #00ffff, #0080ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    animation: shimmer 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes shimmer {
    0% { 
        background-position: 0% 50%; 
        filter: brightness(1) saturate(1);
    }
    25% {
        background-position: 25% 50%;
        filter: brightness(1.2) saturate(1.3);
    }
    50% { 
        background-position: 100% 50%; 
        filter: brightness(1.5) saturate(1.5);
    }
    75% {
        background-position: 75% 50%;
        filter: brightness(1.2) saturate(1.3);
    }
    100% {
        background-position: 0% 50%;
        filter: brightness(1) saturate(1);
    }
}

.expansion {
    font-size: 18px;
    font-weight: 400;
    color: #00ffff;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    z-index: 1;
    filter: blur(10px);
}

.letter-box:hover {
    transform: scale(1.2) translateY(-20px) rotateY(15deg);
    filter: drop-shadow(0 20px 40px rgba(0, 255, 255, 0.5));
}

.letter-box:hover .expansion {
    opacity: 1;
    transform: translateY(0);
}

.letter-box:hover .glow {
    transform: translate(-50%, -50%) scale(1);
}

.separator {
    font-size: 80px;
    font-weight: 900;
    color: #0080ff;
    animation: pulse 2s ease-in-out infinite;
    margin: 0 10px;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        opacity: 0.7;
        filter: brightness(1);
    }
    25% {
        transform: scale(1.1);
        opacity: 0.85;
        filter: brightness(1.2);
    }
    50% { 
        transform: scale(1.3); 
        opacity: 1;
        filter: brightness(1.5);
    }
    75% {
        transform: scale(1.1);
        opacity: 0.85;
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
        filter: brightness(1);
    }
}

.full-form {
    animation: fadeInUp 2s ease-out 1.5s both;
}

@keyframes fadeInUp {
    0% {
        transform: translateY(100px) scale(0.8) rotateX(45deg);
        opacity: 0;
        filter: blur(15px);
    }
    50% {
        transform: translateY(20px) scale(1.05) rotateX(15deg);
        opacity: 0.7;
        filter: blur(5px);
    }
    100% {
        transform: translateY(0) scale(1) rotateX(0deg);
        opacity: 1;
        filter: blur(0px);
    }
}

.full-text {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.4;
    color: #ffffff;
    font-family: 'Space Mono', monospace;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    word-spacing: 0.3em;
    letter-spacing: 0.05em;
}

.highlight {
    color: #00ffff;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    animation: highlightPulse 4s ease-in-out infinite;
}

@keyframes highlightPulse {
    0% { 
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
        filter: brightness(1);
    }
    25% {
        text-shadow: 0 0 25px rgba(0, 255, 255, 0.75);
        filter: brightness(1.2);
    }
    50% { 
        text-shadow: 0 0 40px rgba(0, 255, 255, 1);
        filter: brightness(1.5);
    }
    75% {
        text-shadow: 0 0 25px rgba(0, 255, 255, 0.75);
        filter: brightness(1.2);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
        filter: brightness(1);
    }
}

.tech-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    height: 2px;
    animation: circuitFlow 6s linear infinite;
}

.line-1 {
    top: 20%;
    left: 0;
    width: 100%;
    animation-delay: 0s;
}

.line-2 {
    top: 50%;
    left: 0;
    width: 100%;
    animation-delay: 1.5s;
}

.line-3 {
    top: 80%;
    left: 0;
    width: 100%;
    animation-delay: 3s;
}

.line-4 {
    top: 0;
    left: 30%;
    width: 2px;
    height: 100%;
    background: linear-gradient(transparent, #00ffff, transparent);
    animation-delay: 4.5s;
}

@keyframes circuitFlow {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0); }
}

.data-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 20px #00ffff;
    animation: nodeGlow 3s ease-in-out infinite;
}

.node-1 { top: 20%; left: 10%; animation-delay: 0s; }
.node-2 { top: 50%; right: 15%; animation-delay: 1s; }
.node-3 { bottom: 20%; left: 20%; animation-delay: 2s; }
.node-4 { top: 30%; right: 30%; animation-delay: 3s; }

@keyframes nodeGlow {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 20px #00ffff;
    }
    50% { 
        transform: scale(1.5); 
        box-shadow: 0 0 40px #00ffff;
    }
}

.holographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(0, 128, 255, 0.1) 50%, transparent 70%);
    background-size: 400% 400%;
    animation: holographicShift 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes holographicShift {
    0% { 
        background-position: 0% 50%;
        opacity: 0.3;
    }
    25% {
        background-position: 25% 25%;
        opacity: 0.5;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 0.7;
    }
    75% {
        background-position: 75% 75%;
        opacity: 0.5;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.3;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .acronym-container {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .letter {
        font-size: 100px;
    }
    
    .full-text {
        font-size: 28px;
        padding: 0 30px;
        line-height: 1.5;
        word-spacing: 0.2em;
    }
    
    .separator {
        display: none;
    }
    
    .expansion {
        font-size: 16px;
        margin-top: 15px;
    }
    
    .tech-elements {
        display: none;
    }
    
    .background-grid {
        background-size: 30px 30px;
    }
    
    .letter-box:hover {
        transform: scale(1.15) translateY(-15px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .letter {
        font-size: 80px;
    }
    
    .full-text {
        font-size: 22px;
        padding: 0 20px;
        line-height: 1.6;
    }
    
    .expansion {
        font-size: 14px;
    }
    
    .acronym-container {
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .background-grid {
        background-size: 25px 25px;
    }
    
    .particle {
        width: 1px;
        height: 1px;
    }
}

@media (max-width: 320px) {
    .letter {
        font-size: 60px;
    }
    
    .full-text {
        font-size: 18px;
        padding: 0 15px;
    }
    
    .expansion {
        font-size: 12px;
    }
    
    .acronym-container {
        gap: 25px;
        margin-bottom: 50px;
    }
}

/* Advanced Animation Sequences */
.letter-box.active {
    animation: letterExplode 1s ease-out both;
}

@keyframes letterExplode {
    0% { 
        transform: scale(1) rotate(0deg);
        filter: brightness(1) saturate(1);
    }
    25% {
        transform: scale(1.3) rotate(90deg);
        filter: brightness(1.5) saturate(1.5);
    }
    50% { 
        transform: scale(1.8) rotate(270deg);
        filter: brightness(2) saturate(2);
    }
    75% {
        transform: scale(1.4) rotate(360deg);
        filter: brightness(1.3) saturate(1.3);
    }
    100% { 
        transform: scale(1) rotate(0deg);
        filter: brightness(1) saturate(1);
    }
}

/* Enhanced cinematic entrance animation */
.main-content {
    animation: cinematicEntrance 3s ease-out both;
}

@keyframes cinematicEntrance {
    0% {
        transform: scale(0.3) rotateX(90deg) rotateY(45deg);
        opacity: 0;
        filter: blur(30px) brightness(0.5);
    }
    25% {
        transform: scale(0.7) rotateX(45deg) rotateY(25deg);
        opacity: 0.3;
        filter: blur(20px) brightness(0.7);
    }
    50% {
        transform: scale(1.1) rotateX(15deg) rotateY(5deg);
        opacity: 0.8;
        filter: blur(10px) brightness(0.9);
    }
    75% {
        transform: scale(1.05) rotateX(5deg) rotateY(2deg);
        opacity: 0.95;
        filter: blur(5px) brightness(1.1);
    }
    100% {
        transform: scale(1) rotateX(0deg) rotateY(0deg);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
}