/* =========================================
   VENTURES SHOWCASE - Device Mockup Edition
   Editorial-Tech Aesthetic with Dual Devices
   ========================================= */

/* Section Container */
.ventures-showcase {
    padding: 6rem 0 8rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Ambient background elements */
.ventures-showcase::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240,165,0,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.ventures-showcase::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240,165,0,0.02) 0%, transparent 70%);
    pointer-events: none;
}

/* Section Header */
.ventures-header {
    margin-bottom: 5rem;
    position: relative;
}

.ventures-header .section-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.ventures-header h2 {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 600px;
}

.ventures-header h2 span {
    color: var(--accent);
    font-weight: 300;
    font-style: italic;
}

/* Ventures Grid - Staggered Layout */
.ventures-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

/* Individual Venture Card */
.venture-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.venture-showcase.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Alternating Layout */
.venture-showcase:nth-child(even) {
    direction: rtl;
}

.venture-showcase:nth-child(even) > * {
    direction: ltr;
}

/* Staggered vertical offset */
.venture-showcase:nth-child(2) { margin-top: -4rem; }
.venture-showcase:nth-child(3) { margin-top: 2rem; }
.venture-showcase:nth-child(4) { margin-top: -2rem; }
.venture-showcase:nth-child(5) { margin-top: 3rem; }

/* =========================================
   DEVICE MOCKUPS - Laptop & Phone
   ========================================= */

.devices-container {
    position: relative;
    padding: 2rem;
    min-height: 400px;
}

