/* =============================================
   gabs.review - Memphis Design Value Review
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --retro-teal: #2EC4B6;
    --postmodern-pink: #E84C88;
    --memphis-yellow: #F0D050;
    --grid-charcoal: #2A2A34;
    --paper-cream: #F5F0E6;
    --leather-brown: #8B6B4A;
    --futuristic-silver: #B0B0BC;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --font-mono: 'Victor Mono', 'Courier New', monospace;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--grid-charcoal);
    background: var(--paper-cream);
    overflow-x: hidden;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--paper-cream) 0%, #F8F3E8 40%, #FDF6E3 100%);
    overflow: hidden;
}

/* --- Memphis Shapes --- */
.memphis-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.memphis-shape {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity;
}

/* Circle shapes */
.shape-circle {
    border-radius: 50%;
    border: 3px solid var(--grid-charcoal);
}

.shape-1 {
    width: 70px;
    height: 70px;
    background: var(--retro-teal);
    top: 12%;
    left: 8%;
    transform: translate(-200px, -100px) rotate(-45deg);
}

.shape-3 {
    width: 50px;
    height: 50px;
    background: var(--memphis-yellow);
    top: 25%;
    right: 12%;
    transform: translate(200px, -80px) rotate(30deg);
}

.shape-6 {
    width: 60px;
    height: 60px;
    background: var(--postmodern-pink);
    bottom: 20%;
    left: 15%;
    transform: translate(-150px, 120px) rotate(60deg);
}

.shape-8 {
    width: 45px;
    height: 45px;
    background: var(--futuristic-silver);
    bottom: 15%;
    right: 10%;
    transform: translate(180px, 100px) rotate(-30deg);
}

/* Triangle shapes */
.shape-triangle {
    width: 0;
    height: 0;
    border: none;
    background: none;
}

.shape-triangle::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    background: var(--shape-color, var(--memphis-yellow));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: none;
}

.shape-2 {
    top: 18%;
    right: 25%;
    transform: translate(150px, -120px) rotate(20deg);
}

.shape-2::before {
    background: var(--memphis-yellow);
    width: 55px;
    height: 55px;
}

.shape-5 {
    bottom: 25%;
    right: 30%;
    transform: translate(120px, 150px) rotate(-15deg);
}

.shape-5::before {
    background: var(--retro-teal);
    width: 50px;
    height: 50px;
}

/* Zigzag shapes */
.shape-zigzag {
    border: none;
    background: none;
}

.shape-4 {
    top: 35%;
    left: 5%;
    transform: translate(-200px, 0) rotate(-10deg);
}

.shape-7 {
    bottom: 35%;
    right: 5%;
    transform: translate(200px, 0) rotate(8deg);
}

/* Shape animated state */
.memphis-shape.animate-in {
    opacity: 1;
    transition: opacity 0.3s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shape-1.animate-in { transform: translate(0, 0) rotate(0deg); }
.shape-2.animate-in { transform: translate(0, 0) rotate(12deg); }
.shape-3.animate-in { transform: translate(0, 0) rotate(-8deg); }
.shape-4.animate-in { transform: translate(0, 0) rotate(-5deg); }
.shape-5.animate-in { transform: translate(0, 0) rotate(10deg); }
.shape-6.animate-in { transform: translate(0, 0) rotate(-12deg); }
.shape-7.animate-in { transform: translate(0, 0) rotate(5deg); }
.shape-8.animate-in { transform: translate(0, 0) rotate(15deg); }

/* --- Hero Title --- */
.hero-title-group {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.gabs-circle {
    width: clamp(180px, 28vw, 320px);
    height: clamp(180px, 28vw, 320px);
    border-radius: 50%;
    border: 4px solid var(--grid-charcoal);
    background: var(--paper-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    box-shadow: 8px 8px 0 var(--grid-charcoal);
}

.gabs-circle.animate-in {
    transform: scale(1);
    opacity: 1;
}

.gabs-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(40px, 7vw, 80px);
    letter-spacing: -0.01em;
    color: var(--grid-charcoal);
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.gabs-circle.animate-in .gabs-text {
    opacity: 1;
}

.review-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 5.5vw, 64px);
    letter-spacing: -0.01em;
    color: var(--postmodern-pink);
    transform: translate(60px, 40px) rotate(-8deg);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    margin-top: -20px;
    position: relative;
    z-index: 3;
}

.review-label.animate-in {
    transform: translate(40px, 0) rotate(-6deg);
    opacity: 1;
}

/* --- Hero Subtitle --- */
.hero-subtitle {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.hero-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.korean-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(24px, 3vw, 36px);
    color: var(--grid-charcoal);
}

.subtitle-divider {
    color: var(--futuristic-silver);
    font-size: 1.2em;
}

.subtitle-text {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: clamp(13px, 1.3vw, 16px);
    color: var(--leather-brown);
    letter-spacing: 0.02em;
}

/* --- Diagonal Sections --- */
.diagonal-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.diagonal-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -5%;
    right: -5%;
    height: 120px;
    background: inherit;
    transform: skewY(-3deg);
    z-index: 1;
}

