@font-face {
    font-family: 'Globet';
    src: url('/src/api/library/font/Globet.ttf') format('truetype');
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --neon-blue: #667eea;
    --neon-purple: #764ba2;
    --neon-pink: #f093fb;
    --bg-dark: #0a0a0f;
    --bg-darker: #050507;
    --bg-card: rgba(26, 26, 46, 0.6);
    --bg-card-hover: rgba(37, 37, 56, 0.8);
    --border-color: rgba(102, 126, 234, 0.2);
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
}

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

/* Animated Background with Orbs */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 50px 30px;
    padding-top: 100px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 10%, rgba(240, 147, 251, 0.1) 0%, transparent 50%);
    animation: bgRotate 20s linear infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, var(--bg-dark) 50%, transparent 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(102, 126, 234, 0.03) 2px, rgba(102, 126, 234, 0.03) 4px);
    pointer-events: none;
    z-index: -1;
}

@keyframes bgRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

body.no-scroll {
    overflow: hidden;
}

/* Loading Screen with Enhanced Animations */
.savant-animation {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    backdrop-filter: blur(25px);
    z-index: -1;
    animation: blurFadeOut 1s ease-in-out 2s forwards;
}

.savant-text {
    display: flex;
    gap: 15px;
    font-family: 'Globet', sans-serif;
    font-size: 5rem;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.8));
}

.letter {
    opacity: 0;
    transform: translateY(100px) rotate(45deg) scale(0);
    animation: 
        letterEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        letterPulse 1s ease-in-out 0.8s infinite,
        letterExit 0.6s ease-in 1.4s forwards;
}

.letter:nth-child(1) { animation-delay: 0.1s, 0.9s, 1.5s; }
.letter:nth-child(2) { animation-delay: 0.2s, 1.0s, 1.6s; }
.letter:nth-child(3) { animation-delay: 0.3s, 1.1s, 1.7s; }
.letter:nth-child(4) { animation-delay: 0.4s, 1.2s, 1.8s; }
.letter:nth-child(5) { animation-delay: 0.5s, 1.3s, 1.9s; }
.letter:nth-child(6) { animation-delay: 0.6s, 1.4s, 2.0s; }

@keyframes letterEntrance {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(45deg) scale(0);
        filter: blur(20px);
    }
    60% {
        opacity: 1;
        transform: translateY(-15px) rotate(0) scale(1.15);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
        filter: blur(0);
    }
}

@keyframes letterPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(102, 126, 234, 0.8));
    }
}

@keyframes letterExit {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) rotate(-15deg) scale(0.3);
        filter: blur(15px);
    }
}

@keyframes blurFadeOut {
    0% {
        opacity: 1;
        backdrop-filter: blur(25px);
        background: var(--bg-dark);
    }
    100% {
        opacity: 0;
        backdrop-filter: blur(0);
        background: transparent;
    }
}

.letter[data-char="S"] { 
    --start-x: -200px; --start-y: -150px; --start-rotate: -45deg;
}
.letter[data-char="A"] { 
    --start-x: 150px; --start-y: -200px; --start-rotate: 45deg;
}
.letter[data-char="V"] { 
    --start-x: -180px; --start-y: 180px; --start-rotate: -30deg;
}
.letter[data-char="N"] { 
    --start-x: -100px; --start-y: -250px; --start-rotate: -60deg;
}
.letter[data-char="T"] { 
    --start-x: 250px; --start-y: -100px; --start-rotate: 60deg;
}

/* Stats Grid with 3D Effect */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    perspective: 1000px;
}

.stat-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid transparent;
    background-clip: padding-box;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item.first-item::before {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.5);
    }
}

.stat-item:not(.first-item) {
    border-color: var(--border-color);
}

.stat-item:hover {
    transform: translateY(-8px) rotateX(5deg) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.3),
        0 0 80px rgba(102, 126, 234, 0.2),
        inset 0 0 40px rgba(102, 126, 234, 0.1);
    background: var(--bg-card-hover);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover::after {
    opacity: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Enhanced Input Fields */
#apiQueryInputContainer input,
#searchInput {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    position: relative;
}

#apiQueryInputContainer input::placeholder,
#searchInput::placeholder {
    color: var(--text-muted);
}

#apiQueryInputContainer input:focus,
#searchInput:focus {
    outline: none !important;
    border: 2px solid var(--neon-blue) !important;
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.4),
        0 0 40px rgba(102, 126, 234, 0.2),
        inset 0 0 20px rgba(102, 126, 234, 0.1) !important;
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* Hero Section with Glassmorphism */
.hero-section {
    padding: 20px 25px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    border-radius: 16px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hero-section:hover {
    background: var(--bg-card-hover);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.3),
        0 0 60px rgba(102, 126, 234, 0.15),
        inset 0 0 30px rgba(102, 126, 234, 0.1);
    transform: translateY(-4px) scale(1.01);
    border-color: var(--neon-blue);
}

.hero-section:hover::before {
    opacity: 1;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translate(-100%, -100%) rotate(0deg);
    }
    100% {
        transform: translate(100%, 100%) rotate(360deg);
    }
}

