/* ============================================
   Reset and Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #0d0d1a;
    color: #e0e0e0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
}

/* ============================================
   Canvas (Fixed Background)
   ============================================ */
#generative-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
}

/* ============================================
   Content Container
   ============================================ */
.content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 100vh auto auto auto;
    width: 100%;
}

/* ============================================
   Zones
   ============================================ */
.zone {
    position: relative;
    width: 100%;
    padding: clamp(4rem, 10vh, 8rem) 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zone-1 {
    grid-row: 1;
    height: 100vh;
    background: rgba(13, 13, 26, 0.95);
}

.zone-2 {
    grid-row: 2;
    background: rgba(13, 13, 26, 0.95);
    min-height: auto;
}

.zone-3 {
    grid-row: 3;
    background: rgba(13, 13, 26, 0.95);
    min-height: auto;
}

.zone-4 {
    grid-row: 4;
    background: rgba(13, 13, 26, 0.95);
    min-height: 100vh;
}

/* ============================================
   Zone 1: Hero
   ============================================ */
.hero-container {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.wordmark {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    color: #00e5a0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: pulse-glow 3s ease-in-out infinite;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #c4b5fd;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.counter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #c4b5fd;
    letter-spacing: 0.05em;
    margin-top: 2rem;
}

.count {
    font-variant-numeric: tabular-nums;
    color: #00e5a0;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #00e5a0;
    animation: bounce 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 229, 160, 0.3); }
    50% { text-shadow: 0 0 30px rgba(0, 229, 160, 0.6); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   Zone 2: Philosophy
   ============================================ */
.philosophy-container {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.philosophy-container h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.philosophy-container p {
    margin-bottom: 1.5rem;
    color: #e0e0e0;
    line-height: 1.8;
}

.reading-time {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #c4b5fd;
    letter-spacing: 0.05em;
    margin-top: 2rem;
}

/* ============================================
   Zone 3: Works
   ============================================ */
.works-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.works-container h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.project-ribbon {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem;
    scroll-behavior: smooth;
}

.project-item {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.project-preview {
    width: 200px;
    height: 200px;
    border: 2px solid #00e5a0;
    border-radius: 4px;
    background: rgba(26, 26, 62, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-preview:hover {
    border-color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.project-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: #c4b5fd;
    letter-spacing: 0.05em;
    text-align: center;
}

/* ============================================
   Zone 4: Contact
   ============================================ */
.contact-container {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.contact-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #c4b5fd;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.email-particle {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    color: #00e5a0;
    letter-spacing: 0.05em;
    position: relative;
    word-break: break-all;
    max-width: 90%;
}

.email-particle:hover {
    color: #ff6b35;
    transition: color 0.3s ease;
}

.reassemble-counter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #c4b5fd;
    letter-spacing: 0.05em;
}

/* ============================================
   Scan Lines Overlay
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 999;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .project-ribbon {
        gap: 1rem;
    }

    .project-item {
        flex: 0 0 150px;
    }

    .project-preview {
        width: 150px;
        height: 150px;
    }

    .zone {
        padding: clamp(2rem, 8vh, 4rem) 1.5rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
