/* glolos.com - Global + Local Localization Platform */

/* CSS Custom Properties */
:root {
    --color-cream: #fef7ed;
    --color-navy: #1d3557;
    --color-pink: #ff6b6b;
    --color-blue: #4361ee;
    --color-yellow: #ffd166;
    --color-green: #06d6a0;
    --color-purple: #7b68ee;
    --color-charcoal: #2b2d42;
    --color-text: #1d3557;
    --scroll: 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Dela Gothic One', cursive;
    font-weight: 400;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
}

p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.example {
    font-family: 'Fira Mono', monospace;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.8rem;
    padding: 0.5rem 0;
    border-left: 3px solid currentColor;
    padding-left: 0.8rem;
}

/* Memphis Shapes */
.shape {
    position: fixed;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    animation: float 20s ease-in-out infinite;
}

.shape-circle {
    width: 60px;
    height: 60px;
    background-color: var(--color-pink);
    border-radius: 50%;
    border: 2px solid var(--color-charcoal);
    animation-delay: calc(var(--index) * 0.5s);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid var(--color-blue);
    filter: drop-shadow(2px 2px 0 var(--color-charcoal));
    animation-delay: calc(var(--index) * 0.5s);
}

.shape-square {
    width: 50px;
    height: 50px;
    background-color: var(--color-green);
    border: 2px solid var(--color-charcoal);
    transform: rotate(15deg);
    animation-delay: calc(var(--index) * 0.5s);
}

.shape-semicircle {
    width: 60px;
    height: 30px;
    background-color: var(--color-yellow);
    border-radius: 60px 60px 0 0;
    border: 2px solid var(--color-charcoal);
    animation-delay: calc(var(--index) * 0.5s);
}

.shape-rectangle {
    width: 80px;
    height: 40px;
    background-color: var(--color-purple);
    border: 2px solid var(--color-charcoal);
    animation-delay: calc(var(--index) * 0.5s);
}

.shape-zigzag {
    width: 60px;
    height: 40px;
    background: linear-gradient(45deg, transparent 48%, var(--color-pink) 48%, var(--color-pink) 52%, transparent 52%),
                linear-gradient(-45deg, transparent 48%, var(--color-blue) 48%, var(--color-blue) 52%, transparent 52%);
    background-size: 15px 15px;
    background-position: 0 0, 0 10px;
    border: 2px solid var(--color-charcoal);
    animation-delay: calc(var(--index) * 0.5s);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-cream) 0%, rgba(255, 107, 107, 0.05) 100%);
    padding: 60px 20px;
    position: relative;
}

.hero-container {
    text-align: center;
    max-width: 1000px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--color-navy);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-pink);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* Globe Mosaic */
.globe-mosaic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    perspective: 1000px;
}

.globe-mosaic {
    width: 60vw;
    max-width: 500px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--color-navy);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    border: 3px solid var(--color-charcoal);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.mosaic-tile {
    position: relative;
    background-color: var(--tile-color);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
}

.mosaic-tile:hover {
    background-color: var(--tile-color);
    filter: brightness(1.1);
    transform: rotateY(180deg);
}

.tile-back {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateY(180deg);
    background: var(--tile-color);
}

