/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-text {
    font-size: 4rem;
    font-family: var(--font-special);
    opacity: 0;
    position: relative;
}

.loader-text:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    animation: lineGrow 2s forwards;
}

@keyframes lineGrow {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #00f5d4;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(155, 93, 229, 0.5);
    transition: all 0.2s ease-out;
}

.cursor-hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(155, 93, 229, 0.1);
    border: 2px solid rgba(155, 93, 229, 0.8);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Flow Animation */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: arrowBounce 1.5s infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(5px, 5px); }
}

/* Hero Background Animation */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Reveal Animation */
@keyframes revealFromLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes revealFromRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes revealFromBottom {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Typing Animation */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.typing {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    animation: typing 2s steps(40, end) forwards;
}

/* Send Button Animation */
.send-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.send-btn span {
    display: inline-block;
    transition: transform 0.3s;
}

.send-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    opacity: 0;
    transition: all 0.3s;
}

.send-btn:hover span {
    transform: translateX(-10px);
}

.send-btn:hover .send-icon {
    opacity: 1;
    animation: sendArrow 1s infinite;
}

@keyframes sendArrow {
    0% { transform: translate(0, -50%); }
    50% { transform: translate(5px, -50%); }
    100% { transform: translate(0, -50%); }
}

/* Animation Keyframes */
@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes counterRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes softGlow {
    0% { box-shadow: var(--shadow-glow-primary-sm); }
    100% { box-shadow: var(--shadow-glow-primary-lg); }
}

/* Tech Orbit Animations */
.tech-orbit {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: var(--border-radius-full);
    border: 1px dashed rgba(var(--color-light-rgb), 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 30s linear infinite;
}

.orbit-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-full);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow-primary-sm);
    transition: all var(--transition-normal);
    animation: counterRotate 30s linear infinite;
}

.orbit-icon:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-icon:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.orbit-icon:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.orbit-icon:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

.orbit-icon:hover {
    color: var(--color-light);
    background: var(--color-primary);
    transform: scale(1.2) rotate(-360deg);
    box-shadow: var(--shadow-glow-primary);
}