/* ==============================================
   lower.bar - Dark Neon Editorial Parallax
   ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #0A0A14;
    color: #B8B8C8;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
}

h1 {
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    color: #E8E8F0;
}

h2 {
    font-weight: 600;
    font-size: clamp(0.85rem, 1.4vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #00FFB2;
}

p {
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: #B8B8C8;
    line-height: 1.75;
}

/* Section Layout */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.section-1 {
    background: #0A0A14;
}

.section-2 {
    background: #0D0D1A;
}

.section-3 {
    background: #0A0A14;
}

.section-4 {
    background: linear-gradient(135deg, #8A5CF5 0%, #FF3A8C 100%);
}

.section-4 p {
    color: #E8E8F0;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
}

/* Parallax Background Layer */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    overflow: hidden;
}

/* Circuit Traces and SVGs */
.circuit-trace {
    position: absolute;
    opacity: 0.5;
    filter: drop-shadow(0 0 6px rgba(0, 255, 178, 0.3));
}

.circuit-1 {
    width: 400px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation: fadeIn 0.8s ease-in-out 0.2s forwards;
    opacity: 0;
}

.circuit-2 {
    width: 350px;
    height: 280px;
    bottom: 5%;
    right: 10%;
    animation: fadeIn 0.8s ease-in-out 0.4s forwards;
    opacity: 0;
}

.circuit-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.code-texture {
    position: absolute;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #4A9A7A;
    opacity: 0.5;
    white-space: pre-wrap;
    word-break: break-all;
    max-width: 300px;
    background: rgba(13, 13, 26, 0.5);
    padding: 15px;
    border: 1px solid rgba(0, 255, 178, 0.15);
    border-radius: 2px;
}

.code-1 {
    top: 20%;
    right: 8%;
    animation: fadeIn 0.8s ease-in-out 0.6s forwards;
    opacity: 0;
}

.code-texture pre {
    font-family: 'Fira Code', monospace;
    margin: 0;
}

/* Diagonal Line */
.diagonal-line {
    position: absolute;
    width: 2px;
    height: 500px;
    background: #00FFB2;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%) rotate(30deg);
    filter: drop-shadow(0 0 20px rgba(0, 255, 178, 0.4)) drop-shadow(0 0 40px rgba(0, 255, 178, 0.15));
    animation: fadeIn 0.8s ease-in-out 0.8s forwards;
    opacity: 0;
}

/* Content Containers */
.content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.content-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
}

/* Cover Title */
.cover-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-left: clamp(1.5rem, 4vw, 3rem);
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #E8E8F0;
    text-shadow:
        0 0 20px rgba(0, 255, 178, 0.4),
        0 0 40px rgba(0, 255, 178, 0.15);
    line-height: 0.95;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

/* Section 2: Editorial Grid */
.editorial-grid {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    min-height: 100vh;
    align-content: center;
}

.column-left {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.column-left p {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.column-left p:nth-child(1) {
    animation-delay: 0.2s;
}

.column-left p:nth-child(2) {
    animation-delay: 0.35s;
}

.column-left p:nth-child(3) {
    animation-delay: 0.5s;
}

.section-label {
    display: block;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

.column-right {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 2vw, 2rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
}

/* Collage Cards */
.collage-card {
    background: linear-gradient(135deg, #0D0D1A, #1A1A2E);
    border: 1px solid rgba(0, 255, 178, 0.2);
    border-radius: 4px;
    padding: clamp(1.5rem, 2vw, 2rem);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.collage-card:nth-child(1) {
    animation-delay: 0.3s;
}

.collage-card:nth-child(2) {
    animation-delay: 0.45s;
}

.collage-card:nth-child(3) {
    animation-delay: 0.6s;
}

.collage-card:hover {
    border-color: rgba(0, 255, 178, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 178, 0.1);
}

.card-label {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    margin-bottom: 1rem;
}

.card-svg {
    width: 100%;
    height: auto;
    max-height: 120px;
    display: block;
}

/* Collage Fragments */
.collage-fragment {
    position: absolute;
    opacity: 0.6;
}

.fragment-1 {
    width: 200px;
    height: auto;
    top: 15%;
    right: 5%;
    animation: fadeIn 0.8s ease-in-out 0.3s forwards;
    opacity: 0;
}

.collage-fragment svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(138, 92, 245, 0.2));
}

/* Section 3: Pull Quote */
.quote-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.quote-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.backdrop-shapes {
    width: 80vw;
    height: 80vh;
    max-width: 600px;
    max-height: 600px;
    opacity: 0.3;
    animation: fadeIn 0.8s ease-in-out 0.3s forwards;
    opacity: 0;
}

.pull-quote {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #E8E8F0;
    text-shadow:
        0 0 20px rgba(0, 255, 178, 0.4),
        0 0 40px rgba(0, 255, 178, 0.15);
    max-width: 600px;
    line-height: 1.1;
}

.quote-line {
    display: block;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.quote-line-1 {
    animation-delay: 0.2s;
    padding-left: 0rem;
}

.quote-line-2 {
    animation-delay: 0.4s;
    padding-left: 3rem;
}

.quote-line-3 {
    animation-delay: 0.6s;
    padding-left: 6rem;
}

/* Section 4: Closing */
.closing-content {
    max-width: 60rem;
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.closing-text {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.closing-sign-off {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-style: italic;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .editorial-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
    }

    .cover-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .pull-quote {
        font-size: clamp(1.8rem, 4vw, 3rem);
    }

    .quote-line-1 {
        padding-left: 0rem;
    }

    .quote-line-2 {
        padding-left: 1.5rem;
    }

    .quote-line-3 {
        padding-left: 3rem;
    }

    .circuit-1, .circuit-2 {
        width: 250px;
        height: auto;
    }

    .code-1 {
        max-width: 250px;
        font-size: 0.75rem;
    }

    .title-line {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 0.75rem;
    }

    p {
        font-size: 0.95rem;
    }

    .quote-line-2 {
        padding-left: 1rem;
    }

    .quote-line-3 {
        padding-left: 2rem;
    }

    .diagonal-line {
        height: 300px;
    }

    .section-label {
        margin-bottom: 0.8rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .section {
        page-break-after: always;
    }
}
