/* DIGITAL PRINTING SECTION - "THE NEON FLUX" */
/* Concept: The instant transition from physical to virtual. Speed, precision, and light. */

.digital-section {
    position: relative;
    padding: 150px 0 150px;
    background-color: #050510;
    /* Return to the Deep Void */
    color: #fff;
    z-index: 10;
    overflow: hidden;
    /* Extraordinary Separation: "The Digital Scanline" */
    /* A complex polygon that looks like a digital signal interrupting the white paper */
    clip-path: polygon(0 120px,
            20% 40px,
            35% 120px,
            50% 0,
            65% 120px,
            80% 40px,
            100% 120px,
            100% 100%,
            0 100%);
    margin-top: -100px;
    /* Aggressive overlap into the white Offset section */
}

/* Background: Cyber Grid & Data Flow */
.digital-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 70% 50%, black 0%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.digital-glow {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15), transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 5s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.digital-container {
    display: flex;
    flex-direction: row-reverse;
    /* Image on right for contrast with previous section */
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* CONTENT SIDE */
.digital-content {
    flex: 1;
    position: relative;
}

/* Header with Glitch Effect */
.digital-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #00E5FF;
    /* Cyan Neon */
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.digital-subtitle::before {
    content: '';
    width: 40px;
    height: 2px;
    background: #00E5FF;
    box-shadow: 0 0 10px #00E5FF;
}

.digital-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 40px;
    color: #fff;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.digital-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #a0a0b0;
    line-height: 1.8;
    margin-bottom: 20px;
}

.highlight-cyan {
    color: #00E5FF;
    font-weight: 600;
}

/* FORMATS LIST - Futuristic Data Panel */
.formats-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.formats-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00E5FF, #BC13FE);
}

.formats-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.format-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    color: #ccc;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.format-item i {
    color: #00E5FF;
    font-size: 0.8rem;
}

.format-item:hover {
    color: #fff;
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* VISUAL SIDE - Holographic Container */
.digital-visuals {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Main Frame */
.holo-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    /* Cyber Border Image */
    background: padding-box;
    border: 2px solid transparent;
    border-radius: 20px;
    background-clip: padding-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Animated Border Gradient */
.holo-frame::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(45deg, #00E5FF, #BC13FE, #00E5FF);
    z-index: -1;
    border-radius: 25px;
    animation: borderRotate 4s linear infinite;
    background-size: 200% 200%;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.digital-img-inner {
    width: 98%;
    height: 98%;
    background-color: #000;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.digital-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transform: scale(1.1);
    transition: transform 0.8s ease;
}

.holo-frame:hover .digital-img {
    transform: scale(1.0);
    opacity: 1;
}

/* Scanline Overlay on Image */
.digital-img-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.3;
}

/* Floating Tech Elements */
.tech-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: #000;
    border: 1px solid #00E5FF;
    padding: 15px 25px;
    color: #fff;
    font-family: var(--font-heading);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-label {
    font-size: 0.7rem;
    color: #00E5FF;
    letter-spacing: 2px;
}

.badge-value {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Responsive */
@media (max-width: 1024px) {
    .digital-container {
        flex-direction: column;
    }

    .digital-visuals {
        height: 500px;
        width: 100%;
        margin-top: 50px;
    }

    .digital-title {
        font-size: 3rem;
    }
}