/* ===== ANIMATED GRADIENT MESH BACKGROUND ===== */
.main-content {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 30%, #ede9fe 60%, #e8f5e9 100%);
    background-size: 400% 400%;
    animation: globalBgShift 20s ease infinite;
}

@keyframes globalBgShift {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 100% 0%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Gradient Orbs */
.main-content .gradient-orbs {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.main-content .gradient-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.main-content .gradient-orbs .orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.55), transparent 70%);
    top: -20%; left: -10%;
    animation: gOrb1Move 18s ease-in-out infinite;
}
.main-content .gradient-orbs .orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 70%);
    top: 5%; right: -12%;
    animation: gOrb2Move 22s ease-in-out infinite;
}
.main-content .gradient-orbs .orb-3 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45), transparent 70%);
    bottom: -20%; left: 25%;
    animation: gOrb3Move 20s ease-in-out infinite;
}
.main-content .gradient-orbs .orb-4 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 70%);
    top: 40%; left: 45%;
    animation: gOrb4Move 16s ease-in-out infinite;
}
.main-content .gradient-orbs .orb-5 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 70%);
    top: 60%; right: 20%;
    animation: gOrb5Move 24s ease-in-out infinite;
}
.main-content .gradient-orbs .orb-6 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent 70%);
    top: 10%; left: 35%;
    animation: gOrb6Move 19s ease-in-out infinite;
}

