/* ========================================
   pzz.lu - Styles
   Skeuomorphic tactile realism + Aurora-gradient futurism
   ======================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #0a0520;
    color: #f8f6ff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- Aurora Background ---- */
.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(
        135deg,
        #0a0520 0%,
        #5a0a9a 20%,
        #0a7a8a 40%,
        #0a0520 50%,
        #c47a8a 65%,
        #0a0520 75%,
        #d4870a 90%,
        #0a0520 100%
    );
    background-size: 400% 400%;
    animation: auroraShift 8s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes auroraShift {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 0% 50%; }
    100% { background-position: 0% 0%; }
}

/* ---- Skeleton Loading ---- */
.skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #0a0520;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.skeleton-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skeleton-container {
    width: 90%;
    max-width: 1100px;
}

.skeleton-hero {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.skeleton-line {
    background: linear-gradient(90deg, #1a1040 25%, #2a1a60 50%, #1a1040 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-line--title {
    width: 240px;
    height: 48px;
}

.skeleton-line--subtitle {
    width: 360px;
    height: 20px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.skeleton-cell {
    background: linear-gradient(90deg, #1a1040 25%, #2a1a60 50%, #1a1040 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
}

.skeleton-cell--large {
    grid-column: span 2;
    height: 200px;
}

.skeleton-cell--small {
    height: 200px;
}

.skeleton-cell--medium {
    grid-column: span 1;
    height: 160px;
}

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

/* ---- Main Content ---- */
.main-content {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-content.visible {
    opacity: 1;
}

/* ---- Hero Section ---- */
.hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
}

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

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #f8f6ff 0%, #0a7a8a 40%, #c47a8a 70%, #d4870a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-tagline {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #c0c8d4;
    margin-bottom: 24px;
}

.hero-accent-line {
    width: 80px;
    height: 3px;
    margin: 0 auto;
    background: linear-gradient(90deg, #0a7a8a, #5a0a9a, #c47a8a);
    border-radius: 2px;
}

/* ---- Bento Grid ---- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 60px;
}

/* ---- Bento Cell Variants ---- */
.bento-cell {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bento-cell:hover {
    transform: translateY(-4px);
}

.bento-cell--feature {
    grid-column: span 2;
    min-height: 260px;
}

.bento-cell--tall {
    grid-row: span 2;
    min-height: 400px;
}

.bento-cell--wide {
    grid-column: span 3;
    min-height: 180px;
}

.bento-cell--standard {
    min-height: 200px;
}

/* ---- Skeuomorphic Panel ---- */
.skeuomorphic-panel {
    background: rgba(240, 234, 255, 0.06);
    border: 1px solid rgba(192, 200, 212, 0.12);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

.skeuomorphic-panel:hover {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---- Cell Inner ---- */
.cell-inner {
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.cell-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0a7a8a;
    margin-bottom: 12px;
}

.cell-label--light {
    color: #c47a8a;
}

.cell-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #f8f6ff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.cell-title--light {
    color: #f0eaff;
}

.cell-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: #c0c8d4;
    line-height: 1.6;
}

.cell-text--handwritten {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #f0eaff;
    margin-top: auto;
    text-align: center;
}

.cell-text--light {
    color: #c0c8d4;
}

/* ---- Cell Textures (Skeuomorphic) ---- */
.cell-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
}

.cell-texture--paper {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 28px,
        rgba(192, 200, 212, 0.3) 28px,
        rgba(192, 200, 212, 0.3) 29px
    );
}

.cell-texture--leather {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212, 135, 10, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(90, 10, 154, 0.06) 0%, transparent 40%);
}

/* ---- Vision Cell ---- */
.vision-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.aurora-orb {
    width: 160px;
    height: 160px;
    animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* ---- Services Cell ---- */
.services-row {
    display: flex;
    gap: 32px;
    flex: 1;
    align-items: flex-start;
}

.service-item {
    flex: 1;
    text-align: center;
}

.service-icon {
    margin-bottom: 12px;
}

.service-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #f8f6ff;
    margin-bottom: 6px;
}

.service-desc {
    font-size: 0.8rem;
    color: #c0c8d4;
}

/* ---- Stats Cell ---- */
.stats-display {
    display: flex;
    gap: 40px;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #d4870a;
    line-height: 1;
}

.stat-unit {
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: #c0c8d4;
    margin-top: 4px;
    display: block;
}

/* ---- Quote Cell ---- */
.bento-cell--aurora {
    background: linear-gradient(135deg, rgba(90, 10, 154, 0.2) 0%, rgba(10, 122, 138, 0.15) 50%, rgba(196, 122, 138, 0.1) 100%);
}

.bento-cell--aurora .cell-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.quote-text {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: #f0eaff;
    font-style: normal;
    line-height: 1.4;
    margin-bottom: 12px;
}

.quote-author {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    color: #c0c8d4;
    font-style: normal;
}

/* ---- Process Cell ---- */
.process-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 1;
    padding: 12px 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a7a8a, #5a0a9a);
    border: 2px solid rgba(240, 234, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .step-dot {
    transform: scale(1.3);
    box-shadow: 0 0 16px rgba(10, 122, 138, 0.5);
}

.step-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    color: #c0c8d4;
    font-weight: 500;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(10, 122, 138, 0.4), rgba(90, 10, 154, 0.4));
    border-radius: 1px;
    margin: 0 8px;
    align-self: flex-start;
    margin-top: 7px;
}

/* ---- Tech Tags ---- */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.tech-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 16px;
    background: rgba(10, 122, 138, 0.15);
    border: 1px solid rgba(10, 122, 138, 0.3);
    border-radius: 20px;
    color: #0a7a8a;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.tech-tag:hover {
    background: rgba(10, 122, 138, 0.3);
    color: #f8f6ff;
    transform: scale(1.05);
}

/* ---- Contact Cell ---- */
.bento-cell--dark {
    background: linear-gradient(180deg, #0a0520 0%, rgba(10, 5, 32, 0.95) 100%);
    border: 1px solid rgba(196, 122, 138, 0.2);
}

.contact-button {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #f8f6ff;
    background: linear-gradient(135deg, #5a0a9a, #0a7a8a);
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(90, 10, 154, 0.3);
}

.contact-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(90, 10, 154, 0.5);
}

.contact-decoration {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    opacity: 0.6;
}

.contact-svg {
    width: 100%;
    height: 100%;
}

/* ---- Footer ---- */
.site-footer {
    position: relative;
    padding: 40px 24px 24px;
    text-align: center;
}

.footer-curve {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.footer-curve svg {
    width: 100%;
    height: 100%;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #f0eaff;
}

.footer-divider {
    color: #5a0a9a;
}

.footer-copy {
    font-size: 0.8rem;
    color: #c0c8d4;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-cell--feature {
        grid-column: span 2;
    }

    .bento-cell--wide {
        grid-column: span 2;
    }

    .bento-cell--tall {
        grid-row: span 1;
        min-height: 280px;
    }

    .services-row {
        flex-direction: column;
        gap: 20px;
    }
}

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

    .bento-cell--feature,
    .bento-cell--wide {
        grid-column: span 1;
    }

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

    .hero-tagline {
        font-size: 1.1rem;
    }

    .stats-display {
        flex-direction: column;
        gap: 24px;
    }

    .process-connector {
        width: 30px;
    }

    .skeleton-grid {
        grid-template-columns: 1fr;
    }

    .skeleton-cell--large {
        grid-column: span 1;
    }
}

/* ---- Bento Cell Reveal Animation ---- */
.bento-cell {
    opacity: 0;
    transform: translateY(30px);
}

.bento-cell.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}