.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(100, 108, 255, 0.1) 0%, 
        rgba(139, 92, 246, 0.05) 50%,
        rgba(100, 255, 163, 0.02) 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 3;
    margin-left:-1rem;
    margin-top:-7rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(100, 108, 255, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-buttons {
    display: inline;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.hero-buttons.top {
    justify-content: left;
    align-items: left;
}

.hero-visual-fullscreen {
    position: absolute;
    pointer-events: auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.visual-container-fullscreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(100, 108, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(100, 255, 163, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, transparent 0%, rgba(30, 30, 46, 0.4) 100%);
    overflow: hidden;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background: linear-gradient(135deg, var(--dark-light), var(--darker));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        var(--card-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    isolation: isolate;
}

.visual-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(100, 108, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(100, 255, 163, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 16px;
    transition: all 4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 12s ease-in-out infinite;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    will-change: transform, opacity;
    transform: translateZ(0);
}

.floating-element::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0) 50%, 
        rgba(0, 0, 0, 0.15) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.floating-element::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    border-radius: inherit;
    filter: blur(8px);
    opacity: 0.3;
    z-index: -1;
}

.floating-element.color-shift {
    background: linear-gradient(135deg, var(--success), var(--warning));
}

.element-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    animation: 
        float-x 20s ease-in-out infinite,
        float-y 15s ease-in-out infinite,
        rotate 25s linear infinite;
    z-index: 5;
}

.element-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 15%;
    background: linear-gradient(135deg, var(--success), var(--warning));
    animation: 
        float-x 18s ease-in-out infinite reverse,
        float-y 22s ease-in-out infinite,
        rotate 30s linear infinite reverse;
    z-index: 4;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 20%;
    background: linear-gradient(135deg, #8B5CF6, #06D6A0);
    animation: 
        float-x 25s ease-in-out infinite,
        float-y 18s ease-in-out infinite reverse,
        rotate 20s linear infinite;
    z-index: 3;
}

.element-4 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 25%;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    animation: 
        float-x 16s ease-in-out infinite reverse,
        float-y 20s ease-in-out infinite,
        rotate 28s linear infinite;
    z-index: 2;
}

.element-5 {
    width: 90px;
    height: 90px;
    top: 50%;
    left: 5%;
    background: linear-gradient(135deg, #7209B7, #3A0CA3);
    animation: 
        float-x 22s ease-in-out infinite,
        float-y 16s ease-in-out infinite,
        rotate 32s linear infinite reverse;
    z-index: 1;
}