/* Particles Background */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 255, 198, 0.3) 0%, transparent 50%);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.05) 50%, 
        rgba(16, 185, 129, 0.1) 100%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-text {
    display: inline-block;
    border-right: 3px solid var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Floating Geometry Animation (replaces network animation) */
.floating-geometry {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-shape {
    position: absolute;
    transition: var(--transition);
    cursor: pointer;
}

.shape-inner {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 20%;
    animation: float1 6s ease-in-out infinite;
}

.shape-1 .shape-inner {
    border-radius: 20px;
    transform: rotate(45deg);
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 10%;
    right: 25%;
    animation: float2 8s ease-in-out infinite;
}

.shape-2 .shape-inner {
    border-radius: 50%;
}

.shape-3 {
    width: 70px;
    height: 70px;
    bottom: 30%;
    left: 10%;
    animation: float3 7s ease-in-out infinite;
}

.shape-3 .shape-inner {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.shape-4 {
    width: 50px;
    height: 50px;
    top: 50%;
    right: 15%;
    animation: float4 9s ease-in-out infinite;
}

.shape-4 .shape-inner {
    border-radius: 15px;
    background: var(--gradient-secondary);
}

.shape-5 {
    width: 90px;
    height: 90px;
    bottom: 15%;
    right: 30%;
    animation: float5 5s ease-in-out infinite;
}

.shape-5 .shape-inner {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.shape-6 {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 30%;
    animation: float6 10s ease-in-out infinite;
}

.shape-6 .shape-inner {
    border-radius: 50%;
    background: var(--gradient-secondary);
    transform: scale(1);
}

.geometry-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

/* Float Animations */
@keyframes float1 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-15px) translateX(10px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(10px) translateX(15px);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-25px) rotate(180deg) scale(1.1);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    33% {
        transform: translateY(15px) translateX(-10px) rotate(120deg);
    }
    66% {
        transform: translateY(-10px) translateX(20px) rotate(240deg);
    }
}

@keyframes float5 {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    40% {
        transform: translateY(-30px) scale(0.9);
    }
    80% {
        transform: translateY(15px) scale(1.05);
    }
}

@keyframes float6 {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-10px) translateX(15px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(5px) translateX(-10px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-5px) translateX(5px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Hover Effects */
.floating-shape:hover {
    z-index: 10;
}

.floating-shape:hover .shape-inner {
    transform: scale(1.2);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.6);
}

.shape-1:hover .shape-inner {
    transform: rotate(45deg) scale(1.2);
}

.shape-3:hover .shape-inner {
    filter: brightness(1.3);
}

.shape-5:hover .shape-inner {
    animation-duration: 2s;
}

/* Services Preview */
.services-preview {
    padding: 6rem 0;
    background: rgba(30, 41, 59, 0.3);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--dark-card);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(99, 102, 241, 0.3), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Technology Section */
.technology {
    padding: 6rem 0;
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-text h2 {
    margin-bottom: 1.5rem;
}

.tech-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.tech-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.tech-features li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.tech-features li:hover {
    color: var(--accent-color);
    padding-left: 1rem;
}

.tech-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Rotating Cube */
.rotating-cube {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

.cube-face {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    opacity: 0.9;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 0 60px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .floating-geometry {
        width: 300px;
        height: 150px;
    }
    
    .tech-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .tech-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        gap: 2rem;
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .floating-geometry {
        width: 300px;
        height: 250px;
    }
    
    .floating-shape {
        animation-duration: 4s !important;
    }
    
    .shape-1, .shape-2, .shape-3, .shape-4, .shape-5, .shape-6 {
        width: 40px !important;
        height: 40px !important;
    }
    
    .shape-1 {
        top: 15%;
        left: 15%;
    }
    
    .shape-2 {
        top: 5%;
        right: 20%;
    }
    
    .shape-3 {
        bottom: 25%;
        left: 5%;
    }
    
    .shape-4 {
        top: 45%;
        right: 10%;
    }
    
    .shape-5 {
        bottom: 10%;
        right: 25%;
    }
    
    .shape-6 {
        top: 55%;
        left: 25%;
    }
    
    .geometry-glow {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .rotating-cube {
        width: 100px;
        height: 100px;
    }
    
    .cube-face {
        width: 100px;
        height: 100px;
        font-size: 1rem;
    }
    
    .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); }
    
    .floating-geometry {
        width: 250px;
        height: 200px;
    }
    
    .shape-1, .shape-2, .shape-3, .shape-4, .shape-5, .shape-6 {
        width: 30px !important;
        height: 30px !important;
    }
    
    .geometry-glow {
        width: 120px;
        height: 120px;
    }
    
    /* Disable complex animations on very small screens */
    .floating-shape:hover .shape-inner {
        transform: none;
    }
    
    .floating-shape {
        animation-duration: 6s !important;
    }
} 