/* ═══════════════════════════════════════════════════════════════
   CUSTOM DEV - THE MASTERPIECE EDITION
   Dedicated CSS for Qanati Tech Elite Software Engineering
═══════════════════════════════════════════════════════════════ */

:root {
    /* Identity Palettes */
    --p-azure: #00f2ff;
    /* Module 1: APIs */
    --p-purple: #bf00ff;
    /* Module 2: Security */
    --p-emerald: #10b981;
    /* Module 3: MVP */
    --p-gold: #fbbf24;
    /* Module 4: Ecosystem */

    --bg-dark: #010208;
    --glass-bg: rgba(2, 4, 12, 0.85);
}

.custom-page {
    background-color: var(--bg-dark);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════════
   ELITE TYPOGRAPHY & TAGS
═══════════════════════════════════════════════════════════════ */

/* Professional HUD Badge */
.premium-dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--p-gold);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 2px;
    margin-bottom: 40px;
    position: relative;
}

.premium-dev-badge::before {
    content: "";
    position: absolute;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--p-gold);
    border-left: 2px solid var(--p-gold);
}

.premium-dev-badge::after {
    content: "";
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--p-gold);
    border-right: 2px solid var(--p-gold);
}

.custom-page .product-name {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    background: linear-gradient(135deg, var(--p-azure), var(--p-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.custom-page .product-tagline {
    color: var(--p-azure);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   3D FLOATING SHOWCASE (Refined)
═══════════════════════════════════════════════════════════════ */
.showcase-container {
    padding: 80px 0;
    perspective: 2500px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 750px;
}

.phone-stack {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

.phone-device {
    position: absolute;
    width: 280px;
    height: 580px;
    background: #000;
    border: 10px solid #1a1a1a;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -290px;
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-main {
    z-index: 10;
    transform: translateZ(150px);
    border-color: #222;
}

.phone-left {
    z-index: 5;
    transform: translateX(-260px) translateZ(0) rotateY(25deg) scale(0.9);
    opacity: 0.7;
}

.phone-right {
    z-index: 5;
    transform: translateX(260px) translateZ(0) rotateY(-25deg) scale(0.9);
    opacity: 0.7;
}

.phone-stack:hover .phone-left {
    transform: translateX(-340px) translateZ(50px) rotateY(15deg);
    opacity: 1;
}

.phone-stack:hover .phone-right {
    transform: translateX(340px) translateZ(50px) rotateY(-15deg);
    opacity: 1;
}

.phone-stack:hover .phone-main {
    transform: translateZ(250px) scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════
   ARTISTIC BENTO GRID (The Real HUD Engineering)
═══════════════════════════════════════════════════════════════ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 30px;
    margin-top: 100px;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-large {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

/* Global Item HUD Elements */
.hud-tag {
    position: absolute;
    top: 30px;
    left: 30px;
    font-family: 'monospace';
    font-size: 10px;
    letter-spacing: 2px;
    padding: 3px 10px;
    border: 1px solid currentColor;
    border-radius: 2px;
    opacity: 0.8;
}

.hud-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid currentColor;
    opacity: 0.2;
}

.hud-tl {
    top: 12px;
    left: 12px;
    border-right: 0;
    border-bottom: 0;
}

.hud-br {
    bottom: 12px;
    right: 12px;
    border-left: 0;
    border-top: 0;
}

/* --- MODULE ALPHA: API (Cyan Theme) --- */
.mod-azure {
    --c-primary: var(--p-azure);
    border-color: rgba(0, 242, 255, 0.1);
}

.mod-azure h3 {
    color: var(--p-azure);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.mod-azure p {
    color: #8de9ff;
    opacity: 0.9;
}

/* Grid Background for Module 1 */
.mod-azure::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--p-azure) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.05;
    z-index: -1;
}

/* --- MODULE BETA: SECURITY (Purple Theme) --- */
.mod-purple {
    --c-primary: var(--p-purple);
    border-color: rgba(191, 0, 255, 0.1);
}

.mod-purple h3 {
    color: var(--p-purple);
    text-shadow: 0 0 15px rgba(191, 0, 255, 0.3);
}

.mod-purple p {
    color: #e9d5ff;
    opacity: 0.9;
}

/* Hexagon/Circle for Module 2 */
.mod-purple::after {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 150px;
    height: 150px;
    border: 2px solid var(--p-purple);
    border-radius: 50%;
    opacity: 0.1;
    box-shadow: 0 0 50px var(--p-purple);
    animation: HUD-pulse 4s infinite;
}

/* --- MODULE DELTA: MVP (Emerald Theme) --- */
.mod-emerald {
    --c-primary: var(--p-emerald);
    border-color: rgba(16, 185, 129, 0.1);
}

.mod-emerald h3 {
    color: var(--p-emerald);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.mod-emerald p {
    color: #a7f3d0;
    opacity: 0.9;
}

/* Target Marker for Module 3 */
.mod-emerald .target-marker {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 30px;
    height: 30px;
    border: 1px dashed var(--p-emerald);
    border-radius: 50%;
}

/* --- MODULE OMEGA: ECOSYSTEM (Gold Theme) --- */
.mod-gold {
    --c-primary: var(--p-gold);
    border-color: rgba(251, 191, 36, 0.1);
}

.mod-gold h3 {
    color: var(--p-gold);
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.mod-gold p {
    color: #fef3c7;
    opacity: 0.9;
}

/* Circuits for Module 4 */
.mod-gold::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(251, 191, 36, 0.03) 0%, transparent 100%);
}

/* Hover Master Effect */
.bento-item:hover {
    border-color: var(--c-primary);
    transform: translateY(-10px);
    background: linear-gradient(180deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 30px rgba(var(--c-primary), 0.1);
}

@keyframes HUD-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FINAL REFINEMENTS (The "Cool" Details)
═══════════════════════════════════════════════════════════════ */

/* Section Titles HUD */
.section-title-wrap {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-num {
    font-family: 'monospace';
    color: var(--p-azure);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.6;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--p-azure);
    font-weight: 600;
    opacity: 0.8;
}

/* Matrix Background (Silent & Artistic) */
.matrix-bg-enhanced {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 50% 10%, #0a0c10 0%, #010208 100%);
}

.matrix-bg-enhanced::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 242, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .phone-stack {
        transform: scale(0.6);
        margin-top: -100px;
    }

    .custom-page .product-name {
        font-size: 4.5rem;
        /* عودة الضخامة والجمال */
        margin-top: 0;
        line-height: 1;
        letter-spacing: -2px;
    }

    .product-hero {
        padding-top: 120px !important;
        justify-content: center;
        /* العودة للتوسيط الجميل */
    }
}