/* ============================================
   Gerador de Portfólio CRM NewTrend
   Design System - React Bits Inspired
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    /* Colors - NewTrend (NASA / Mars Edition) */
    --bg-primary: #0b0d10;
    --bg-secondary: #12151c;
    --bg-tertiary: #1a1f2a;

    --accent-primary: #ff4f00;
    --accent-secondary: #ff7a33;
    --accent-tertiary: #c1440e;
    --accent-neutral: #3a1406;

    /* Legacy compatibility */
    --accent-purple: #ff4f00;
    --accent-pink: #ff7a33;
    --accent-blue: #c1440e;
    --accent-green: #22c55e;

    --text-primary: #ffffff;
    --text-secondary: #c7c7c7;
    --text-muted: #8a8f98;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 79, 0, 0.25);
    --glass-hover: rgba(255, 79, 0, 0.12);

    /* Typography */
    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Figtree', sans-serif;

    /* Spacing */
    --nav-height: 80px;
    --container-max: 1400px;
    --card-radius: 20px;
    --button-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   Ripple Grid Background Effect
   ============================================ */
/* Background Layer - Astronaut Image (Bottom) */
.hero-background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.hero-background-shapes::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('Background_astro_mars.png') center center / cover no-repeat;
    opacity: 0.4;
}

.hero-background-shapes::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(11, 13, 16, 0.3) 0%,
            rgba(11, 13, 16, 0.6) 50%,
            var(--bg-primary) 100%);
}

/* Ripple Grid Layer (Top) */
.aurora-container,
.ripple-grid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

.aurora,
.ripple-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 79, 0, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 79, 0, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    transform-origin: center center;
    animation: rippleWave 8s ease-in-out infinite;
}

.aurora::before,
.ripple-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 50% 50% at 50% 50%,
            transparent 0%,
            var(--bg-primary) 70%);
}

.aurora::after,
.ripple-grid::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center,
            rgba(255, 79, 0, 0.15) 0%,
            rgba(193, 68, 14, 0.08) 30%,
            transparent 60%);
    animation: ripplePulse 4s ease-in-out infinite;
}

@keyframes rippleWave {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        background-size: 60px 60px;
    }

    25% {
        transform: scale(1.02) rotate(0.3deg);
        background-size: 62px 62px;
    }

    50% {
        transform: scale(1.04) rotate(0deg);
        background-size: 64px 64px;
    }

    75% {
        transform: scale(1.02) rotate(-0.3deg);
        background-size: 62px 62px;
    }
}

@keyframes ripplePulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ============================================
   Header
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(6, 0, 16, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content {
    width: 100%;
    max-width: var(--container-max);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.5));
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Main Container
   ============================================ */
#main-container {
    margin-top: calc(var(--nav-height) + 40px);
    margin-bottom: 6rem;
    padding: 0 2rem;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Hero Section - NewTrend Mars Edition
   Animated Content Reveal + Glass Card
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 8rem 2rem 6rem;
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}



/* Glow Shapes - Mars Theme */
.shape {
    position: absolute;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatShape 12s ease-in-out infinite;
    z-index: 1;
}

.shape-1 {
    top: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.shape-2 {
    bottom: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
    animation-delay: 3s;
}

.shape-3 {
    top: 50%;
    left: 30%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation-delay: 6s;
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 15px) scale(0.95);
    }
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

/* Hero Header - Left Side with Animated Reveal */
.hero-header {
    text-align: left;
}

.hero-badge-wrapper {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: revealUp 0.8s ease-out 0.2s forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(255, 79, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Hero Title - Letter Reveal Animation */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    opacity: 0;
    animation: revealUp 0.8s ease-out 0.4s forwards;
}

/* Title Gradient Accent */
.hero-title span {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
    max-width: 90%;
    opacity: 0;
    animation: revealUp 0.8s ease-out 0.6s forwards;
}

/* Content Reveal Animation */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Content Card - Glass with Orange Glow */
.hero-content-card {
    background: rgba(11, 13, 16, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 60px rgba(255, 79, 0, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: revealUp 0.8s ease-out 0.8s forwards;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Spotlight Effect on Hover */
.hero-content-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 79, 0, 0.08) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hero-content-card:hover::before {
    opacity: 1;
}

.hero-content-card:hover {
    border-color: rgba(255, 79, 0, 0.4);
    box-shadow:
        0 0 80px rgba(255, 79, 0, 0.15),
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(255, 255, 255, 0.05);
}

.hero-description::-webkit-scrollbar {
    width: 4px;
}

.hero-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.hero-description::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

/* Rich Text Styling */
.hero-description p {
    margin-bottom: 1rem;
}

.hero-description strong {
    color: var(--accent-secondary);
    font-weight: 600;
}

.hero-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    list-style: none;
}

.hero-description li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.hero-description li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        min-height: auto;
        padding: 6rem 2rem 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-header {
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .hero-subtitle {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-content-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-content-card {
        padding: 1.5rem;
        background: rgba(11, 13, 16, 0.85);
    }

    .hero-description {
        max-height: 300px;
    }
}

/* ============================================
   Section Titles & Info
   ============================================ */
.section-header {
    margin: 4rem 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-description {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 800px;
}

.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 32px;
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-pink));
    border-radius: 4px;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 800px;
}

/* ============================================
   Cards Grid
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* ============================================
   Premium Card
   ============================================ */
.demand-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.demand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demand-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(168, 85, 247, 0.1);
}

.demand-card:hover::before {
    opacity: 1;
}

