/* =========================================
   MZ REGION DESIGN SYSTEM (Neon-Tech)
   Based on UAE System but tailored for Mozambique Market
   ========================================= */

:root {
    /* 1. PALETTE (Neon-Tech) */
    --dark: #0f172a;
    /* Deep Slate */
    --surface: #1e293b;
    /* Lighter Slate */

    /* MZ Neon Theme */
    --primary: #06b6d4;
    /* Cyan/Electric Blue */
    --secondary: #8b5cf6;
    /* Neon Purple */
    --accent: #f43f5e;
    /* Neon Red (M-Pesa hint) */

    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(6, 182, 212, 0.2);
    /* Cyan tinted border */

    /* Text Colors */
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.15);

    --glow-primary: rgba(6, 182, 212, 0.4);
}

/* =========================================
   GLOBAL RESET & TYPOGRAPHY
   ========================================= */

body {
    background-color: var(--dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

p {
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.7;
}

/* =========================================
   UTILITIES & EFFECTS
   ========================================= */

.bg-surface {
    background: linear-gradient(160deg, var(--surface) 0%, #0f172a 100%);
}

.bg-dark-section {
    background: linear-gradient(160deg, #020617 0%, var(--dark) 100%);
}

.text-gradient {
    /* MZ Neon Gradient */
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    /* Cyan Glow */
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.za-mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.orb-1 {
    top: -20%;
    left: -10%;
    opacity: 0.6;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    opacity: 0.4;
}

.section-padding {
    padding-top: 140px;
    padding-bottom: 140px;
    position: relative;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons */

.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.5;
    font-size: 0.95rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.5);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.5;
    font-size: 0.95rem;
}

.btn-outline-custom:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* The Container for "Coded Mockups" */
.ui-mockup-card {
    background: #172033;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Glass Cards */
.feature-card {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
    transition: 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Sidebar Items */
.ui-sidebar-item {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: all 0.2s;
}

.ui-sidebar-item.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px var(--glow-primary);
}

/* =========================================
   HIGH-DENSITY MOCKUP UTILITIES (Supercharge)
   ========================================= */

/* Dashboard Grid Layout */
.ui-dashboard-layout {
    display: flex;
    height: 100%;
    background: #0f172a;
}

.ui-dashboard-sidebar {
    width: 50px;
    border-right: 1px solid var(--glass-border);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
}

.ui-dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ui-dashboard-header {
    height: 40px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 0.75rem;
}

/* High-Density Data Tables */
.ui-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.ui-data-table th {
    text-align: left;
    padding: 8px 12px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
}

.ui-data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #fff;
}

.ui-data-table tr:last-child td {
    border-bottom: none;
}

/* Check List Items */
.check-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.check-list-item i {
    color: var(--primary);
}

/* Widget Grid for Dashboards */
.ui-widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
}

.ui-widget-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px;
}

/* Icon Box */
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: var(--primary);
}

/* Badges */
.ui-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ui-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.ui-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.ui-badge.primary {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Window Headers (Mac Style) */
.ui-glass-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.ui-window-controls {
    display: flex;
    gap: 6px;
    margin-right: 12px;
}

.ui-window-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    /* Close */
    box-shadow: 20px 0 0 #f59e0b, 40px 0 0 #10b981;
    /* Min, Max */
    position: relative;
}

/* 3D PERSPECTIVE HELPERS */
.hero-3d-wrapper {
    position: relative;
    perspective: 1000px;
}

.hero-3d-card {
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5);
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.hero-3d-wrapper:hover .hero-3d-card {
    transform: rotateY(-5deg) rotateX(2deg);
    box-shadow: -10px 15px 30px rgba(6, 182, 212, 0.2);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}