/* =========================================
   Section 2 (Brand Statement)
   ========================================= */

.second {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: relative;
    box-sizing: border-box;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Background image layer with blue tint removed */
.second::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/circuit.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) brightness(0.35) contrast(1.2);
}

.second-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* --- Cinematic Reveal --- */
.second-content.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.second-content.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Left Column Wrapper */
.second-left {
    flex-shrink: 0;
}

/* Left Subtext / Tagline */
.second-content p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a1a1aa;
    margin: 0;
    max-width: 350px;
}

/* Accent Highlight Line */
.second-content p::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #39FF14;
    margin-bottom: 1rem;
}

/* Main Architectural Headline */
.second-content h3 {
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

/* 🖥️ Desktop: Locked to the absolute bottom-left corner of the screen */
.view-work-btn {
    position: absolute;
    bottom: 3rem;
    left: 3.5rem;
    z-index: 2;

    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-work-btn:hover {
    border-color: #39FF14;
    color: #39FF14;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
}

/* 📱 Mobile Adjustments */
@media (max-width: 768px) {
    .second {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 4rem 1.5rem;
        justify-content: flex-start;
    }

    .second-content {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }

    .second-content p {
        max-width: 100%;
    }

    /* Switches button to relative flow, placing it directly below the H3 */
    .view-work-btn {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        text-align: center;
        margin-top: 2rem;
        box-sizing: border-box;
    }
}