/* Card Header */
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.demand-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Card Media */
.card-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.swiper-slide img,
.swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease, opacity 0.5s ease;
    cursor: zoom-in;
}

/* Video info overlay - click to see details */
.video-info-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-slide:hover .video-info-overlay {
    opacity: 1;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s;
}

.info-icon:hover {
    background: var(--accent-purple);
    transform: scale(1.1);
}

.pdf-slide {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(168, 85, 247, 0.05));
}

.pdf-embed-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.pdf-embed {
    flex: 1;
    width: 100%;
    min-height: 300px;
    background: #1a1a1a;
    border: none;
    border-radius: 8px 8px 0 0;
}

.pdf-embed-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 8px 8px;
}

.pdf-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.pdf-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.pdf-open-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}

/* ============================================
   Lazy Loading Styles
   ============================================ */
.lazy-image {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.lazy-image.loaded {
    opacity: 1;
    animation: none;
    background: transparent;
}

.lazy-image.error {
    opacity: 0.5;
    animation: none;
    background: rgba(239, 68, 68, 0.1);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Card Footer */
.card-footer {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.file-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-count svg {
    opacity: 0.6;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--button-radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--accent-purple);
}

.btn-download {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn-download:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--accent-green);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-info {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-info:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-purple);
}

/* ============================================
   Swiper Customization
   ============================================ */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.3;
    width: 8px;
    height: 8px;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: var(--accent-purple);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.card-media:hover .swiper-button-next,
.card-media:hover .swiper-button-prev {
    opacity: 1;
    transform: scale(1);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-purple);
    box-shadow: 0 0 20px var(--accent-purple);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 0, 16, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 40px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Instagram-style split container */
.lightbox-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    max-height: 800px;
    background: var(--bg-secondary);
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.lightbox.active .lightbox-container {
    transform: scale(1);
    opacity: 1;
}

/* Left side - Media */
.lightbox-media {
    flex: 1;
    min-width: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-media img,
.lightbox-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-media .swiper {
    width: 100%;
    height: 100%;
}

.lightbox-media .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.lightbox-media .swiper-button-next,
.lightbox-media .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s;
}

.lightbox-media .swiper-button-next::after,
.lightbox-media .swiper-button-prev::after {
    font-size: 16px;
}

.lightbox-media:hover .swiper-button-next,
.lightbox-media:hover .swiper-button-prev {
    opacity: 1;
}

.lightbox-media .swiper-pagination-bullet {
    background: white;
}

.lightbox-media .swiper-pagination-bullet-active {
    background: var(--accent-purple);
}

/* Right side - Content */
.lightbox-content-panel {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.lightbox-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
    /* Fixed height fallback */
    line-height: 1.4;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.lightbox-close {
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    flex-shrink: 0;
}

.lightbox-close:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.lightbox-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Markdown content styling */
.lightbox-markdown {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.lightbox-markdown h1 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.lightbox-markdown h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin: 1.5rem 0 0.75rem 0;
}

.lightbox-markdown h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
}

.lightbox-markdown p {
    margin: 0.75rem 0;
}

.lightbox-markdown ul,
.lightbox-markdown ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.lightbox-markdown li {
    margin: 0.4rem 0;
}

.lightbox-markdown strong {
    color: var(--text-primary);
    font-weight: 600;
}

.lightbox-markdown code {
    background: var(--glass-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.lightbox-markdown blockquote {
    border-left: 3px solid var(--accent-purple);
    margin: 1rem 0;
    padding-left: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

.lightbox-markdown hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 1.5rem 0;
}

/* No info placeholder */
.lightbox-no-info {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

.lightbox-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.75rem;
}

/* Responsive lightbox */
@media (max-width: 900px) {
    .lightbox {
        padding: 0;
    }

    .lightbox-container {
        flex-direction: column;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }

    .lightbox-media {
        height: 50vh;
    }

    .lightbox-content-panel {
        width: 100%;
        height: 50vh;
        border-left: none;
        border-top: 1px solid var(--glass-border);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    #main-container {
        padding: 0 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intro-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .lightbox-nav-prev,
    .lightbox-nav-next {
        width: 50px;
        height: 50px;
        font-size: 36px;
    }

    .lightbox-nav-prev {
        left: 15px;
    }

    .lightbox-nav-next {
        right: 15px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   Form Elements - NewTrend Mars Theme
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--button-radius);
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(255, 79, 0, 0.2);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Button Styling */
button,
.btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--button-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 79, 0, 0.3);
    filter: brightness(1.1);
}

/* Specific styling for the Generator form container if needed */
.config-group {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.demand-card:nth-child(1) {
    animation-delay: 0.1s;
}

.demand-card:nth-child(2) {
    animation-delay: 0.2s;
}

.demand-card:nth-child(3) {
    animation-delay: 0.3s;
}

.demand-card:nth-child(4) {
    animation-delay: 0.4s;
}

.demand-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* ============================================
   Password Protection
   ============================================ */
.protected-section.locked {
    position: relative;
}

.password-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(59, 130, 246, 0.05));
    border: 1px dashed rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    margin-top: 1rem;
}

.password-box {
    text-align: center;
    padding: 2rem;
}

.password-box .lock-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.password-box h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.password-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.password-input {
    width: 200px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.password-input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.password-input.error {
    border-color: #ef4444;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.btn-unlock {
    display: block;
    width: 200px;
    margin: 0 auto 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.password-error {
    color: #ef4444;
    font-size: 0.85rem;
}

.demand-card:nth-child(6) {
    animation-delay: 0.6s;
}