/* glolos.com - Maximalist Cultural Mosaic */
/* Palette:
   Global Red: #E84060
   Ocean Teal: #2888A0
   Saffron Gold: #E8B830
   Tapestry Cream: #FAF4E8
   Forest Deep: #2A6848
   Earth Clay: #B87048
   Text Dark: #1A1818
   Text Light: #F0E8D8
*/

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: #1A1818;
    background-color: #FAF4E8;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAF4E8;
    overflow: hidden;
}

.mosaic-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    grid-auto-rows: 50px;
    gap: 2px;
    z-index: 0;
}

.mosaic-cell {
    border-radius: 3px;
    opacity: 0;
    transition: opacity 100ms ease;
}

.hero-center {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: clamp(4rem, 12vw, 8rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 24px;
}

.letter {
    display: inline-block;
    opacity: 0;
    transition: opacity 200ms ease;
}

.hero-subtitle {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1A1818;
    max-width: 550px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 600ms ease;
}

/* Cultural Panels */
.cultural-panel {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.panel-pattern {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 800ms ease;
    z-index: 0;
}

/* East Asian - geometric lattice */
.panel-eastasian {
    background-color: #0D2D38;
}

.panel-eastasian .panel-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='5' width='30' height='30' fill='none' stroke='%232888A0' stroke-width='0.5' transform='rotate(45 20 20)'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

.panel-eastasian .panel-content {
    color: #F0E8D8;
}

/* European - floral curves */
.panel-european {
    background-color: #0F2E1E;
}

.panel-european .panel-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='%232A6848' stroke-width='0.5'/%3E%3Ccircle cx='30' cy='10' r='8' fill='none' stroke='%232A6848' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='50' r='8' fill='none' stroke='%232A6848' stroke-width='0.3'/%3E%3Ccircle cx='10' cy='30' r='8' fill='none' stroke='%232A6848' stroke-width='0.3'/%3E%3Ccircle cx='50' cy='30' r='8' fill='none' stroke='%232A6848' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.panel-european .panel-content {
    color: #F0E8D8;
}

/* African / Latin American - zigzag chevrons */
.panel-african {
    background-color: #2A1810;
}

.panel-african .panel-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 L20,0 L40,20' fill='none' stroke='%23B87048' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 40px 20px;
}

.panel-african .panel-content {
    color: #F0E8D8;
}

/* Global Blend - overlapping circles */
.panel-global {
    background-color: #1A1818;
}

.panel-global .panel-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='25' cy='25' r='15' fill='none' stroke='%23E84060' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='15' fill='none' stroke='%23E84060' stroke-width='0.3'/%3E%3Ccircle cx='50' cy='50' r='15' fill='none' stroke='%23E84060' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 50px 50px;
}

.panel-global .panel-content {
    color: #F0E8D8;
}

.panel-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

.panel-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
    display: block;
    margin-bottom: 16px;
}

.panel-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 24px;
}

.panel-eastasian .panel-title { color: #2888A0; }
.panel-european .panel-title { color: #2A6848; }
.panel-african .panel-title { color: #B87048; }
.panel-global .panel-title { color: #E84060; }

.panel-text {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Transition Zones */
.transition-zone {
    height: 120px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, transparent, #FAF4E8 50%, transparent);
}

.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    opacity: 0.2;
    animation: particleFloat 8s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -15px); }
    50% { transform: translate(-5px, 10px); }
    75% { transform: translate(15px, 5px); }
}

/* Floating Dot Navigation */
.nav-dot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 12px;
    height: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 300ms ease;
}

.nav-dot.visible {
    opacity: 1;
}

.dot-core {
    width: 12px;
    height: 12px;
    background-color: #E84060;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 300ms ease-out, height 300ms ease-out, background-color 500ms ease;
    animation: dotPulse 2s infinite ease-in-out;
}

@keyframes dotPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.dot-menu {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease;
}

.nav-dot.expanded {
    width: 200px;
    height: 200px;
}

.nav-dot.expanded .dot-core {
    width: 200px;
    height: 200px;
    background-color: rgba(232, 64, 96, 0.9);
    animation: none;
}

.nav-dot.expanded .dot-menu {
    opacity: 1;
    pointer-events: auto;
}

.dot-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F0E8D8;
    text-decoration: none;
    position: absolute;
    white-space: nowrap;
    cursor: pointer;
    transition: color 200ms ease;
}

.dot-label:nth-child(1) { top: 20px; left: 50%; transform: translateX(-50%); }
.dot-label:nth-child(2) { right: 15px; top: 50%; transform: translateY(-50%); }
.dot-label:nth-child(3) { bottom: 20px; left: 50%; transform: translateX(-50%); }
.dot-label:nth-child(4) { left: 15px; top: 50%; transform: translateY(-50%); }

.dot-label:hover {
    color: #E8B830;
}

/* Footer */
.footer {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-mosaic {
    position: absolute;
    inset: 0;
}

.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}

.footer-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: #1A1818;
    margin-bottom: 8px;
}

.footer-meta {
    font-family: 'Merriweather', serif;
    font-size: 0.85rem;
    color: #1A1818;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .panel-content {
        padding: 32px 20px;
    }

    .nav-dot {
        bottom: 16px;
        right: 16px;
    }
}
