:root {
    --blurple: #5865F2;
    --blurple-hover: #4752c4;
    --dark: #0b0e14;
    --card-bg: #1a1f29;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blurple);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(88, 101, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Card Glow Effect */
.glow-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Base class for mouse-following light effect */
.mouse-glow {
    position: relative;
    overflow: hidden;
}

.glow-card::before,
.mouse-glow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(59, 130, 246, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.glow-card:hover::before,
.mouse-glow:hover::before {
    opacity: 1;
}

/* Floating Navbar */
.nav-floating {
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1200px;
    border-radius: 1.25rem;
    background: rgba(11, 14, 20, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.nav-scrolled {
    top: 1rem;
    background: rgba(11, 14, 20, 0.85);
    border: 1px solid rgba(88, 101, 242, 0.4);
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(25px) saturate(200%);
}

.nav-link-anchor {
    position: relative;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.nav-link-anchor::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blurple);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--blurple);
}

.nav-link-anchor:hover {
    color: white;
}

.nav-link-anchor:hover::after {
    width: 100%;
}

.nav-logo-text {
    background: linear-gradient(90deg, #fff, #94a3b8, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

.btn-nav-dashboard {
    background: var(--blurple);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-nav-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-nav-dashboard:hover::before {
    left: 100%;
}

.btn-nav-dashboard:hover {
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
    transform: translateY(-1px);
}

/* KrazyCord details */
.btn-blurple {
    background: var(--blurple);
    box-shadow: 0 8px 20px -6px rgba(88, 101, 242, 0.5);
    transition: all 0.3s ease;
}

.btn-blurple:hover {
    background: var(--blurple-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -5px rgba(88, 101, 242, 0.6);
}

.card-border-gradient {
    position: relative;
    border-radius: 1.5rem;
    background: var(--card-bg);
    padding: 1px;
    z-index: 1;
}

.card-border-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), transparent, rgba(155, 89, 182, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Floating Particles Background */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Hero Badge */
.hero-badge {
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(88, 101, 242, 0.2);
    transform: translateY(-2px);
}

/* Section Transitions */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
