/**
 * ============================================
 * BABYTUMS LEGO DESIGN SYSTEM
 * ============================================
 * A playful, colorful design inspired by LEGO blocks
 * Brand Colors: Yellow, Orange, Turquoise, Green, Blue
 */

/* ===== LEGO COLOR PALETTE ===== */
:root {
    /* Primary LEGO Brand Colors */
    --lego-yellow: #FFD700;
    --lego-bright-yellow: #FFE44D;
    --lego-orange: #FF8C42;
    --lego-bright-orange: #FFA566;
    --lego-turquoise: #00CED1;
    --lego-light-turquoise: #40E0D0;
    --lego-green: #32CD32;
    --lego-lime-green: #7FFF00;
    --lego-blue: #4169E1;
    --lego-sky-blue: #87CEEB;

    /* Extended Palette */
    --lego-red: #E74C3C;
    --lego-pink: #FF69B4;
    --lego-purple: #9B59B6;
    --lego-white: #FFFFFF;
    --lego-light-gray: #F5F5F5;
    --lego-gray: #95A5A6;
    --lego-dark-gray: #34495E;
    --lego-black: #2C3E50;

    /* Gradients */
    --lego-gradient-primary: linear-gradient(135deg, var(--lego-yellow) 0%, var(--lego-orange) 100%);
    --lego-gradient-cool: linear-gradient(135deg, var(--lego-turquoise) 0%, var(--lego-blue) 100%);
    --lego-gradient-fresh: linear-gradient(135deg, var(--lego-green) 0%, var(--lego-turquoise) 100%);
    --lego-gradient-rainbow: linear-gradient(90deg,
        var(--lego-red) 0%,
        var(--lego-orange) 20%,
        var(--lego-yellow) 40%,
        var(--lego-green) 60%,
        var(--lego-turquoise) 80%,
        var(--lego-blue) 100%);

    /* Shadows for 3D Effect */
    --lego-shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --lego-shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --lego-shadow-large: 0 8px 16px rgba(0, 0, 0, 0.2);
    --lego-shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
    --lego-shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.1);

    /* 3D Brick Shadows */
    --lego-brick-shadow:
        0 1px 0 rgba(0, 0, 0, 0.1),
        0 2px 0 rgba(0, 0, 0, 0.1),
        0 3px 0 rgba(0, 0, 0, 0.1),
        0 4px 0 rgba(0, 0, 0, 0.1),
        0 5px 8px rgba(0, 0, 0, 0.15);

    /* Spacing */
    --lego-unit: 8px;
    --lego-space-xs: calc(var(--lego-unit) * 0.5);
    --lego-space-sm: var(--lego-unit);
    --lego-space-md: calc(var(--lego-unit) * 2);
    --lego-space-lg: calc(var(--lego-unit) * 3);
    --lego-space-xl: calc(var(--lego-unit) * 4);
    --lego-space-xxl: calc(var(--lego-unit) * 6);

    /* Border Radius */
    --lego-radius-sm: 4px;
    --lego-radius-md: 8px;
    --lego-radius-lg: 12px;
    --lego-radius-xl: 16px;
    --lego-radius-round: 50%;

    /* Typography */
    --lego-font-primary: 'Nunito', 'Comic Sans MS', cursive, sans-serif;
    --lego-font-heading: 'Comfortaa', 'Fredoka One', 'Nunito', sans-serif;
}

/* ===== LEGO TYPOGRAPHY ===== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@300;400;600;700;800;900&family=Comfortaa:wght@400;600;700&display=swap');

/* CandyCake Custom Font */
@font-face {
    font-family: 'CandyCake';
    src: url('/fonts/candy-cake.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body.lego-theme {
    font-family: var(--lego-font-primary) !important;
    background: var(--lego-light-gray);
}

/* Use standard fonts for body text, numbers, and special characters */
body, p, span, div, a, li, td, th, label, input, textarea, select, button {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Apply CandyCake ONLY to headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'CandyCake', 'Comfortaa', 'Nunito', sans-serif !important;
}

.lego-heading {
    font-family: 'CandyCake', var(--lego-font-heading);
    font-weight: 700;
    color: var(--lego-black);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.lego-heading-playful {
    font-family: 'CandyCake', 'Fredoka One', var(--lego-font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ===== LEGO STUD PATTERN (Decorative) ===== */
.lego-studs {
    position: relative;
}

.lego-studs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 25%, transparent 25%),
        radial-gradient(circle, rgba(255, 255, 255, 0.2) 25%, transparent 25%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    pointer-events: none;
    opacity: 0.6;
}

/* Studs with specific spacing */
.lego-studs-small::before {
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.lego-studs-large::before {
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

/* ===== LEGO BRICK BUTTONS ===== */
.lego-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--lego-space-md) var(--lego-space-xl);
    font-family: var(--lego-font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: var(--lego-radius-lg);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--lego-brick-shadow);
    transform-style: preserve-3d;
}

/* Brick studs on top of button */
.lego-btn::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    width: calc(100% - 40px);
    height: 12px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 5px, transparent 5px);
    background-size: 20px 20px;
    background-position: center;
    background-repeat: repeat-x;
    pointer-events: none;
}

.lego-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.1),
        0 3px 0 rgba(0, 0, 0, 0.1),
        0 4px 0 rgba(0, 0, 0, 0.1),
        0 5px 0 rgba(0, 0, 0, 0.1),
        0 6px 0 rgba(0, 0, 0, 0.1),
        0 7px 0 rgba(0, 0, 0, 0.1),
        0 10px 16px rgba(0, 0, 0, 0.2);
}

