/* 3D Logo Animation - Updated to use image */
.logo-3d {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    width: 50px;
    height: 50px;
}

.flower-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-flower 20s infinite linear;
}

/* Replaced petals with image */
.logo-image {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transform-style: preserve-3d;
    animation: pulse-petal 4s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    border: 2px solid rgba(99, 102, 241, 0.3);
    z-index: 3;
}

.center-circle {
    position: absolute;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    animation: pulse-center 2s infinite alternate;
    z-index: 2;
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: rotate-lines 10s infinite linear;
    z-index: 1;
}

.circuit-lines::before,
.circuit-lines::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
}

.circuit-lines::before {
    width: 80%;
    height: 80%;
}

.circuit-lines::after {
    width: 60%;
    height: 60%;
}

@keyframes rotate-flower {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(90deg) rotateX(45deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(0deg);
    }
    75% {
        transform: rotateY(270deg) rotateX(-45deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(0deg);
    }
}

@keyframes pulse-petal {
    0%, 100% {
        transform: scale(1) translateZ(0);
        opacity: 0.9;
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    50% {
        transform: scale(1.1) translateZ(20px);
        opacity: 1;
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
    }
}

@keyframes pulse-center {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    100% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
    }
}

@keyframes rotate-lines {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Text Animation */
.text-container h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-glow 2s infinite alternate;
}

.text-container h2 {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.dream {
    animation: fade-in 1s ease-in;
}

.big {
    animation: fade-in 1s ease-in 0.3s both;
}

.we {
    animation: fade-in 1s ease-in 0.6s both;
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 5px rgba(99, 102, 241, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-3d {
        width: 40px;
        height: 40px;
    }
    
    .text-container h1 {
        font-size: 20px;
    }
    
    .text-container h2 {
        font-size: 10px;
    }
}

/* Updated logo with image */
.logo-image-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    border: 2px solid rgba(99, 102, 241, 0.3);
    animation: pulse-petal 4s infinite ease-in-out;
}

.logo-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-3d.small .logo-image-container {
    width: 32px;
    height: 32px;
}