:root {
    --primary-color: #0f172a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-color: #334155;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

[data-bs-theme="dark"] {
    --primary-color: #e2e8f0;
    --secondary-color: #60a5fa;
    --text-color: #cbd5e1;
    --bg-color: #0f172a;
    --white: #1e293b;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] body {
    background-color: #020617;
    color: var(--text-color);
}

[data-bs-theme="dark"] .bg-white {
    background-color: #1e293b !important;
}

[data-bs-theme="dark"] .text-dark {
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .navbar-premium.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

[data-bs-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Navbar */
.navbar-premium {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar-premium.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 0;
}

.nav-link-custom {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

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

.auth-btn {
    background: var(--secondary-color);
    color: #ffffff;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
}

.auth-btn:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    padding: 9rem 0 6rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1), transparent);
}

[data-bs-theme="dark"] .hero-section {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.2), transparent),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.1), transparent);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .hero-title {
    background: linear-gradient(to right, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

[data-bs-theme="dark"] .hero-subtitle {
    color: #94a3b8;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

[data-bs-theme="dark"] .btn-primary-custom {
    background: var(--secondary-color);
}

.btn-primary-custom:hover {
    filter: brightness(110%);
    color: #ffffff;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.7rem 1.8rem;
    border-radius: 0.75rem;
    font-weight: 600;
}

[data-bs-theme="dark"] .btn-outline-custom {
    border-color: #fff;
    color: #fff;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-outline-custom:hover {
    background: #fff;
    color: #000;
}

/* Features/Stats */
.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

/* News Cards */
.news-card-img {
    height: 200px;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
    width: 100%;
}

.news-card-body {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: block;
}

.news-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.footer-premium {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-link {
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--white);
    transform: translateX(5px);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--secondary-color);
    color: #ffffff;
}

/* Form */
.subscribe-input {
    border: 2px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 3rem;
    width: 100%;
    transition: border-color 0.3s;
    background: transparent;
    color: inherit;
}

[data-bs-theme="dark"] .subscribe-input {
    border-color: #334155;
    color: #fff;
}

.subscribe-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Partners Swiper */
.swiper-wrapper {
    align-items: center;
}

.partner-logo {
    opacity: 0.6;
    transition: all 0.3s;
    filter: grayscale(100%);
    max-height: 60px;
}

[data-bs-theme="dark"] .partner-logo {
    filter: grayscale(100%) brightness(10);
    opacity: 0.4;
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

[data-bs-theme="dark"] .partner-logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}