/* diplomatic.quest - Memphis Bold Shapes Portfolio */
/* Palette: #f5f0e8, #ff6b9d, #ffd93d, #4ecdc4, #6c5ce7, #2d3436, #1a1a1a */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f0e8;
    color: #2d3436;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   EDGE CIRCLES - Large shapes at viewport edges
   ============================================ */
.edge-circle {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.edge-circle-top-right {
    width: 300px;
    height: 300px;
    background: #ff6b9d;
    border: 2px solid #1a1a1a;
    top: -120px;
    right: -120px;
    opacity: 0.15;
}

.edge-circle-bottom-left {
    width: 400px;
    height: 400px;
    background: #6c5ce7;
    border: 2px solid #1a1a1a;
    bottom: -180px;
    left: -180px;
    opacity: 0.12;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    color: #1a1a1a;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    animation: brandBounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes brandBounceIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-8px) scale(1.02);
    }
    80% {
        transform: translateY(3px) scale(0.99);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: #2d3436;
    margin-top: 0.4rem;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.9s forwards;
}

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

/* ============================================
   ZIGZAG DIVIDERS (between heading/body)
   ============================================ */
.zigzag-divider {
    display: flex;
    gap: 6px;
    margin: 0.6rem 0;
}

.zigzag-divider.center-zig {
    justify-content: center;
    margin: 0.8rem auto;
}

.zig {
    display: block;
    width: 30px;
    height: 4px;
    border-radius: 2px;
}

.pink-zig { background: #ff6b9d; }
.yellow-zig { background: #ffd93d; }
.teal-zig { background: #4ecdc4; }
.purple-zig { background: #6c5ce7; }

/* ============================================
   GEOMETRIC SHAPES IN HERO
   ============================================ */
.shape {
    position: absolute;
    z-index: 1;
    opacity: 0;
    animation: shapeSettle 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.circle-pink {
    width: 120px;
    height: 120px;
    background: #ff6b9d;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    top: 12%;
    left: 8%;
    animation-delay: 0.1s;
}

.triangle-yellow {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid #ffd93d;
    top: 18%;
    right: 10%;
    animation-delay: 0.2s;
    filter: drop-shadow(0 0 0 #1a1a1a);
}

.triangle-yellow::after {
    content: '';
    position: absolute;
    top: 3px;
    left: -47px;
    width: 0;
    height: 0;
    border-left: 47px solid transparent;
    border-right: 47px solid transparent;
    border-bottom: 80px solid #ffd93d;
}

.circle-teal {
    width: 80px;
    height: 80px;
    background: #4ecdc4;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    animation-delay: 0.3s;
}

.circle-teal.small {
    top: 62%;
    left: 6%;
}

.circle-purple {
    width: 100px;
    height: 100px;
    background: #6c5ce7;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    bottom: 14%;
    right: 12%;
    animation-delay: 0.4s;
}

.zigzag-pink {
    width: 120px;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        #ff6b9d 0px,
        #ff6b9d 12px,
        transparent 12px,
        transparent 24px
    );
    border-radius: 0;
    bottom: 28%;
    left: 18%;
    animation-delay: 0.5s;
}

.circle-yellow-large {
    width: 60px;
    height: 60px;
    background: #ffd93d;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    top: 45%;
    right: 6%;
    animation-delay: 0.6s;
}

.triangle-teal {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid #4ecdc4;
    bottom: 20%;
    left: 30%;
    animation-delay: 0.7s;
}

.zigzag-yellow {
    width: 90px;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        #ffd93d 0px,
        #ffd93d 10px,
        transparent 10px,
        transparent 20px
    );
    border-radius: 0;
    top: 70%;
    right: 20%;
    animation-delay: 0.8s;
}

@keyframes shapeSettle {
    0% {
        opacity: 0;
        transform: translate(var(--scatter-x, 0px), var(--scatter-y, 0px)) rotate(var(--scatter-r, 0deg)) scale(0.3);
    }
    60% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1.08);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

#shape-1 { --scatter-x: -80px; --scatter-y: -60px; --scatter-r: 25deg; }
#shape-2 { --scatter-x: 90px; --scatter-y: -70px; --scatter-r: -30deg; }
#shape-3 { --scatter-x: -60px; --scatter-y: 50px; --scatter-r: 15deg; }
#shape-4 { --scatter-x: 70px; --scatter-y: 60px; --scatter-r: -20deg; }
#shape-5 { --scatter-x: -50px; --scatter-y: 40px; --scatter-r: 10deg; }
#shape-6 { --scatter-x: 60px; --scatter-y: -40px; --scatter-r: -15deg; }
#shape-7 { --scatter-x: -40px; --scatter-y: 70px; --scatter-r: 20deg; }
#shape-8 { --scatter-x: 80px; --scatter-y: 30px; --scatter-r: -25deg; }

/* ============================================
   SHAPE DIVIDERS
   ============================================ */
.shape-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.div-shape {
    width: 20px;
    height: 20px;
    border: 2px solid #1a1a1a;
    transition: transform 0.3s ease;
}

.div-shape:hover {
    transform: scale(1.3) rotate(15deg);
}

.circle-div { border-radius: 50%; }
.square-div { border-radius: 2px; }
.triangle-div {
    width: 0;
    height: 0;
    border: none;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid currentColor;
}

.pink-div { background: #ff6b9d; }
.yellow-div { background: #ffd93d; }
.teal-div { background: #4ecdc4; }
.purple-div { background: #6c5ce7; }

.triangle-div.pink-div { background: transparent; border-bottom-color: #ff6b9d; }
.triangle-div.yellow-div { background: transparent; border-bottom-color: #ffd93d; }
.triangle-div.teal-div { background: transparent; border-bottom-color: #4ecdc4; }
.triangle-div.purple-div { background: transparent; border-bottom-color: #6c5ce7; }

/* ============================================
   QUEST PANELS
   ============================================ */
.quests {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.quest-panel {
    background: #ffffff;
    border: 2px solid #1a1a1a;
    border-radius: 14px;
    padding: 2rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.quest-panel:hover {
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 #1a1a1a;
}

/* Panel decorative shapes */
.panel-deco {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 70px;
    height: 70px;
    opacity: 0.35;
    border: 2px solid #1a1a1a;
    transition: opacity 0.3s ease;
}

.quest-panel:hover .panel-deco {
    opacity: 0.55;
}

.circle-deco {
    border-radius: 50%;
}

.triangle-deco {
    border-radius: 0;
    border: none;
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    opacity: 0.35;
}

.teal-deco { background: #4ecdc4; }
.pink-deco { background: #ff6b9d; }
.purple-deco {
    border-bottom: 60px solid #6c5ce7;
}
.yellow-deco {
    border-bottom: 60px solid #ffd93d;
}

.quest-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1rem;
    border: 2px solid #1a1a1a;
}

.pink-badge { background: #ff6b9d; }
.yellow-badge { background: #ffd93d; color: #1a1a1a; }
.teal-badge { background: #4ecdc4; }
.purple-badge { background: #6c5ce7; }

.quest-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
}

/* Zigzag lines between heading and body text */
.zigzag-line {
    height: 4px;
    width: 60px;
    margin-bottom: 0.75rem;
    border-radius: 2px;
}

.pink-zigzag {
    background: repeating-linear-gradient(90deg, #ff6b9d 0px, #ff6b9d 8px, transparent 8px, transparent 14px);
}
.yellow-zigzag {
    background: repeating-linear-gradient(90deg, #ffd93d 0px, #ffd93d 8px, transparent 8px, transparent 14px);
}
.teal-zigzag {
    background: repeating-linear-gradient(90deg, #4ecdc4 0px, #4ecdc4 8px, transparent 8px, transparent 14px);
}
.purple-zigzag {
    background: repeating-linear-gradient(90deg, #6c5ce7 0px, #6c5ce7 8px, transparent 8px, transparent 14px);
}

.quest-desc {
    font-size: 0.9rem;
    color: #2d3436;
    margin-bottom: 1rem;
    line-height: 1.65;
}

.quest-footer {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.quest-meta {
    font-family: 'Roboto', sans-serif;
    font-size: 0.72rem;
    color: #6c5ce7;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-preview {
    position: absolute;
    bottom: 1.2rem;
    right: 1.5rem;
    opacity: 0.2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quest-panel:hover .badge-preview {
    opacity: 0.5;
    transform: rotate(10deg);
}

.badge-svg {
    display: block;
}

/* ============================================
   ACHIEVEMENT GALLERY
   ============================================ */
.gallery {
    padding: 3.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

.gallery-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0;
}

.badge-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 1.5rem;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #6c5ce7 #f5f0e8;
}

.badge-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.badge-scroll-wrapper::-webkit-scrollbar-track {
    background: #f5f0e8;
    border-radius: 3px;
}

.badge-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #6c5ce7;
    border-radius: 3px;
}

.badge-scroll {
    display: flex;
    gap: 2rem;
    padding: 0.5rem 2rem;
    width: max-content;
    min-width: 100%;
    justify-content: center;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-6px);
}

.badge-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge-item:hover .badge-circle {
    box-shadow: 3px 3px 0 #1a1a1a;
}

.pink-bg { background: #ff6b9d; }
.yellow-bg { background: #ffd93d; }
.teal-bg { background: #4ecdc4; }
.purple-bg { background: #6c5ce7; }

.locked-bg {
    background: transparent;
    border-style: dashed;
    border-color: #2d3436;
    opacity: 0.5;
}

.badge-name {
    font-family: 'Roboto', sans-serif;
    font-size: 0.78rem;
    color: #1a1a1a;
    font-weight: 400;
}

.badge-status {
    font-family: 'Roboto', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 10px;
}

.badge-status.completed {
    background: #4ecdc4;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.badge-status.active {
    background: #ffd93d;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}

.badge-status.locked {
    background: transparent;
    color: #2d3436;
    border: 1px dashed #2d3436;
    opacity: 0.5;
}

/* ============================================
   NEXT QUEST SECTION
   ============================================ */
.next-quest {
    text-align: center;
    padding: 5rem 1.5rem 6rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.next-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.next-shape {
    position: absolute;
}

.next-circle-teal {
    width: 90px;
    height: 90px;
    background: #4ecdc4;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    top: 15%;
    left: 8%;
    opacity: 0.25;
}

.next-triangle-yellow {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #ffd93d;
    bottom: 20%;
    right: 10%;
    opacity: 0.25;
}

.arrow-shape {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-top: 50px solid #ff6b9d;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.next-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    color: #1a1a1a;
    margin-bottom: 0;
}

.next-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #2d3436;
    margin-top: 0.5rem;
}

.next-cta-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.cta-shape {
    display: block;
    transition: transform 0.3s ease;
}

.cta-shape:hover {
    transform: scale(1.2) rotate(15deg);
}

.cta-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}

.yellow-tri {
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 24px solid #ffd93d;
}

/* ============================================
   FADE IN ANIMATION
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .hero .shape {
        transform: scale(0.6);
    }

    .circle-pink { top: 5%; left: 2%; }
    .triangle-yellow { top: 8%; right: 2%; }
    .circle-teal.small { top: 70%; left: 2%; }
    .circle-purple { bottom: 8%; right: 5%; }
    .zigzag-pink { display: none; }
    .circle-yellow-large { display: none; }
    .triangle-teal { display: none; }
    .zigzag-yellow { display: none; }

    .brand {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .quest-panel {
        padding: 1.5rem;
    }

    .badge-scroll {
        justify-content: flex-start;
        padding: 0.5rem 1rem;
    }

    .edge-circle {
        display: none;
    }

    .shape-divider {
        gap: 0.5rem;
    }
}