.diagonal-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

.section-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Color Themes */
.section-teal {
    background: var(--retro-teal);
    color: var(--grid-charcoal);
}

.section-teal::before {
    background: var(--retro-teal);
}

.section-cream {
    background: var(--paper-cream);
    color: var(--grid-charcoal);
}

.section-cream::before {
    background: var(--paper-cream);
}

.section-charcoal {
    background: var(--grid-charcoal);
    color: var(--paper-cream);
}

.section-charcoal::before {
    background: var(--grid-charcoal);
}

.section-pink {
    background: var(--postmodern-pink);
    color: var(--paper-cream);
}

.section-pink::before {
    background: var(--postmodern-pink);
}

/* --- Section Headings --- */
.section-heading {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(28px, 5.5vw, 64px);
    letter-spacing: -0.01em;
    margin-bottom: 30px;
    line-height: 1.1;
}

.section-heading-light {
    color: var(--paper-cream);
}

.section-body {
    font-family: var(--font-body);
    max-width: 700px;
    line-height: 1.8;
    font-size: clamp(15px, 1.5vw, 18px);
}

/* --- Memphis Decorations (inline) --- */
.memphis-decoration {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
}

.inline-shape {
    position: static;
    opacity: 1;
    transform: none;
    transition: transform 0.3s ease;
}

.inline-shape:hover {
    transform: rotate(15deg) scale(1.1);
}

.inline-shape.shape-circle {
    width: 40px;
    height: 40px;
    background: var(--shape-color, var(--retro-teal));
}

.inline-shape.shape-triangle {
    width: auto;
    height: auto;
}

.inline-shape.shape-triangle::before {
    width: 40px;
    height: 40px;
    background: var(--shape-color, var(--memphis-yellow));
}

/* --- Circuit Diagram --- */
.circuit-diagram {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto 0;
    aspect-ratio: 2 / 1;
}

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

.circuit-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.5s ease;
}

.circuit-diagram.animate-lines .circuit-line {
    stroke-dashoffset: 0;
}

