/* ==========================================================================
   Tamakan AI — Shared Public Base Styles
   ========================================================================== */

* {
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ---------- Glassmorphism Navbar ---------- */
.nav-glass {
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

/* Light Navbar (for light hero sections) */
.nav-light {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
}

.nav-light a,
.nav-light span,
.nav-light button {
    color: #1e293b !important;
}

.nav-light .gradient-text {
    -webkit-text-fill-color: initial !important;
    background: none !important;
    color: #338dff !important;
}

.nav-light .btn-glow {
    color: #fff !important;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
    background: linear-gradient(135deg, #338dff 0%, #22c55e 50%, #59b0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Glow Button ---------- */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px -8px rgba(51, 141, 255, 0.4);
}

/* ---------- Card Hover ---------- */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px -15px rgba(51, 141, 255, 0.2);
}

/* ---------- Section Divider ---------- */
.section-glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(51, 141, 255, 0.3), transparent);
}

/* ---------- Toast ---------- */
.toast-enter {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* ---------- Mobile Bottom Tab Bar ---------- */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.06);
        padding: 6px 0 env(safe-area-inset-bottom, 8px);
        justify-content: space-around;
        align-items: center;
    }

    .mobile-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 6px 8px;
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.2s ease;
        flex: 1;
        max-width: 80px;
    }

    .mobile-tab svg {
        width: 22px;
        height: 22px;
        color: #94a3b8;
        transition: color 0.2s ease;
    }

    .mobile-tab span {
        font-size: 0.6rem;
        font-weight: 600;
        color: #94a3b8;
        transition: color 0.2s ease;
    }

    .mobile-tab:active {
        transform: scale(0.92);
    }

    .mobile-tab--active svg {
        color: #338dff;
    }

    .mobile-tab--active span {
        color: #338dff;
    }

    body {
        padding-bottom: 70px !important;
    }
}