@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom background patterns */
.bg-grid-pattern {
    background-image: linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-dots-pattern {
    background-image: radial-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-mesh-gradient {
    background: radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.3) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(14, 165, 233, 0.2) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(59, 130, 246, 0.2) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(14, 165, 233, 0.3) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.2) 0px, transparent 50%),
    radial-gradient(at 80% 100%, rgba(14, 165, 233, 0.2) 0px, transparent 50%),
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.2) 0px, transparent 50%);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.1));
    animation: float 8s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.floating-shape:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: 6s;
}

/* Glowing orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: pulse-slow 6s ease-in-out infinite;
}

.glow-orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: 3s;
}

.glow-orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    top: 60%;
    left: 60%;
    animation-delay: 1.5s;
}

/* Geometric shapes */
.geometric-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.geometric-shape {
    position: absolute;
    border: 1px solid rgba(99, 102, 241, 0.1);
    animation: spin-slow 30s linear infinite;
}

.geometric-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    border-color: rgba(59, 130, 246, 0.1);
    transform: rotate(45deg);
    animation-delay: 0s;
}

.geometric-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 10%;
    border-radius: 30%;
    border-color: rgba(14, 165, 233, 0.1);
    animation-delay: 10s;
}

.geometric-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 20%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.1), transparent);
    animation-delay: 20s;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
}