.circuit-node {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.circuit-diagram.animate-lines .circuit-node {
    opacity: 1;
}

.circuit-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circuit-label {
    position: absolute;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: clamp(11px, 1.2vw, 15px);
    color: var(--grid-charcoal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.circuit-diagram.animate-lines .circuit-label {
    opacity: 1;
}

.circuit-label-center {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(16px, 2vw, 24px);
    color: var(--postmodern-pink);
    letter-spacing: 0.05em;
}

/* --- Leather Review Cards --- */
.review-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.review-card {
    position: relative;
    padding: 32px 28px 28px;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Leather texture */
.leather-card {
    background:
        repeating-linear-gradient(
            45deg,
            #8B6B4A,
            #8B6B4A 1px,
            #907050 1px,
            #907050 2px,
            #8B6B4A 2px,
            #8B6B4A 3px,
            #866646 3px,
            #866646 4px
        );
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: var(--paper-cream);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--retro-teal);
}

.accent-pink { background: var(--postmodern-pink); }
.accent-yellow { background: var(--memphis-yellow); }
.accent-brown { background: var(--leather-brown); border-right: 2px solid var(--paper-cream); }
.accent-silver { background: var(--futuristic-silver); }
.accent-teal { background: var(--retro-teal); }

.card-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(20px, 2.5vw, 28px);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--paper-cream);
}

.card-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 1.3vw, 16px);
    line-height: 1.7;
    color: #F0E8D8;
    margin-bottom: 16px;
}

.card-verdict {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    display: inline-block;
}

.verdict-teal {
    background: var(--retro-teal);
    color: var(--grid-charcoal);
}

.verdict-pink {
    background: var(--postmodern-pink);
    color: var(--paper-cream);
}

.verdict-yellow {
    background: var(--memphis-yellow);
    color: var(--grid-charcoal);
}

.verdict-brown {
    background: #6B4F32;
    color: var(--paper-cream);
}

.verdict-silver {
    background: var(--futuristic-silver);
    color: var(--grid-charcoal);
}

/* --- Verdict Section --- */
.verdict-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.verdict-heading {
    color: var(--paper-cream);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
}

.verdict-statement {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.8;
    max-width: 650px;
    color: var(--paper-cream);
}

.verdict-korean {
    margin-top: 40px;
}

.verdict-gabs {
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 900;
    color: var(--paper-cream);
    opacity: 0.25;
    line-height: 1;
    display: block;
}

.dec-verdict {
    justify-content: center;
    margin-bottom: 20px;
}

/* --- Footer --- */
.site-footer {
    position: relative;
    padding: 60px 20px;
    background: var(--grid-charcoal);
    text-align: center;
    overflow: hidden;
}

.footer-shapes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-shape {
    position: static;
    opacity: 1;
    transform: none;
}

.footer-shape.shape-circle {
    width: 20px;
    height: 20px;
    background: var(--shape-color, var(--retro-teal));
}

.footer-shape.shape-triangle {
    width: auto;
    height: auto;
}

.footer-shape.shape-triangle::before {
    width: 20px;
    height: 20px;
    background: var(--shape-color, var(--memphis-yellow));
}

.footer-text {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 13px;
    color: var(--futuristic-silver);
    letter-spacing: 0.04em;
}

/* --- Scroll-based shape rotation --- */
.memphis-shape.scroll-rotate {
    transition: transform 0.4s ease;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .diagonal-section {
        padding: 80px 0;
    }

    .diagonal-section::before {
        transform: skewY(-2deg);
        top: -40px;
        height: 80px;
    }

    .review-cards {
        grid-template-columns: 1fr;
    }

    .circuit-diagram {
        aspect-ratio: 1 / 1;
    }

    .hero-section {
        min-height: 100vh;
    }

    .review-label {
        transform: translate(30px, 30px) rotate(-8deg);
    }

    .review-label.animate-in {
        transform: translate(20px, 0) rotate(-6deg);
    }

    .shape-1 { top: 8%; left: 5%; }
    .shape-3 { top: 15%; right: 5%; }
    .shape-6 { bottom: 12%; left: 5%; }
    .shape-8 { bottom: 8%; right: 5%; }
    .shape-2 { top: 10%; right: 15%; }
    .shape-5 { bottom: 18%; right: 20%; }
    .shape-4 { top: 30%; left: 2%; }
    .shape-7 { bottom: 30%; right: 2%; }
}

@media (max-width: 480px) {
    .review-card {
        padding: 24px 20px 20px;
    }

    .gabs-circle {
        width: 160px;
        height: 160px;
    }

    .circuit-label {
        font-size: 10px;
    }
}
