body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    scroll-behavior: smooth;
    position: relative;
    padding-top: 1rem;
}

:root {
    --bs-primary: #4f8cff;
    --bs-primary-rgb: 79, 140, 255;
    --bs-secondary: #677fa6;
    --bs-body-bg: #f5f7fa;
    --bs-body-color: #0f1e38;
    --bs-card-border-width: 0;
    --bs-gradient: linear-gradient(135deg, rgba(79, 140, 255, .15) 0%, rgba(111, 180, 255, .05) 100%);
}

[data-bs-theme="dark"] {
    --bs-body-bg: #0f172a;
    --bs-body-color: #d8e3ff;
    --bs-secondary: #5f7dbc;
    --bs-gradient: linear-gradient(135deg, rgba(79, 140, 255, .1) 0%, rgba(37, 67, 125, .3) 100%);
}

.background-dots {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(79, 140, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 10%, rgba(79, 140, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(79, 140, 255, 0.08) 0%, transparent 35%);
    background-size: cover;
    z-index: -1;
}

.glass-component {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform .4s ease, box-shadow .4s ease;
}

[data-bs-theme="dark"] .glass-component {
    background: rgba(25, 34, 73, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-component:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 60px -10px rgba(79, 140, 255, 0.35);
}

header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 0 0 1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] header {
    background: rgba(25, 34, 73, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

h1,
h2,
h3 {
    letter-spacing: .5px;
}

footer {
    background: none;
    font-size: .9rem;
}

#hero .glass-component {
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

/* Gradients for light mode */
.text-gradient {
    background: linear-gradient(90deg, #ff6a3d 0%, #ffb86c 50%, #ffd86c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.text-gradient-blue {
    background: linear-gradient(90deg, #3d8aff 0%, #6ce0ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.text-gradient-pink {
    background: linear-gradient(90deg, #ff6a9c 0%, #ffb6e6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.text-gradient-green {
    background: linear-gradient(90deg, #3dffb6 0%, #6cff86 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
    background: linear-gradient(90deg, #a86cff 0%, #e6b6ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Gradients for dark mode */
[data-bs-theme="dark"] .text-gradient {
    background: linear-gradient(90deg, #ff8a3d 0%, #ffd86c 50%, #ffb86c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
[data-bs-theme="dark"] .text-gradient-blue {
    background: linear-gradient(90deg, #6ce0ff 0%, #3d8aff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
[data-bs-theme="dark"] .text-gradient-pink {
    background: linear-gradient(90deg, #ffb6e6 0%, #ff6a9c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
[data-bs-theme="dark"] .text-gradient-green {
    background: linear-gradient(90deg, #6cff86 0%, #3dffb6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
[data-bs-theme="dark"] .text-gradient-purple {
    background: linear-gradient(90deg, #e6b6ff 0%, #a86cff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

a:not(.rounded-circle):not(.rounded-pill) {
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

a:not(.rounded-circle):not(.rounded-pill)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: currentColor;
    transition: width 0.3s ease;
}

a:not(.rounded-circle):not(.rounded-pill):hover::after,
a:not(.rounded-circle):not(.rounded-pill).active::after,
a:not(.rounded-circle):not(.rounded-pill)[aria-current="page"]::after {
    width: 100%;
}