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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #000000 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Canvas */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.3;
}

/* Particle System */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #00bfff, #0080ff);
    border-radius: 50%;
    animation: particleFloat 6s infinite linear;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Floating Geometric Shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: 2px solid rgba(0, 191, 255, 0.3);
    animation: floatShape 8s infinite ease-in-out;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    transform: rotate(45deg);
    animation-delay: 0s;
    border-radius: 20px;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 15%;
    border-radius: 50%;
    animation-delay: 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 2s;
}

.shape-4 {
    width: 70px;
    height: 70px;
    top: 60%;
    right: 10%;
    transform: rotate(30deg);
    animation-delay: 3s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    bottom: 10%;
    right: 30%;
    border-radius: 50% 0;
    animation-delay: 4s;
}

.shape-6 {
    width: 50px;
    height: 50px;
    top: 40%;
    left: 5%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation-delay: 5s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-60px) rotate(180deg) scale(0.9);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.1);
        opacity: 0.6;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.logo-3d {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: logoRotate 10s infinite linear;
    transition: transform 0.3s ease;
}

.logo-3d:hover {
    animation-play-state: paused;
    transform: rotateX(45deg) rotateY(45deg) scale(1.2);
}

.logo-face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0080ff, #00bfff);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.8);
}

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

@keyframes logoRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #00bfff, #0080ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
    letter-spacing: 2px;
}

/* Social Navigation */
.social-nav {
    display: flex;
    gap: 20px;
}

.social-link {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(0, 128, 255, 0.2));
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.4), rgba(0, 128, 255, 0.4));
    border-color: rgba(0, 191, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    color: #00bfff;
    transition: color 0.3s ease;
}

.social-icon:hover svg {
    color: #ffffff;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 0;
}

/* 3D Title */
.title-container {
    position: relative;
    margin-bottom: 40px;
    perspective: 1000px;
}

.main-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 1;
    margin: 0;
    position: relative;
    transform-style: preserve-3d;
}

.title-word {
    display: inline-block;
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px rgba(0, 191, 255, 0.8);
    animation: titleFloat 4s ease-in-out infinite;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.title-word:nth-child(1) {
    animation-delay: 0s;
}

.title-word:nth-child(2) {
    animation-delay: 0.5s;
    margin-left: 20px;
}

.title-word:hover {
    transform: rotateY(15deg) rotateX(15deg) scale(1.05);
    text-shadow: 0 0 80px rgba(0, 191, 255, 1);
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-20px) rotateX(5deg);
    }
}

.title-shadow {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 128, 255, 0.1));
    filter: blur(20px);
    z-index: -1;
    animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Subtitle with Typewriter Effect */
.subtitle-container {
    margin-bottom: 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    color: #00bfff;
    margin: 0;
}

.typewriter {
    border-right: 3px solid #00bfff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: #00bfff; }
    51%, 100% { border-color: transparent; }
}

/* Description */
.description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 1000px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(0, 128, 255, 0.05));
    border: 2px solid rgba(0, 191, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    cursor: pointer;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 191, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    border-color: rgba(0, 191, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.2);
}

.feature-icon {
    margin-bottom: 20px;
    perspective: 200px;
}

.icon-3d {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    animation: iconRotate 6s infinite linear;
}

.feature-card:hover .icon-3d {
    animation-play-state: paused;
    transform: rotateY(180deg);
}

.icon-face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0080ff, #00bfff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.icon-face.front { transform: translateZ(20px); }
.icon-face.back { transform: rotateY(180deg) translateZ(20px); }

@keyframes iconRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00bfff;
    font-weight: 600;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Call to Action */
.cta-container {
    margin-top: 40px;
}

.cta-button {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    padding: 0;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.button-text {
    display: block;
    padding: 20px 40px;
    background: linear-gradient(135deg, #0080ff, #00bfff);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.button-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover .button-text {
    opacity: 0;
}

.cta-button:hover .button-3d {
    opacity: 1;
    animation: buttonRotate 2s infinite linear;
}

.button-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0080ff, #00bfff);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

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

@keyframes buttonRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 191, 255, 0.2);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000, #1a1a2e, #16213e);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-cube {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    animation: loadingRotate 2s infinite linear;
    margin-bottom: 30px;
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.3), rgba(0, 128, 255, 0.3));
    border: 2px solid rgba(0, 191, 255, 0.5);
}

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

@keyframes loadingRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.loading-text {
    color: #00bfff;
    font-size: 1.2rem;
    font-weight: 600;
    animation: loadingPulse 1.5s infinite ease-in-out;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .social-nav {
        gap: 15px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .main-content {
        padding: 30px 0;
    }
    
    .description {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .logo-3d {
        width: 50px;
        height: 50px;
    }
    
    .logo-face {
        width: 50px;
        height: 50px;
        font-size: 8px;
    }
    
    .title-word:nth-child(2) {
        margin-left: 10px;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .icon-3d {
        width: 60px;
        height: 60px;
    }
    
    .icon-face {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}