.lego-btn:active {
    transform: translateY(2px);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Button Color Variants */
.lego-btn-yellow {
    background: var(--lego-gradient-primary);
    color: white;
}

.lego-btn-yellow:hover {
    color: black;
}

.lego-btn-blue {
    background: var(--lego-gradient-cool);
    color: var(--lego-white);
}

.lego-btn-blue:hover {
    color: black;
}

.lego-btn-green {
    background: var(--lego-gradient-fresh);
    color: var(--lego-white);
}

.lego-btn-green:hover {
    color: black;
}

.lego-btn-orange {
    background: linear-gradient(135deg, var(--lego-orange) 0%, var(--lego-red) 100%);
    color: var(--lego-white);
}

.lego-btn-orange:hover {
    color: black;
}

.lego-btn-rainbow {
    background: var(--lego-gradient-rainbow);
    color: var(--lego-white);
    background-size: 200% 100%;
    animation: lego-rainbow-shift 3s ease infinite;
}

.lego-btn-rainbow:hover {
    color: black;
}

@keyframes lego-rainbow-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Button Sizes */
.lego-btn-sm {
    padding: var(--lego-space-sm) var(--lego-space-md);
    font-size: 0.85rem;
}

.lego-btn-lg {
    padding: var(--lego-space-lg) calc(var(--lego-space-xl) * 1.5);
    font-size: 1.2rem;
}

.lego-btn-icon {
    display: inline-flex;
    align-items: center;
    gap: var(--lego-space-sm);
}

/* ===== LEGO BRICK CARDS ===== */
.lego-card {
    position: relative;
    background: var(--lego-white);
    border-radius: var(--lego-radius-xl);
    padding: var(--lego-space-xl);
    box-shadow: var(--lego-brick-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.lego-card h1, .lego-card h2, .lego-card h3, .lego-card h4, .lego-card h5, .lego-card h6 {
    font-family: 'CandyCake', var(--lego-font-heading) !important;
}

/* Ensure card body text uses standard fonts */
.lego-card p, .lego-card span, .lego-card div, .lego-card a, .lego-card li {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.lego-card::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 60px);
    height: 20px;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.05) 8px, transparent 8px);
    background-size: 35px 35px;
    background-position: center;
    background-repeat: repeat-x;
}

.lego-card:hover {
    transform: translateY(-6px) rotateY(2deg);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.1),
        0 4px 0 rgba(0, 0, 0, 0.1),
        0 6px 0 rgba(0, 0, 0, 0.1),
        0 8px 0 rgba(0, 0, 0, 0.1),
        0 10px 0 rgba(0, 0, 0, 0.1),
        0 15px 25px rgba(0, 0, 0, 0.25);
}

/* Colored Card Variants */
.lego-card-yellow {
    background: var(--lego-gradient-primary);
}

.lego-card-blue {
    background: var(--lego-gradient-cool);
    color: var(--lego-white);
}

.lego-card-new-blue {
    background: #112c7d;
    color: var(--lego-white);
}

.lego-card-new-blue::before {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.25) 8px, transparent 8px);
}

.lego-card-green {
    background: var(--lego-gradient-fresh);
    color: var(--lego-white);
}

.lego-card-orange {
    background: linear-gradient(135deg, var(--lego-orange) 0%, var(--lego-bright-orange) 100%);
    color: var(--lego-white);
}

/* Product Card with LEGO styling */
.lego-product-card {
    position: relative;
    background: var(--lego-white);
    border-radius: var(--lego-radius-xl);
    overflow: hidden;
    box-shadow: var(--lego-brick-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lego-product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.lego-product-card .lego-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--lego-light-gray);
}

.lego-product-card .lego-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.05) 6px, transparent 6px);
    background-size: 25px 25px;
    background-position: center;
    background-repeat: repeat-x;
    z-index: 1;
}

.lego-product-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lego-product-card:hover img {
    transform: scale(1.1);
}

