:root {
    --primary: #137fec;
    --primary-light: #4c9fff;
    --primary-dark: #0f66bd;
    --secondary: #6366f1;
    --accent: #f59e0b;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --card-light: #ffffff;
    --card-dark: #1e293b;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --radius-lg: 1.25rem;
    --radius-xl: 2.5rem;
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

.dark body {
    background-color: var(--bg-dark);
    color: #f1f5f9;
}

/* --- Typography --- */
.h1-hero {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.dark .h1-hero {
    color: #f8fafc;
}

.h2-section {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    font-weight: 800;
}

.h3-card {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.body-main {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.8;
}

/* --- Premium Buttons --- */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 20px -5px rgba(19, 127, 236, 0.3);
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(19, 127, 236, 0.5);
}

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

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: rgba(var(--primary), 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(19, 127, 236, 0.1);
}

.dark .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* --- Glassmorphic Navigation --- */
.glass-nav {
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .glass-nav {
    background: var(--glass-bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Premium Cards --- */
.card-smart {
    background: var(--card-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.dark .card-smart {
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-smart:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.dark .card-smart:hover {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

.glass-card {
    background: var(--card-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --- Animated Backgrounds --- */
.bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(19, 127, 236, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: blob-float 20s infinite alternate;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- Dark Mode Toggle Special --- */
#theme-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

#theme-toggle:active {
    transform: scale(0.9);
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

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

/* --- Caption / Label utility --- */
.caption {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Animation Delays --- */
.delay-100 {
    transition-delay: 100ms;
    animation-delay: 100ms;
}

.delay-150 {
    transition-delay: 150ms;
    animation-delay: 150ms;
}

.delay-200 {
    transition-delay: 200ms;
    animation-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
    animation-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
    animation-delay: 400ms;
}

/* --- Primary dark color --- */
.bg-primary-dark {
    background-color: var(--primary-dark);
}

.text-primary-dark {
    color: var(--primary-dark);
}

.hover\:bg-primary-dark:hover {
    background-color: var(--primary-dark);
}

/* --- Line clamp --- */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}