/* Laptop Frame */
.device-laptop {
    position: relative;
    width: 100%;
    max-width: 520px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.venture-showcase:hover .device-laptop {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.laptop-frame {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 12px 12px 0 0;
    padding: 12px 12px 0;
    box-shadow:
        0 25px 80px rgba(0,0,0,0.5),
        0 0 1px rgba(255,255,255,0.1) inset;
}

/* Camera notch */
.laptop-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #2a2a2a;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

.laptop-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #111;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.laptop-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Laptop screenshot placeholder */
.laptop-screen .screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    gap: 1rem;
}

.screenshot-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

/* Laptop base */
.laptop-base {
    position: relative;
    height: 14px;
    background: linear-gradient(to bottom, #1f1f1f 0%, #141414 100%);
    border-radius: 0 0 4px 4px;
    margin: 0 -4px;
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #0a0a0a;
    border-radius: 0 0 4px 4px;
}

.laptop-stand {
    width: 110%;
    height: 8px;
    margin-left: -5%;
    background: linear-gradient(to bottom, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Phone Frame - Floating */
.device-phone {
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 120px;
    z-index: 10;
    transform: perspective(800px) rotateY(15deg) rotateZ(-5deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.venture-showcase:nth-child(even) .device-phone {
    right: auto;
    left: -20px;
    transform: perspective(800px) rotateY(-15deg) rotateZ(5deg);
}

.venture-showcase:hover .device-phone {
    transform: perspective(800px) rotateY(5deg) rotateZ(-2deg) translateY(-10px) scale(1.05);
}

.venture-showcase:nth-child(even):hover .device-phone {
    transform: perspective(800px) rotateY(-5deg) rotateZ(2deg) translateY(-10px) scale(1.05);
}

.phone-frame {
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 24px;
    padding: 8px;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.6),
        0 0 1px rgba(255,255,255,0.1) inset,
        0 0 40px rgba(240,165,0,0.05);
}

.phone-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 9/19;
    background: #111;
    border-radius: 18px;
    overflow: hidden;
}

/* Dynamic Island */
.phone-screen::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 16px;
    background: #000;
    border-radius: 10px;
    z-index: 5;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.phone-screen .screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen .screenshot-placeholder svg {
    width: 24px;
    height: 24px;
    opacity: 0.2;
}

/* =========================================
   VENTURE CONTENT
   ========================================= */

.venture-content {
    position: relative;
    padding: 2rem 0;
}

/* Index number - Large decorative */
.venture-index {
    position: absolute;
    top: -2rem;
    left: 0;
    font-family: var(--font-mono);
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.02);
    line-height: 1;
    pointer-events: none;
    transition: color 0.5s ease;
}

.venture-showcase:hover .venture-index {
    color: rgba(240,165,0,0.05);
}

/* Category Tag */
.venture-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 6px 12px;
    background: rgba(240,165,0,0.08);
    border-left: 2px solid var(--accent);
}

.venture-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Title */
.venture-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.venture-showcase:hover .venture-title {
    color: var(--accent);
}

/* Role */
.venture-role {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Description - Always visible */
.venture-description {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

/* Stats Row - Always visible */
.venture-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* CTA Link */
.venture-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 0;
    position: relative;
    transition: color 0.3s ease, gap 0.3s ease;
}

.venture-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.venture-link:hover {
    color: var(--accent);
    gap: 1rem;
}

.venture-link:hover::after {
    width: 100%;
}

.venture-link svg {
    transition: transform 0.3s ease;
}

.venture-link:hover svg {
    transform: translate(4px, -4px);
}

/* Tech Stack Pills - Always visible */
.venture-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-pill {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 1024px) {
    .ventures-grid {
        gap: 6rem;
    }

    .venture-showcase {
        gap: 3rem;
    }

    .venture-showcase:nth-child(2),
    .venture-showcase:nth-child(3),
    .venture-showcase:nth-child(4),
    .venture-showcase:nth-child(5) {
        margin-top: 0;
    }

    .device-laptop {
        max-width: 420px;
    }

    .device-phone {
        width: 100px;
        right: -10px;
        bottom: -20px;
    }

    .venture-index {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .ventures-showcase {
        padding: 4rem 0;
    }

    .ventures-header {
        margin-bottom: 3rem;
    }

    .ventures-grid {
        gap: 4rem;
    }

    .venture-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .venture-showcase:nth-child(even) {
        direction: ltr;
    }

    .devices-container {
        padding: 1rem;
        min-height: auto;
    }

    .device-laptop {
        max-width: 100%;
        transform: none;
    }

    .venture-showcase:hover .device-laptop {
        transform: scale(1.01);
    }

    .device-phone {
        position: absolute;
        right: -5px;
        bottom: -15px;
        width: 80px;
        transform: perspective(800px) rotateY(10deg) rotateZ(-3deg);
    }

    .venture-showcase:nth-child(even) .device-phone {
        right: -5px;
        left: auto;
        transform: perspective(800px) rotateY(10deg) rotateZ(-3deg);
    }

    .venture-showcase:hover .device-phone,
    .venture-showcase:nth-child(even):hover .device-phone {
        transform: perspective(800px) rotateY(5deg) rotateZ(-2deg) scale(1.05);
    }

    .venture-content {
        padding: 1rem 0;
    }

    .venture-index {
        font-size: 4rem;
        top: -1rem;
    }

    .venture-title {
        font-size: 1.8rem;
    }

    /* Show description by default on mobile */
    .venture-description,
    .venture-stats,
    .venture-tech {
        opacity: 1;
        transform: translateY(0);
    }

    .venture-stats {
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .device-phone {
        width: 65px;
        right: 5px;
        bottom: -10px;
    }

    .phone-frame {
        padding: 5px;
        border-radius: 16px;
    }

    .phone-screen {
        border-radius: 12px;
    }

    .phone-screen::before {
        height: 12px;
        top: 5px;
    }

    .venture-stats {
        flex-wrap: wrap;
    }
}

/* =========================================
   ANIMATION UTILITIES
   ========================================= */

/* Stagger children animations */
.venture-showcase:nth-child(1) { transition-delay: 0s; }
.venture-showcase:nth-child(2) { transition-delay: 0.1s; }
.venture-showcase:nth-child(3) { transition-delay: 0.2s; }
.venture-showcase:nth-child(4) { transition-delay: 0.3s; }
.venture-showcase:nth-child(5) { transition-delay: 0.4s; }

/* Scroll-triggered glow on devices */
.venture-showcase.in-view .device-laptop {
    animation: device-glow 3s ease-in-out 0.5s;
}

@keyframes device-glow {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 0 30px rgba(240,165,0,0.15)); }
}