.culture-icon {
    width: 60%;
    height: 60%;
    stroke: var(--color-charcoal);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.culture-icon.small {
    width: 100%;
    height: 100%;
    max-width: 60px;
    max-height: 60px;
}

/* Zigzag Divider */
.zigzag-divider {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    margin: 40px 0;
    background: var(--color-cream);
}

.zigzag-divider svg {
    width: 100%;
    height: 100%;
}

/* BROKEN GRID SECTION */
.broken-grid-section {
    padding: 80px 5%;
    background: white;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-navy);
    margin-bottom: 3rem;
    letter-spacing: 0.02em;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.broken-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-block {
    background-color: var(--color);
    padding: 2rem;
    border-radius: 8px;
    border: 3px solid var(--color-charcoal);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.grid-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.block-content h3 {
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.block-content p {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.grid-block .culture-icon.small {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.3;
}

/* LOCALE TRANSFORMATION SECTION */
.locale-transformation {
    padding: 80px 5%;
    background: var(--color-cream);
    position: relative;
    z-index: 2;
}

.transformation-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 3rem;
}

.transformation-block {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 3px solid var(--color-charcoal);
    position: relative;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.transformation-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.locale-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    margin-bottom: 1rem;
}

.transformation-block h3 {
    color: var(--color-navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.transformation-block p {
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.action-link {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.action-link:hover {
    color: var(--color-pink);
    text-decoration: underline;
}

/* Locale-specific styles */
.transformation-block.original {
    background: white;
}

.transformation-block.japanese {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    font-family: 'Nunito Sans', 'Noto Sans JP', sans-serif;
}

.transformation-block.japanese h3 {
    font-family: 'Noto Sans JP', serif;
    font-size: 1.4rem;
}

.transformation-block.arabic {
    background: linear-gradient(135deg, #fef7ed 0%, #fff9f0 100%);
    direction: rtl;
    text-align: right;
    font-family: 'Nunito Sans', 'Noto Sans Arabic', sans-serif;
}

.transformation-block.arabic h3 {
    font-family: 'Noto Sans Arabic', sans-serif;
}

.transformation-block.brazilian {
    background: linear-gradient(135deg, #fffbf0 0%, #fff5e6 100%);
    border-radius: 30px;
    border: 3px dashed var(--color-pink);
}

.transformation-block.brazilian h3 {
    color: var(--color-pink);
    font-size: 1.5rem;
}

.transformation-block.brazilian p {
    color: #cc3333;
}

/* Connection lines */
.connection-lines {
    display: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

/* LOCALE SELECTOR SECTION */
.locale-selector-section {
    padding: 80px 5%;
    background: white;
    position: relative;
    z-index: 2;
}

.locale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 2rem auto;
}

.locale-btn {
    background: var(--color-cream);
    border: 3px solid var(--color-charcoal);
    padding: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Dela Gothic One', cursive;
    aspect-ratio: 1;
}

.locale-btn .flag {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.locale-btn .locale-name {
    font-size: 0.8rem;
    color: var(--color-navy);
    text-align: center;
    word-break: break-word;
}

.locale-btn:hover {
    background: var(--color-yellow);
    transform: scale(1.1);
}

.locale-btn.active {
    background: var(--color-blue);
    color: white;
    border-color: var(--color-navy);
}

.locale-btn.active .locale-name {
    color: white;
}

.locale-preview {
    background: linear-gradient(135deg, var(--color-cream) 0%, rgba(255, 200, 100, 0.1) 100%);
    padding: 3rem;
    border-radius: 12px;
    border: 3px dashed var(--color-charcoal);
    max-width: 700px;
    margin: 3rem auto;
    text-align: center;
}

.preview-content h3 {
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.preview-content p {
    color: #555;
    font-size: 1rem;
}

/* FOOTER */
.footer {
    background: var(--color-navy);
    color: white;
    padding: 3rem;
    text-align: center;
    border-top: 3px solid var(--color-charcoal);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h3 {
    font-family: 'Dela Gothic One', cursive;
    font-size: 1.8rem;
    color: var(--color-yellow);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.footer-tagline p {
    font-size: 1rem;
    color: var(--color-green);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .broken-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .grid-block {
        grid-column: span 1 !important;
        transform: rotate(0deg) !important;
    }

    .globe-mosaic {
        width: 70vw;
    }
}

@media (max-width: 768px) {
    .broken-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .globe-mosaic {
        width: 80vw;
    }

    .transformation-container {
        grid-template-columns: 1fr;
    }

    .locale-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .locale-btn {
        padding: 15px;
    }

    .locale-btn .flag {
        font-size: 2rem;
    }

    .shape {
        opacity: 0.08;
    }
}

@media (max-width: 480px) {
    .broken-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 15px;
    }

    .broken-grid-section {
        padding: 40px 3%;
    }

    .locale-transformation {
        padding: 40px 3%;
    }

    .locale-selector-section {
        padding: 40px 3%;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .locale-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .globe-mosaic {
        width: 90vw;
    }
}

/* Parallax scroll effect */
@supports (animation-timeline: view()) {
    .shape {
        animation: parallax linear;
        animation-timeline: view();
    }

    @keyframes parallax {
        to {
            transform: translateY(var(--scroll));
        }
    }
}

/* Print styles */
@media print {
    .shape {
        display: none;
    }

    .zigzag-divider {
        page-break-before: avoid;
    }
}
