/* Ultra Minimal Srofia Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --blue: #1e90ff;
    --cyan: #00bfff;
    --glow: rgba(30, 144, 255, 0.5);
}

/* SEO Hidden Content */
.seo-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--black);
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    cursor: crosshair;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Background Container */
.background-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#particles {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

#neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
}

/* Gradient Spheres */
.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cyan), transparent 70%);
    top: -20%;
    left: -10%;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue), transparent 70%);
    bottom: -20%;
    right: -10%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.sphere-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    animation-duration: 30s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(100px, -50px) scale(1.1) rotate(90deg);
    }
    50% {
        transform: translate(-50px, 100px) scale(0.9) rotate(180deg);
    }
    75% {
        transform: translate(-100px, -100px) scale(1.05) rotate(270deg);
    }
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

/* AI Grid Background */
.ai-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(30, 144, 255, 0.03) 0px, transparent 1px, transparent 2px, rgba(30, 144, 255, 0.03) 3px),
        repeating-linear-gradient(90deg, rgba(30, 144, 255, 0.03) 0px, transparent 1px, transparent 2px, rgba(30, 144, 255, 0.03) 3px);
    background-size: 50px 50px;
    animation: aiGridPulse 10s ease-in-out infinite;
}

@keyframes aiGridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

/* Camyvex Logo */
.camyvex-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    text-decoration: none;
}

.camyvex-container {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatCamyvex 6s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.camyvex-container:hover {
    transform: scale(1.1);
    border-color: rgba(30, 144, 255, 0.5);
    background: rgba(30, 144, 255, 0.1);
}

.camyvex-logo {
    width: 70%;
    height: 70%;
    object-fit: contain;
    opacity: 1;
}

.camyvex-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.3), transparent 70%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.camyvex-container:hover .camyvex-glow {
    opacity: 1;
}

@keyframes floatCamyvex {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    75% {
        transform: translateY(10px) rotate(-5deg);
    }
}

/* Main Content */
.content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo Container */
.logo-container {
    position: relative;
    margin-bottom: 40px;
    animation: levitate 6s ease-in-out infinite;
    user-select: none;
    -webkit-user-select: none;
}

@keyframes levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.logo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    user-select: none;
    pointer-events: auto;
}

.main-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 2;
    animation: logoPulse 3s ease-in-out infinite;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1); 
        filter: brightness(0) invert(1) drop-shadow(0 0 20px var(--glow));
    }
    50% { 
        transform: scale(1.1); 
        filter: brightness(0) invert(1) drop-shadow(0 0 40px var(--cyan));
    }
}

/* Logo Glow */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--glow), transparent 60%);
    filter: blur(40px);
    animation: glowPulse 3s ease-in-out infinite;
}

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

/* Orbiting Elements */
.orbit-container {
    position: absolute;
    inset: -50%;
    animation: rotate 30s linear infinite;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 50%;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitPulse 4s ease-in-out infinite;
}

.orbit-2 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitPulse 4s ease-in-out infinite 1s;
}

.orbit-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbitPulse 4s ease-in-out infinite 2s;
}

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

@keyframes orbitPulse {
    0%, 100% { 
        opacity: 0.2; 
        border-color: rgba(30, 144, 255, 0.2);
    }
    50% { 
        opacity: 0.5; 
        border-color: rgba(0, 191, 255, 0.5);
    }
}

/* Text Animation - Sophisticated Design */
.text-container {
    position: relative;
    text-align: center;
    margin-top: 20px;
}

.tagline-wrapper {
    position: relative;
    perspective: 1000px;
}

.text-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Top Line - Little Apps */
.text-line-wrapper {
    position: relative;
    padding: 20px 0;
}

.text-main {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 100;
    letter-spacing: 0.05em;
    color: var(--white);
    display: inline-block;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: textReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    user-select: none;
    text-transform: uppercase;
    z-index: 2;
}

.top-line .text-main {
    animation-delay: 0.2s;
    font-weight: 200;
}

/* Text Decorations */
.text-decoration {
    position: absolute;
    height: 1px;
    width: 100px;
    top: 50%;
    opacity: 0;
    animation: decorationSlide 1s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
}

.text-decoration.left {
    right: calc(100% + 30px);
    background: linear-gradient(90deg, transparent, rgba(30, 144, 255, 0.5));
    transform: translateX(50px);
}