.lego-product-card .lego-content {
    padding: var(--lego-space-lg);
}

.lego-product-card .lego-content h1,
.lego-product-card .lego-content h2,
.lego-product-card .lego-content h3,
.lego-product-card .lego-content h4,
.lego-product-card .lego-content h5,
.lego-product-card .lego-content h6 {
    font-family: 'CandyCake', var(--lego-font-heading) !important;
}

/* Ensure product card body text uses standard fonts */
.lego-product-card .lego-content p,
.lego-product-card .lego-content span,
.lego-product-card .lego-content div,
.lego-product-card .lego-content a,
.lego-product-card .lego-content li {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* ===== LEGO BRICK SECTIONS ===== */
.lego-section {
    position: relative;
    padding: var(--lego-space-xxl) 0;
    overflow: hidden;
}

/* Interlocking brick pattern background */
.lego-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(to right, transparent 48%, rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0.02) 52%, transparent 52%),
        linear-gradient(to bottom, transparent 48%, rgba(0, 0, 0, 0.02) 48%, rgba(0, 0, 0, 0.02) 52%, transparent 52%);
    background-size: 100px 100px;
    opacity: 0.3;
    pointer-events: none;
}

/* Colored Section Variants */
.lego-section-yellow {
    background: var(--lego-gradient-primary);
}

.lego-section-blue {
    background: var(--lego-gradient-cool);
    color: var(--lego-white);
}

.lego-section-green {
    background: var(--lego-gradient-fresh);
    color: var(--lego-white);
}

.lego-section-white {
    background: var(--lego-white);
}

/* ===== LEGO BRICK SEPARATORS ===== */
.lego-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--lego-space-xl) 0;
    gap: var(--lego-space-md);
}

.lego-separator::before,
.lego-separator::after {
    content: '';
    flex: 1;
    height: 8px;
    background: var(--lego-gradient-rainbow);
    border-radius: var(--lego-radius-sm);
    box-shadow: var(--lego-shadow-small);
}

.lego-separator-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--lego-gradient-primary);
    border-radius: var(--lego-radius-round);
    box-shadow: var(--lego-brick-shadow);
    font-size: 1.5rem;
}

/* ===== LEGO FLOATING BRICKS (Decorative) ===== */
.lego-floating-bricks {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.lego-brick-float {
    position: absolute;
    width: 60px;
    height: 40px;
    border-radius: var(--lego-radius-md);
    box-shadow: var(--lego-shadow-medium);
    opacity: 0.7;
}

.lego-brick-float::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    height: 12px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 4px, transparent 4px);
    background-size: 15px 15px;
    background-position: center;
    background-repeat: repeat-x;
}

/* Different colored floating bricks */
.lego-brick-yellow { background: var(--lego-yellow); }
.lego-brick-orange { background: var(--lego-orange); }
.lego-brick-turquoise { background: var(--lego-turquoise); }
.lego-brick-green { background: var(--lego-green); }
.lego-brick-blue { background: var(--lego-blue); }
.lego-brick-red { background: var(--lego-red); }

/* ===== LEGO ANIMATIONS ===== */
@keyframes lego-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes lego-float-slow {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-15px) translateX(10px);
    }
    75% {
        transform: translateY(-10px) translateX(-10px);
    }
}

@keyframes lego-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-5px);
    }
}

@keyframes lego-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes lego-click {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(0.95) translateY(2px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes lego-stack {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Apply animations - DISABLED FOR STATIC LEGOS */
/* .lego-float { animation: lego-float 3s ease-in-out infinite; } */
/* .lego-float-slow { animation: lego-float-slow 4s ease-in-out infinite; } */
/* .lego-bounce { animation: lego-bounce 2s ease-in-out infinite; } */
/* .lego-pop { animation: lego-pop 0.6s ease-in-out; } */
/* .lego-click { animation: lego-click 0.3s ease-in-out; } */
/* .lego-stack { animation: lego-stack 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; } */

/* Stagger delays */
/* .lego-float:nth-child(1) { animation-delay: 0s; } */
/* .lego-float:nth-child(2) { animation-delay: 0.5s; } */
/* .lego-float:nth-child(3) { animation-delay: 1s; } */
/* .lego-float:nth-child(4) { animation-delay: 1.5s; } */
/* .lego-float:nth-child(5) { animation-delay: 2s; } */
/* .lego-float:nth-child(6) { animation-delay: 2.5s; } */

/* ===== LEGO ICONS ===== */
.lego-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--lego-radius-lg);
    box-shadow: var(--lego-brick-shadow);
    font-size: 1.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lego-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 8px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 3px, transparent 3px);
    background-size: 12px 12px;
    background-position: center;
    background-repeat: repeat-x;
}

