* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #FDFDFD;
    overflow-x: hidden;
    min-height: 100vh;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(53, 86, 206, 0.6);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(53, 86, 206, 0.8);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0.5);
        opacity: 0;
    }
}

.glass-nav {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3556CE, #262262);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before {
    width: 100%;
}

.hero-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
}

.hero-content {
    transform: translateZ(50px);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateZ(50px) translateY(0px);
    }
    50% {
        transform: translateZ(80px) translateY(-20px);
    }
}

.gradient-text {
    background: linear-gradient(90deg, #3556CE, #00d4ff, #3556CE);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.btn-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-3d:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(53, 86, 206, 0.4);
}

.btn-3d:active {
    transform: translateY(-1px);
}

.btn-3d > * {
    position: relative;
    z-index: 1;
}

.card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-3d::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(53, 86, 206, 0.3), rgba(38, 34, 98, 0.3));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}

.card-3d:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(53, 86, 206, 0.3),
                inset 0 0 30px rgba(53, 86, 206, 0.1);
}

.card-3d:hover::before {
    opacity: 1;
}

.card-image {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s;
}

.card-3d:hover .card-image {
    transform: scale(1.1) translateZ(30px);
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(53, 86, 206, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.card-3d:hover .card-image::after {
    opacity: 1;
}

.shape-3d {
    position: absolute;
    transform-style: preserve-3d;
    animation: rotate3d 20s infinite linear;
    pointer-events: none;
    z-index: 0;
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

.cube {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
}

.cube-face {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(53, 86, 206, 0.1);
    border: 1px solid rgba(53, 86, 206, 0.3);
    backdrop-filter: blur(5px);
}

.cube-face:nth-child(1) { transform: rotateY(0deg) translateZ(50px); }
.cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(50px); }
.cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(50px); }
.cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(50px); }
.cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(50px); }
.cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(50px); }

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.glow-blue {
    box-shadow: 0 0 20px rgba(53, 86, 206, 0.5),
                0 0 40px rgba(53, 86, 206, 0.3),
                0 0 60px rgba(53, 86, 206, 0.2);
}

.text-glow {
    text-shadow: 0 0 20px rgba(53, 86, 206, 0.8),
                0 0 40px rgba(53, 86, 206, 0.5);
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
    z-index: -1;
}

.ripple:hover::after {
    width: 300px;
    height: 300px;
}

.glass-footer {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-background {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, #80808012 1px, transparent 1px),
        linear-gradient(to bottom, #80808012 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-content {
        transform: translateZ(20px);
    }
    
    .cube {
        width: 60px;
        height: 60px;
    }
    
    .cube-face {
        width: 60px;
        height: 60px;
    }
    
    .cube-face:nth-child(1) { transform: rotateY(0deg) translateZ(30px); }
    .cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(30px); }
    .cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(30px); }
    .cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(30px); }
    .cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(30px); }
    .cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(30px); }
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.border-gradient {
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(53, 86, 206, 0.2), rgba(38, 34, 98, 0.2));
    background-clip: padding-box;
}

.tech-background,
.particles,
.shape-3d,
.grid-background {
    z-index: 0 !important;
}

.hero-content,
.section-3d > *,
.card-3d {
    position: relative;
    z-index: 10;
}

.glass-nav {
    z-index: 50;
}

.glass-footer {
    position: relative;
    z-index: 10;
}