:root {
    --primary: #0d6efd;
    --primary-soft: rgba(13, 110, 253, 0.1);
    --dark: #1a1a1a;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-light);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===========================
   Premium Navbar
   =========================== */
.navbar-custom {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1030;
}

.navbar-custom.navbar-scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    background: #fff;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.navbar-brand .brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.navbar-brand .brand-text {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: #1a1a2e;
}

/* Nav Links */
.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: #555 !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.2px;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/* Header Buttons */
.btn-header-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.3);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-header-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    color: #fff !important;
}

.btn-header-outline {
    background: transparent;
    color: #444 !important;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-header-outline:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background: rgba(13, 110, 253, 0.04);
}

/* Language Toggle */
.lang-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 0.45rem 0.95rem !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a !important;
    letter-spacing: 0.08em;
    gap: 0.45rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.lang-toggle:hover {
    background: #eef4ff;
    border-color: rgba(37, 99, 235, 0.25) !important;
    color: #2563eb !important;
}

.lang-toggle::after {
    display: none !important;
}

.lang-dropdown .lang-toggle i {
    font-size: 0.95rem;
}

.lang-dropdown .lang-menu {
    min-width: 180px;
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.lang-dropdown .lang-menu .dropdown-item {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #0f172a;
}

.lang-dropdown .lang-menu .dropdown-item.active,
.lang-dropdown .lang-menu .dropdown-item:active,
.lang-dropdown .lang-menu .dropdown-item:hover {
    background: #eef4ff;
    color: #2563eb;
}

/* Custom Hamburger */
.navbar-toggler-custom {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.navbar-toggler-custom span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .navbar-toggler-custom {
        display: flex;
    }
}


/* ===========================
   Premium Footer
   =========================== */
.footer-premium {
    background: #111424;
    color: #a0a8b1;
    font-size: 0.95rem;
}

.footer-top {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.footer-brand {
    transition: var(--transition);
}

.footer-brand:hover {
    opacity: 0.85;
}

.footer-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.footer-text {
    color: #a0a8b1;
    line-height: 1.7;
    font-size: 0.95rem;
}

.hover-primary {
    transition: var(--transition);
}
.hover-primary:hover {
    color: var(--primary) !important;
}

.footer-icon-box {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c98a4;
    flex-shrink: 0;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-contact-info a:hover .footer-icon-box {
    background: var(--primary);
    color: #fff;
}

.footer-heading {
    position: relative;
    padding-bottom: 1rem;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-links li a {
    color: #a0a8b1;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-links li a::before {
    content: '\F285'; /* bi-chevron-right */
    font-family: 'bootstrap-icons';
    font-size: 0.7rem;
    margin-right: 8px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1.2rem;
}

.footer-newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.footer-newsletter-form .btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

.footer-social-links .social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #a0a8b1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social-links .social-btn:hover {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.footer-bottom {
    background: #0d101d;
}

.footer-lang-dropdown .dropdown-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #a0a8b1;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-lang-dropdown .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.animation-pulse {
    animation: heartbeat 2s infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

main {
    flex: 1;
}

/* Header Responsive */
@media (max-width: 991px) {
    .navbar-custom {
        padding: 0.7rem 0;
    }

    .navbar-collapse {
        transition: height 0.35s ease;
    }

    .navbar-nav {
        background: #fff;
        margin-top: 0.8rem;
        padding: 1rem 0;
        border-radius: 16px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    .navbar-nav .nav-link {
        padding: 0.85rem 1.5rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: left;
        width: 100%;
        font-size: 0.95rem;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-nav .nav-link.active {
        color: var(--primary) !important;
        font-weight: 700;
        background: rgba(13, 110, 253, 0.05);
    }

    .mobile-nav-actions {
        flex-direction: row !important;
        justify-content: space-between;
        padding: 0.8rem 1.5rem 1.2rem;
        gap: 0.75rem;
    }

    .navbar-nav .auth-btns {
        padding: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar-nav .lang-dropdown {
        margin: 0 !important;
        flex: 0 0 auto;
    }

    .lang-toggle {
        width: auto;
        justify-content: center;
    }

    .btn-header-primary,
    .btn-header-outline {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