.lego-icon:hover {
    transform: translateY(-4px) rotate(5deg);
    box-shadow: var(--lego-shadow-xl);
}

.lego-icon-yellow { background: var(--lego-yellow); color: var(--lego-black); }
.lego-icon-orange { background: var(--lego-orange); color: var(--lego-white); }
.lego-icon-turquoise { background: var(--lego-turquoise); color: var(--lego-white); }
.lego-icon-green { background: var(--lego-green); color: var(--lego-white); }
.lego-icon-blue { background: var(--lego-blue); color: var(--lego-white); }

/* ===== LEGO BADGES ===== */
.lego-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--lego-space-xs) var(--lego-space-md);
    font-family: var(--lego-font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--lego-radius-lg);
    box-shadow: var(--lego-shadow-small);
}

.lego-badge-yellow { background: var(--lego-yellow); color: var(--lego-black); }
.lego-badge-orange { background: var(--lego-orange); color: var(--lego-white); }
.lego-badge-turquoise { background: var(--lego-turquoise); color: var(--lego-white); }
.lego-badge-green { background: var(--lego-green); color: var(--lego-white); }
.lego-badge-blue { background: var(--lego-blue); color: var(--lego-white); }

/* ===== LEGO NAVBAR ENHANCEMENTS ===== */
.lego-navbar {
    background: linear-gradient(135deg, var(--lego-yellow) 0%, var(--lego-orange) 50%, var(--lego-turquoise) 100%);
    box-shadow: var(--lego-brick-shadow);
    border-bottom: 4px solid rgba(0, 0, 0, 0.1);
}

.lego-navbar .lego-logo-container {
    position: relative;
    padding: var(--lego-space-sm);
    background: var(--lego-white);
    border-radius: var(--lego-radius-lg);
    box-shadow: var(--lego-shadow-medium);
    transition: all 0.3s ease;
}

.lego-navbar .lego-logo-container:hover {
    transform: translateY(-3px) rotate(-2deg);
    box-shadow: var(--lego-brick-shadow);
}

.lego-nav-link {
    position: relative;
    padding: var(--lego-space-sm) var(--lego-space-md);
    font-family: var(--lego-font-heading);
    font-weight: 600;
    color: var(--lego-white);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--lego-radius-md);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lego-nav-link:hover {
    background: var(--lego-white);
    color: var(--lego-orange);
    transform: translateY(-2px);
    box-shadow: var(--lego-shadow-medium);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .lego-btn {
        padding: var(--lego-space-sm) var(--lego-space-lg);
        font-size: 0.9rem;
    }

    .lego-card {
        padding: var(--lego-space-lg);
    }

    .lego-brick-float {
        width: 40px;
        height: 30px;
    }

    .lego-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.lego-shadow-sm { box-shadow: var(--lego-shadow-small); }
.lego-shadow-md { box-shadow: var(--lego-shadow-medium); }
.lego-shadow-lg { box-shadow: var(--lego-shadow-large); }
.lego-shadow-xl { box-shadow: var(--lego-shadow-xl); }

.lego-rounded { border-radius: var(--lego-radius-md); }
.lego-rounded-lg { border-radius: var(--lego-radius-lg); }
.lego-rounded-xl { border-radius: var(--lego-radius-xl); }

.lego-text-center { text-align: center; }
/* Use CandyCake for decorative playful text */
.lego-text-playful { font-family: 'CandyCake', var(--lego-font-heading) !important; font-weight: 400; }
/* Use standard fonts for non-decorative text */
.lego-text-standard { font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; }

.lego-mb-sm { margin-bottom: var(--lego-space-sm); }
.lego-mb-md { margin-bottom: var(--lego-space-md); }
.lego-mb-lg { margin-bottom: var(--lego-space-lg); }
.lego-mb-xl { margin-bottom: var(--lego-space-xl); }

.lego-mt-sm { margin-top: var(--lego-space-sm); }
.lego-mt-md { margin-top: var(--lego-space-md); }
.lego-mt-lg { margin-top: var(--lego-space-lg); }
.lego-mt-xl { margin-top: var(--lego-space-xl); }

.lego-p-sm { padding: var(--lego-space-sm); }
.lego-p-md { padding: var(--lego-space-md); }
.lego-p-lg { padding: var(--lego-space-lg); }
.lego-p-xl { padding: var(--lego-space-xl); }

/* ===== SCROLL REVEAL ANIMATIONS - DISABLED FOR STATIC LEGOS ===== */
/* .lego-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lego-reveal.lego-active {
    opacity: 1;
    transform: translateY(0);
}

.lego-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lego-reveal-left.lego-active {
    opacity: 1;
    transform: translateX(0);
}

.lego-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.lego-reveal-right.lego-active {
    opacity: 1;
    transform: translateX(0);
} */