.hero-section>div {
    flex: 1;
    min-width: 0;
    margin-right: 15px;
    z-index: 1;
}

.hero-section .text-muted {
    font-size: 0.8rem;
    color: var(--text-secondary) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    line-height: 1.2;
    white-space: nowrap;
}

/* Category Header with Animated Gradient */
.category-header {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    border-image: var(--primary-gradient);
    border-image-slice: 1;
    animation: gradientShift 3s ease infinite;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Enhanced Navbar */
.navbar {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.15),
        0 0 40px rgba(102, 126, 234, 0.1);
}

.navbar-brand {
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand.visible {
    opacity: 1;
    transform: translateY(0);
}

#versionHeader {
    background: var(--primary-gradient) !important;
    color: white !important;
    padding: 5px 14px !important;
    font-size: 12px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 0 30px rgba(102, 126, 234, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(102, 126, 234, 0.4),
            0 0 30px rgba(102, 126, 234, 0.2);
    }
    50% {
        box-shadow: 
            0 6px 20px rgba(102, 126, 234, 0.6),
            0 0 40px rgba(102, 126, 234, 0.3);
    }
}

.navbar-toggler {
    width: 40px;
    height: 40px;
    padding: 5px;
    border: 2px solid var(--neon-blue);
    border-radius: 8px !important;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    outline: none;
}

.navbar-toggler-icon {
    width: 18px;
    height: 18px;
    background-size: 18px;
    filter: brightness(0) invert(1);
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.1;
    transition: left 0.3s ease;
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link:hover {
    background: var(--bg-card);
    color: var(--neon-blue) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.navbar-nav .dropdown-menu {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
}

.navbar-nav .dropdown-item {
    color: var(--text-primary);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 2px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s ease;
}

.navbar-nav .dropdown-item:hover::before {
    left: 0;
}

.navbar-nav .dropdown-item:hover {
    color: white !important;
    transform: translateX(4px);
}

.navbar-nav .dropdown-item i {
    width: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Modal Enhancements */
.btn-close {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.btn-close:hover {
    transform: rotate(90deg) scale(1.2);
}

.btn-close:focus {
    outline: none;
    box-shadow: none;
}

.spinner-border.custom-spinner {
    color: var(--neon-blue);
    animation: spin 1s linear infinite, spinPulse 2s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinPulse {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
    }
    50% {
        opacity: 0.7;
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8));
    }
}

.modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(102, 126, 234, 0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.modal-dialog {
    margin: 20px;
    max-width: 100%;
    max-height: 80vh;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

#apiResponseContent,
#apiEndpoint {
    font-family: 'Fira Code', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: var(--bg-darker) !important;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
}

#apiResponseContent::-webkit-scrollbar {
    display: none;
}

#apiLinks a {
    display: inline-block;
    text-decoration: none;
    color: var(--neon-blue);
    margin: 4px 8px 4px 0;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

#apiLinks a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    animation: loadingScreenExit 0.8s ease-in-out 2.5s forwards;
}

@keyframes loadingScreenExit {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

#nameContainer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

#name {
    font-size: 2.5rem;
    line-height: 1;
    z-index: 2;
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

#version {
    background: var(--primary-gradient) !important;
    color: white !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    border-radius: 100px !important;
    white-space: nowrap !important;
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 0 30px rgba(102, 126, 234, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

.lead {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Ultra Cool Gradient Button */
.try-btn {
    min-width: 70px !important;
    width: 70px !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
    border: none !important;
    background: var(--primary-gradient) !important;
    background-size: 200% 200% !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.4),
        0 0 40px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.try-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

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

.try-btn:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 
        0 12px 30px rgba(102, 126, 234, 0.6),
        0 0 60px rgba(102, 126, 234, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2) !important;
    background-position: 100% 0 !important;
}

.try-btn:active {
    transform: translateY(-2px) scale(1.02) !important;
}

.form-control.is-invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.param-container .form-control:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: var(--primary-gradient) !important;
    background-size: 200% 200% !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 
        0 6px 20px rgba(102, 126, 234, 0.4),
        0 0 40px rgba(102, 126, 234, 0.2);
    padding: 10px 24px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 
        0 12px 30px rgba(102, 126, 234, 0.6),
        0 0 60px rgba(102, 126, 234, 0.4) !important;
    background-position: 100% 0 !important;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .savant-text {
        font-size: 3rem;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    #name {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .savant-text {
        font-size: 2.5rem;
        gap: 8px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-item {
        padding: 12px 8px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    #name {
        font-size: 1.5rem;
    }
    
    body {
        padding: 40px 20px;
        padding-top: 90px;
    }
}

@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .stat-item {
        padding: 10px 6px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 10px;
        background: var(--bg-card);
        padding: 10px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    .navbar-nav .nav-link {
        padding: 12px 16px;
    }
}

@media screen and (min-width: 768px) {
    .modal-dialog {
        padding: 180px;
        max-width: 100%;
        max-height: 60vh;
    }
}

@media screen and (min-width: 1200px) {
    .modal-dialog {
        padding: 180px;
        max-width: 100%;
        max-height: 60vh;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
    border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7b8ee9 0%, #8a5db2 100%);
}
