@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #f97316;
    --secondary-glow: rgba(249, 115, 22, 0.5);
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background animated elements */
.bg-circles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    animation: float 12s infinite alternate ease-in-out;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    left: -100px;
}

.circle-2 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    bottom: -150px;
    right: -150px;
    animation-delay: -6s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-70px) scale(1.1);
    }
}

/* Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass-panel {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn-glow {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--secondary-glow);
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Cards Hover Elevate */
.hover-elevate {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-elevate:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Form inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    outline: none;
}

/* 3D Element */
.perspective-container {
    perspective: 1000px;
}

.icon-3d {
    filter: drop-shadow(0px 15px 25px rgba(0, 0, 0, 0.6));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.icon-3d:hover {
    transform: translateY(-15px) rotateY(20deg) rotateX(15deg) scale(1.05);
}

/* Loading Spinner */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--card-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Light Mode Overrides */
body.light-mode {
    background-color: #f1f5f9;
    color: #0f172a;
}

body.light-mode .text-white {
    color: #0f172a !important;
}

body.light-mode .text-gray-400 {
    color: #475569 !important;
}

body.light-mode .text-gray-300 {
    color: #334155 !important;
}

body.light-mode .text-gray-500 {
    color: #94a3b8 !important;
}

body.light-mode .bg-zinc-950\/50,
body.light-mode .bg-zinc-900\/40,
body.light-mode .bg-zinc-950\/80,
body.light-mode .bg-zinc-950\/90 {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px) !important;
}

body.light-mode .glass {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .circle {
    opacity: 0.15;
}

body.light-mode .border-white\/5,
body.light-mode .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .glass-input {
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}