/* ==========================================================================
   AETHER 3D - Luxury Desktop Spatial Experience Stylesheet
   Shown EXCLUSIVELY on Desktop devices (min-width: 992px).
   Mobile view remains 100% untouched and preserved.
   ========================================================================== */

/* 1. Mobile Protection: Hidden on phones / mobile screens */
#desktop-3d-experience {
    display: none !important;
}

/* 2. Desktop Mode (Screen width >= 992px) */
@media screen and (min-width: 992px) {
    /* Hide the 480px mobile app container completely on desktop */
    #app-container {
        display: none !important;
    }

    body {
        background-color: #050608 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        width: 100% !important;
        min-height: 100vh !important;
        overflow-x: hidden !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    }

    /* Main Desktop 3D Experience Root */
    #desktop-3d-experience {
        display: block !important;
        width: 100%;
        min-height: 100vh;
        background: #050608;
        color: #f1f5f9;
        position: relative;
        overflow-x: hidden;
    }

    /* Animated background ambient glow */
    .d3d-ambient-glow {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        pointer-events: none;
        z-index: 0;
        background: radial-gradient(circle at 50% 15%, rgba(14, 165, 233, 0.12) 0%, rgba(147, 51, 234, 0.08) 35%, transparent 70%),
                    radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
                    radial-gradient(circle at 15% 85%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    }

    /* Fixed 3D Canvas Background */
    #d3d-canvas-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1;
        pointer-events: all;
    }

    #d3d-canvas {
        width: 100%;
        height: 100%;
        display: block;
        cursor: grab;
    }

    #d3d-canvas:active {
        cursor: grabbing;
    }

    /* Content Overlay Layer */
    .d3d-content-layer {
        position: relative;
        z-index: 10;
        pointer-events: none;
    }

    .d3d-interactive-zone {
        pointer-events: auto;
    }

    /* Top Navbar */
    .d3d-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px 48px;
        position: sticky;
        top: 0;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        background: rgba(5, 6, 8, 0.65);
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        transition: all 0.3s ease;
    }

    .d3d-brand-box {
        display: flex;
        align-items: center;
        gap: 14px;
        text-decoration: none;
        color: inherit;
    }

    .d3d-logo-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: linear-gradient(135deg, #0ea5e9, #a855f7);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
        position: relative;
        overflow: hidden;
    }

    .d3d-brand-text {
        display: flex;
        flex-direction: column;
    }

    .d3d-brand-name {
        font-size: 20px;
        font-weight: 800;
        letter-spacing: 1.5px;
        background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .d3d-brand-sub {
        font-size: 9.5px;
        font-weight: 700;
        letter-spacing: 2.2px;
        color: #38bdf8;
        text-transform: uppercase;
    }

    .d3d-nav-menu {
        display: flex;
        align-items: center;
        gap: 32px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .d3d-nav-link {
        font-size: 13.5px;
        font-weight: 600;
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.2s ease;
        position: relative;
        padding: 6px 0;
    }

    .d3d-nav-link:hover,
    .d3d-nav-link.active {
        color: #ffffff;
    }

    .d3d-nav-link:hover::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #0ea5e9, #a855f7);
        border-radius: 2px;
    }

    .d3d-nav-right {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .d3d-status-pill {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        border-radius: 20px;
        background: rgba(14, 165, 233, 0.08);
        border: 1px solid rgba(14, 165, 233, 0.25);
        font-size: 11.5px;
        font-weight: 600;
        color: #38bdf8;
    }

    .d3d-pulse-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #38bdf8;
        box-shadow: 0 0 10px #38bdf8;
        animation: d3dPulse 2s infinite;
    }

    @keyframes d3dPulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.4; transform: scale(0.85); }
    }

    .d3d-btn-primary {
        background: linear-gradient(135deg, #0284c7, #7c3aed);
        color: #ffffff;
        font-size: 13px;
        font-weight: 700;
        padding: 10px 22px;
        border-radius: 10px;
        border: none;
        cursor: pointer;
        text-decoration: none;
        box-shadow: 0 4px 18px rgba(14, 165, 233, 0.35);
        transition: transform 0.2s, box-shadow 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .d3d-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5);
    }

    .d3d-btn-secondary {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
        font-size: 13px;
        font-weight: 700;
        padding: 10px 22px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        cursor: pointer;
        text-decoration: none;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .d3d-btn-secondary:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
    }

    /* Hero Section */
    .d3d-hero-section {
        min-height: calc(100vh - 89px);
        padding: 60px 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
    }

    .d3d-hero-left {
        max-width: 680px;
        z-index: 10;
    }

    .d3d-badge-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        border-radius: 30px;
        background: rgba(147, 51, 234, 0.12);
        border: 1px solid rgba(147, 51, 234, 0.3);
        color: #c084fc;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        margin-bottom: 24px;
    }

    .d3d-hero-title {
        font-size: 56px;
        font-weight: 900;
        line-height: 1.1;
        letter-spacing: -1.5px;
        margin-bottom: 24px;
        color: #ffffff;
    }

    .d3d-hero-title-highlight {
        background: linear-gradient(135deg, #38bdf8 20%, #c084fc 80%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: block;
    }

    .d3d-hero-desc {
        font-size: 17px;
        line-height: 1.6;
        color: #94a3b8;
        margin-bottom: 36px;
        font-weight: 400;
    }

    .d3d-hero-actions {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 50px;
    }

    /* Floating Interactive 3D HUD Toolset */
    .d3d-hud-card {
        background: rgba(15, 23, 42, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        padding: 20px 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        max-width: 580px;
    }

    .d3d-hud-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 10px;
    }

    .d3d-hud-title {
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1px;
        color: #38bdf8;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .d3d-hud-hint {
        font-size: 11px;
        color: #64748b;
        font-weight: 500;
    }

    .d3d-hud-group {
        margin-bottom: 12px;
    }

    .d3d-hud-label {
        font-size: 11px;
        font-weight: 600;
        color: #94a3b8;
        margin-bottom: 6px;
        display: block;
    }

    .d3d-button-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .d3d-toggle-btn {
        background: rgba(255, 255, 255, 0.05);
        color: #cbd5e1;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 7px 14px;
        border-radius: 8px;
        font-size: 11.5px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }

    .d3d-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.25);
    }

    .d3d-toggle-btn.active {
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(168, 85, 247, 0.3));
        color: #38bdf8;
        border-color: #38bdf8;
        box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
    }

    /* Metric Counters */
    .d3d-metrics-strip {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
        max-width: 1400px;
        margin: 40px auto 90px auto;
        padding: 0 48px;
    }

    .d3d-metric-box {
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 24px;
        transition: transform 0.2s, border-color 0.2s;
    }

    .d3d-metric-box:hover {
        transform: translateY(-4px);
        border-color: rgba(14, 165, 233, 0.4);
    }

    .d3d-metric-num {
        font-size: 38px;
        font-weight: 900;
        letter-spacing: -1px;
        background: linear-gradient(135deg, #ffffff, #94a3b8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 4px;
    }

    .d3d-metric-label {
        font-size: 13px;
        font-weight: 700;
        color: #38bdf8;
        margin-bottom: 4px;
    }

    .d3d-metric-desc {
        font-size: 11.5px;
        color: #64748b;
        line-height: 1.4;
    }

    /* Section Headers */
    .d3d-section {
        max-width: 1400px;
        margin: 0 auto;
        padding: 80px 48px;
        position: relative;
    }

    .d3d-section-header {
        text-align: center;
        max-width: 760px;
        margin: 0 auto 56px auto;
    }

    .d3d-section-tag {
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 2px;
        color: #38bdf8;
        text-transform: uppercase;
        margin-bottom: 12px;
        display: block;
    }

    .d3d-section-title {
        font-size: 38px;
        font-weight: 800;
        color: #ffffff;
        letter-spacing: -0.8px;
        margin-bottom: 16px;
    }

    .d3d-section-desc {
        font-size: 16px;
        color: #94a3b8;
        line-height: 1.6;
    }

    /* Cards Grid */
    .d3d-cards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .d3d-card {
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 36px 30px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .d3d-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .d3d-card:hover {
        transform: translateY(-8px);
        border-color: rgba(56, 189, 248, 0.35);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .d3d-card:hover::before {
        opacity: 1;
    }

    .d3d-card-icon-box {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(168, 85, 247, 0.15));
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 22px;
        color: #38bdf8;
    }

    .d3d-card-title {
        font-size: 20px;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 12px;
    }

    .d3d-card-desc {
        font-size: 14px;
        line-height: 1.6;
        color: #94a3b8;
        margin-bottom: 20px;
    }

    .d3d-card-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .d3d-card-list li {
        font-size: 12.5px;
        color: #cbd5e1;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .d3d-card-list li svg {
        color: #38bdf8;
        flex-shrink: 0;
    }

    /* 4 Pillars Matrix */
    .d3d-pillars-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .d3d-pillar-box {
        background: rgba(15, 23, 42, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 16px;
        padding: 24px;
    }

    .d3d-pillar-num {
        font-size: 12px;
        font-weight: 800;
        color: #38bdf8;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }

    .d3d-pillar-title {
        font-size: 16px;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 8px;
    }

    .d3d-pillar-desc {
        font-size: 12.5px;
        color: #64748b;
        line-height: 1.5;
    }

    /* CTA Section */
    .d3d-cta-card {
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(147, 51, 234, 0.15) 100%);
        border: 1px solid rgba(14, 165, 233, 0.3);
        border-radius: 28px;
        padding: 60px 48px;
        text-align: center;
        position: relative;
        overflow: hidden;
        margin: 60px 48px;
    }

    .d3d-cta-title {
        font-size: 38px;
        font-weight: 800;
        color: #ffffff;
        margin-bottom: 16px;
    }

    .d3d-cta-sub {
        font-size: 16px;
        color: #cbd5e1;
        max-width: 620px;
        margin: 0 auto 32px auto;
        line-height: 1.6;
    }

    /* Footer */
    .d3d-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        background: #030406;
        padding: 40px 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12.5px;
        color: #64748b;
    }

    .d3d-footer-links {
        display: flex;
        gap: 24px;
    }

    .d3d-footer-links a {
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.2s;
    }

    .d3d-footer-links a:hover {
        color: #ffffff;
    }
}