@keyframes gOrb1Move {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(100px, 80px) scale(1.15); }
    50%  { transform: translate(50px, 150px) scale(0.9); }
    75%  { transform: translate(-60px, 80px) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes gOrb2Move {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(-120px, 100px) scale(1.1); }
    50%  { transform: translate(-80px, -50px) scale(0.88); }
    75%  { transform: translate(50px, -100px) scale(1.06); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes gOrb3Move {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(120px, -80px) scale(1.08); }
    50%  { transform: translate(-100px, -120px) scale(0.92); }
    75%  { transform: translate(-50px, 50px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes gOrb4Move {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(-100px, -100px) scale(1.15); }
    50%  { transform: translate(140px, -50px) scale(0.85); }
    75%  { transform: translate(80px, 100px) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes gOrb5Move {
    0%   { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(80px, 120px) scale(0.92); }
    50%  { transform: translate(-120px, 80px) scale(1.12); }
    75%  { transform: translate(-60px, -80px) scale(0.96); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes gOrb6Move {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-80px, 100px) scale(1.1); }
    66%  { transform: translate(100px, -60px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Shimmer Sweep */
.main-content .shimmer-sweep {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.main-content .shimmer-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.35) 55%, transparent 60%);
    animation: gShimmerSweep 4.5s ease-in-out infinite;
}
@keyframes gShimmerSweep {
    0%   { left: -150%; }
    100% { left: 150%; }
}

/* Dot Grid */
.main-content .dot-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle, rgba(15, 23, 42, 0.07) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Floating Shapes */
.main-content .floating-shapes {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.main-content .floating-shapes .shape {
    position: absolute;
    opacity: 0.18;
}
.main-content .floating-shapes .shape-1 {
    top: 12%; left: 6%;
    width: 55px; height: 55px;
    border: 2.5px solid rgba(6, 182, 212, 0.35);
    border-radius: 12px;
    animation: gShape1 20s linear infinite;
}
.main-content .floating-shapes .shape-2 {
    top: 22%; right: 12%;
    width: 40px; height: 40px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
    border-radius: 50%;
    animation: gShape2 16s linear infinite;
}
.main-content .floating-shapes .shape-3 {
    bottom: 28%; left: 18%;
    width: 45px; height: 45px;
    border: 2.5px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    animation: gShape3 22s linear infinite;
}
.main-content .floating-shapes .shape-4 {
    top: 55%; right: 8%;
    width: 50px; height: 50px;
    border: 2.5px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    animation: gShape4 18s linear infinite;
}
.main-content .floating-shapes .shape-5 {
    top: 35%; left: 55%;
    width: 30px; height: 30px;
    background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(168,85,247,0.25));
    border-radius: 6px;
    transform: rotate(45deg);
    animation: gShape5 14s linear infinite;
}
.main-content .floating-shapes .shape-6 {
    bottom: 18%; right: 28%;
    width: 28px; height: 28px;
    border: 2.5px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    animation: gShape6 24s linear infinite;
}
.main-content .floating-shapes .shape-7 {
    top: 6%; left: 42%;
    width: 32px; height: 32px;
    border: 2.5px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    animation: gShape7 19s linear infinite;
}

@keyframes gShape1 {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(-35px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}
@keyframes gShape2 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-25px, 35px) scale(1.2); }
    66%  { transform: translate(25px, -15px) scale(0.8); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes gShape3 {
    0%   { transform: translateY(0) rotate(0deg); }
    50%  { transform: translateY(45px) rotate(120deg); }
    100% { transform: translateY(0) rotate(240deg); }
}
@keyframes gShape4 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(35px, -25px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}
@keyframes gShape5 {
    0%   { transform: rotate(45deg) scale(1); }
    50%  { transform: rotate(225deg) scale(1.3); }
    100% { transform: rotate(405deg) scale(1); }
}
@keyframes gShape6 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    33%  { transform: translate(30px, -40px) rotate(90deg); }
    66%  { transform: translate(-20px, -20px) rotate(200deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}
@keyframes gShape7 {
    0%   { transform: rotate(0deg) translateY(0); }
    50%  { transform: rotate(180deg) translateY(-30px); }
    100% { transform: rotate(360deg) translateY(0); }
}

/* Particles */
.main-content .particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.main-content .particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: gParticleBokeh linear infinite;
}
.main-content .particle:nth-child(1) {
    left: 8%; width: 8px; height: 8px;
    background: rgba(6, 182, 212, 0.55);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.4);
    animation-duration: 18s; animation-delay: 0s;
}
.main-content .particle:nth-child(2) {
    left: 18%; width: 6px; height: 6px;
    background: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
    animation-duration: 22s; animation-delay: 3s;
}
.main-content .particle:nth-child(3) {
    left: 30%; width: 10px; height: 10px;
    background: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
    animation-duration: 15s; animation-delay: 1s;
}
.main-content .particle:nth-child(4) {
    left: 42%; width: 5px; height: 5px;
    background: rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.4);
    animation-duration: 20s; animation-delay: 5s;
}
.main-content .particle:nth-child(5) {
    left: 55%; width: 7px; height: 7px;
    background: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.3);
    animation-duration: 17s; animation-delay: 2s;
}
.main-content .particle:nth-child(6) {
    left: 68%; width: 9px; height: 9px;
    background: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.3);
    animation-duration: 21s; animation-delay: 4s;
}
.main-content .particle:nth-child(7) {
    left: 78%; width: 6px; height: 6px;
    background: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.3);
    animation-duration: 19s; animation-delay: 0.5s;
}
.main-content .particle:nth-child(8) {
    left: 88%; width: 8px; height: 8px;
    background: rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
    animation-duration: 16s; animation-delay: 3.5s;
}

@keyframes gParticleBokeh {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    8%   { opacity: 0.9; transform: translateY(80vh) scale(1); }
    50%  { opacity: 0.4; }
    92%  { opacity: 0.7; }
    100% { transform: translateY(-10vh) scale(0.4); opacity: 0; }
}

/* Ensure content sits above background */
.main-content > *:not(.gradient-orbs):not(.shimmer-sweep):not(.dot-pattern):not(.floating-shapes):not(.particles) {
    position: relative;
    z-index: 1;
}

/* Mobile: reduce orbs, hide shapes */
@media (max-width: 768px) {
    .main-content .gradient-orbs .orb-1 { width: 400px; height: 400px; }
    .main-content .gradient-orbs .orb-2 { width: 350px; height: 350px; }
    .main-content .gradient-orbs .orb-3 { width: 300px; height: 300px; }
    .main-content .gradient-orbs .orb-4 { width: 250px; height: 250px; }
    .main-content .gradient-orbs .orb-5 { width: 200px; height: 200px; }
    .main-content .gradient-orbs .orb-6 { width: 180px; height: 180px; }
    .main-content .floating-shapes .shape { display: none; }
}
