/* Advanced Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --soft-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --diffuse-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.15);
}

body {
    background-color: #f8fafc;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: #1e293b;
}

/* Glassmorphism Navbar */
.navbar {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background-color: var(--glass-bg) !important;
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1100 !important;
}

/* Navbar Mobile Fixes */
@media (max-width: 991px) {
    .navbar {
        background-color: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .navbar-toggler {
        border-color: rgba(0,0,0,0.1);
        padding: 8px;
    }
    .navbar-toggler-icon {
        filter: brightness(0); /* Make it black */
    }
    .navbar-collapse {
        background: white;
        margin-top: 15px;
        padding: 20px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
}

.navbar-brand {
    color: #1e293b !important;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    font-weight: 800;
}

.nav-link {
    color: #475569 !important;
    font-weight: 600;
    margin: 0 5px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1 !important;
}

/* Hero Enhancements */
.hero-section {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.05), transparent);
    padding: 80px 0;
    border-radius: 40px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(to bottom right, #1e293b 30%, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    font-weight: 800;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 700;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    animation: breathe 3s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.6); }
}

/* Creation Hub Cards */
.service-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--diffuse-shadow);
}

.card-status-bar {
    height: 6px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.aliyun-bar { background: linear-gradient(90deg, #ff9966, #ff5e62); }
.azure-bar { background: linear-gradient(90deg, #56CCF2, #2F80ED); }
.google-bar { background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853); }
.volc-bar { background: linear-gradient(90deg, #232526, #414345); }

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.75rem;
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.aliyun-icon { color: #ff5e62; background: rgba(255, 94, 98, 0.1); }
.azure-icon { color: #2F80ED; background: rgba(47, 128, 237, 0.1); }
.google-icon { color: #ea4335; background: rgba(234, 67, 53, 0.1); }
.volc-icon { color: #1f2329; background: rgba(31, 35, 41, 0.1); }

.badge-float {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
}

.badge-hot { background: #fee2e2; color: #ef4444; }
.badge-pro { background: #e0e7ff; color: #6366f1; }

.card-btn {
    background: #f1f5f9;
    color: #475569;
    border: none;
    font-weight: 700;
    padding: 12px;
    transition: all 0.3s ease;
    width: 100%;
    border-radius: 100px;
}

.service-card:hover .card-btn-aliyun { background: #ff6a00; color: #fff; }
.service-card:hover .card-btn-azure { background: #0078d4; color: #fff; }
.service-card:hover .card-btn-google { background: #ea4335; color: #fff; }
.service-card:hover .card-btn-volc { background: #1f2329; color: #fff; }

/* Activity Bar */
.activity-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.activity-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.activity-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #10b981;
    border-radius: 50%;
    animation: ping 1.5s infinite;
}

@keyframes ping {
    75%, 100% { transform: scale(2.5); opacity: 0; }
}

/* Tasks Page Specifics */
.task-mobile-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04);
}

.task-mobile-prompt {
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    cursor: pointer;
    padding: 12px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    transition: all 0.2s ease;
    position: relative;
}

.task-mobile-prompt:active {
    background: #f1f5f9;
    transform: scale(0.98);
}

.task-mobile-prompt::after {
    content: '\f328'; /* FontAwesome copy icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.2;
    font-size: 0.8rem;
}

/* Premium Footer Overhaul */
.main-footer {
    background-color: #0f1113 !important;
    color: #94a3b8 !important;
    padding: 80px 0 0;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.footer-brand-name {
    display: inline-block;
    margin-bottom: 1.5rem;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 800;
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #64748b;
}

.footer-heading {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-contact-item i {
    color: #6366f1;
    width: 20px;
}

.social-icon-box {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-item {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-item:hover {
    background: #6366f1;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 35px 0;
    margin-top: 80px;
    background: rgba(0,0,0,0.2);
}

.copyright-text {
    font-size: 0.85rem;
    color: #475569;
}

.content-wrapper {
    min-height: 60vh;
    padding-bottom: 80px;
}

.footer-wave {
    height: 120px;
    background: linear-gradient(to bottom, #f8fafc, #0f1113);
    margin-top: 80px;
}

/* Navbar & Dropdown Fixes */
.dropdown-menu {
    z-index: 1100 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    border: none;
    border-radius: 16px;
    padding: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
}