.text-decoration.right {
    left: calc(100% + 30px);
    background: linear-gradient(90deg, rgba(30, 144, 255, 0.5), transparent);
    transform: translateX(-50px);
}

/* SROFIA Brand Divider */
.brand-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    position: relative;
    width: 100%;
    max-width: 600px;
}

.divider-element {
    flex: 1;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInScale 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.8s forwards;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 144, 255, 0.3));
}

.divider-element.right .divider-line {
    background: linear-gradient(90deg, rgba(30, 144, 255, 0.3), transparent);
}

.divider-corner {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(30, 144, 255, 0.3);
    transform: rotate(45deg);
    margin: 0 10px;
}

/* SROFIA Letters */
.brand-center {
    display: flex;
    gap: 8px;
    padding: 0 30px;
    position: relative;
}

.brand-letter {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: rgba(30, 144, 255, 0.8);
    opacity: 0;
    transform: scale(0) rotateY(180deg);
    animation: brandReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    display: inline-block;
    position: relative;
    text-shadow: 0 0 20px rgba(30, 144, 255, 0.5);
}

.brand-letter:nth-child(1) { animation-delay: 0.9s; }
.brand-letter:nth-child(2) { animation-delay: 1s; }
.brand-letter:nth-child(3) { animation-delay: 1.1s; }
.brand-letter:nth-child(4) { animation-delay: 1.2s; }
.brand-letter:nth-child(5) { animation-delay: 1.3s; }
.brand-letter:nth-child(6) { animation-delay: 1.4s; }

.brand-letter::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--cyan);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.brand-letter:hover::after {
    transform: scaleX(1);
}

/* Bottom Line - Big Ease */
.bottom-line {
    position: relative;
}

.bottom-line .text-main {
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 700;
    animation-delay: 0.4s;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    position: relative;
}

.text-main.gradient {
    background: linear-gradient(135deg, 
        var(--cyan) 0%, 
        var(--blue) 25%, 
        var(--cyan) 50%, 
        var(--blue) 75%, 
        var(--cyan) 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textReveal 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards,
               gradientMove 10s linear infinite 2s,
               textGlow 3s ease-in-out infinite 2s;
}

/* Glow Effects */
.text-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.2), transparent 70%);
    filter: blur(30px);
    opacity: 0;
    animation: glowPulse 3s ease-in-out infinite 2s;
    pointer-events: none;
}

.text-shadow {
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(40px);
    opacity: 0.3;
    transform: translateY(10px);
    z-index: -1;
}

/* Animations */
@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes decorationSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes brandReveal {
    to {
        opacity: 1;
        transform: scale(1) rotateY(0);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.5)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(0, 191, 255, 0.8)) brightness(1.1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}


@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Mouse ring removed for cleaner design */

/* Floating Elements */
.floating-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.float-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cyan);
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(1px);
}

.element-1 {
    top: 20%;
    left: 10%;
    animation: floatRandom 15s ease-in-out infinite;
}

.element-2 {
    top: 70%;
    left: 80%;
    animation: floatRandom 20s ease-in-out infinite -5s;
}

.element-3 {
    top: 40%;
    right: 20%;
    animation: floatRandom 18s ease-in-out infinite -10s;
}

.element-4 {
    bottom: 30%;
    left: 30%;
    animation: floatRandom 22s ease-in-out infinite -15s;
}

.element-5 {
    top: 60%;
    right: 40%;
    animation: floatRandom 25s ease-in-out infinite -20s;
}

@keyframes floatRandom {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    20% {
        transform: translate(100px, -150px) scale(2);
    }
    40% {
        transform: translate(-150px, 100px) scale(1.5);
    }
    60% {
        transform: translate(200px, 200px) scale(0.5);
    }
    80% {
        transform: translate(-100px, -100px) scale(1.8);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .logo-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .brand-tagline {
        font-size: clamp(2rem, 9vw, 3.5rem);
    }
    
    .gradient-sphere {
        filter: blur(100px);
    }
    
    .sphere-1 {
        width: 300px;
        height: 300px;
    }
    
    .sphere-2 {
        width: 250px;
        height: 250px;
    }
    
    .sphere-3 {
        width: 200px;
        height: 200px;
    }
}
