/* ═══════════════════════════════════════════════════════════
   OPIUM BIRD — Chrome / White / Black Aesthetic
   ═══════════════════════════════════════════════════════════ */

:root {
    --black: #0a0a0a;
    --black-light: #141414;
    --chrome: #c0c0c0;
    --chrome-bright: #e8e8e8;
    --chrome-dark: #8a8a8a;
    --white: #ffffff;
    --white-dim: rgba(255, 255, 255, 0.7);
    --white-ghost: rgba(255, 255, 255, 0.1);
    
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Cormorant Garamond', serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════
   BACKGROUND EFFECTS
   ═══════════════════════════════════════════════════════════ */

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.chrome-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(192, 192, 192, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(192, 192, 192, 0.05) 0%, transparent 50%),
        var(--black);
}

/* ═══════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════ */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0) 100%);
    backdrop-filter: blur(10px);
    
    -webkit-backdrop-filter: blur(10px);
}

.top-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-buttons {
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    border: none;
    transition: all 0.3s var(--ease-out-expo);
}

.social-btn:hover {
    background: var(--chrome);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.social-btn svg {
    flex-shrink: 0;
}

.tg-button {
    background: #26A5E4;
    color: var(--white);
}

.tg-button:hover {
    background: #1d8bc2;
}

.ca-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white-ghost);
    border: 1px solid rgba(192, 192, 192, 0.3);
    position: relative;
}

.ca-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--chrome);
}

.ca-value {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--white);
    cursor: pointer;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

.ca-value:hover {
    color: var(--chrome-bright);
}

.copy-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: var(--chrome);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s;
    pointer-events: none;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .top-bar {
        padding: 0.75rem 1rem;
    }
    
    .top-bar-inner {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .social-buttons {
        gap: 0.4rem;
    }
    
    .social-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .social-btn span {
        display: none;
    }
    
    .ca-address {
        padding: 0.4rem 0.75rem;
    }
    
    .ca-value {
        max-width: 120px;
        font-size: 0.6rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        linear-gradient(180deg, transparent 0%, var(--black) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(192, 192, 192, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.glitch-wrapper {
    position: relative;
}

.glitch {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    letter-spacing: 0.15em;
    color: var(--white);
    position: relative;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.1);
    animation: chromePulse 4s ease-in-out infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--chrome);
    animation: glitch1 3s infinite linear;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translateX(-2px);
    opacity: 0.8;
}

.glitch::after {
    color: var(--chrome-dark);
    animation: glitch2 3s infinite linear;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translateX(2px);
    opacity: 0.8;
}

@keyframes glitch1 {
    0%, 100% { transform: translateX(-2px); }
    25% { transform: translateX(2px); }
    50% { transform: translateX(-1px); }
    75% { transform: translateX(1px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translateX(2px); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(1px); }
    75% { transform: translateX(-1px); }
}

@keyframes chromePulse {
    0%, 100% { 
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(255, 255, 255, 0.3),
            0 0 40px rgba(255, 255, 255, 0.1);
    }
    50% { 
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 255, 255, 0.5),
            0 0 60px rgba(255, 255, 255, 0.2);
    }
}

.subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--chrome);
    margin-top: 1rem;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--chrome-dark);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--chrome), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 60px; }
    50% { opacity: 0.5; height: 40px; }
}

/* ═══════════════════════════════════════════════════════════
   CONTAINER & LAYOUT
   ═══════════════════════════════════════════════════════════ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.2em;
    color: var(--chrome);
    margin-bottom: 3rem;
    position: relative;
}

.section-title.center {
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, var(--chrome), transparent);
    margin-top: 1rem;
}

.section-title.center::after {
    margin: 1rem auto 0;
    background: linear-gradient(to right, transparent, var(--chrome), transparent);
}

/* ═══════════════════════════════════════════════════════════
   LORE SECTION
   ═══════════════════════════════════════════════════════════ */

.lore-section {
    background: 
        linear-gradient(180deg, var(--black) 0%, var(--black-light) 50%, var(--black) 100%);
    border-top: 1px solid var(--white-ghost);
    border-bottom: 1px solid var(--white-ghost);
}

.lore-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.lore-paragraph {
    font-size: 1.25rem;
    color: var(--white-dim);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.lore-paragraph.accent {
    color: var(--chrome-bright);
    font-weight: 600;
    font-style: normal;
    border-left: 2px solid var(--chrome);
    padding-left: 1.5rem;
}

.lore-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white-ghost);
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--white-ghost);
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--chrome-dark);
}

.stat-value {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--white);
}

.stat-value.blink {
    animation: blink 2s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════════════
   GALLERY SECTION
   ═══════════════════════════════════════════════════════════ */

.gallery-section {
    background: var(--black);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--black-light);
    border: 1px solid var(--white-ghost);
    transition: all 0.5s var(--ease-out-expo);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(6) {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.5s var(--ease-out-expo);
}

.gallery-item:hover img {
    filter: grayscale(50%) contrast(1.2);
    transform: scale(1.05);
}

.gallery-item:hover {
    border-color: var(--chrome);
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.1);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(6) {
        grid-column: span 1;
    }
}

/* ═══════════════════════════════════════════════════════════
   QUOTE SECTION
   ═══════════════════════════════════════════════════════════ */

.quote-section {
    background: 
        radial-gradient(ellipse at center, rgba(192, 192, 192, 0.05) 0%, transparent 70%),
        var(--black);
    text-align: center;
    padding: 10rem 0;
}

.big-quote {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-style: italic;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
    position: relative;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--chrome);
    vertical-align: -0.3em;
    margin: 0 0.2em;
    opacity: 0.5;
}

.quote-author {
    display: block;
    margin-top: 2rem;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--chrome-dark);
    font-style: normal;
}

/* ═══════════════════════════════════════════════════════════
   NATURE SECTION
   ═══════════════════════════════════════════════════════════ */

.nature-section {
    background: var(--black-light);
    border-top: 1px solid var(--white-ghost);
}

.nature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.nature-card {
    padding: 3rem 2rem;
    border: 1px solid var(--white-ghost);
    text-align: center;
    transition: all 0.5s var(--ease-out-expo);
    background: var(--black);
}

.nature-card:hover {
    border-color: var(--chrome);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--chrome);
    margin-bottom: 1.5rem;
}

.nature-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--white);
    margin-bottom: 1rem;
}

.nature-card p {
    font-size: 1rem;
    color: var(--white-dim);
}

/* ═══════════════════════════════════════════════════════════
   FINAL SECTION
   ═══════════════════════════════════════════════════════════ */

.final-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at bottom, rgba(192, 192, 192, 0.1) 0%, transparent 60%),
        var(--black);
}

.final-text {
    text-align: center;
}

.year {
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 15rem);
    color: transparent;
    -webkit-text-stroke: 1px var(--chrome);
    letter-spacing: 0.1em;
    display: block;
    line-height: 1;
    animation: yearPulse 3s ease-in-out infinite;
}

@keyframes yearPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.prophecy {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--chrome-dark);
    margin-top: 2rem;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

footer {
    padding: 3rem 0;
    border-top: 1px solid var(--white-ghost);
    background: var(--black);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--chrome);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--chrome-dark);
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS ON SCROLL
   ═══════════════════════════════════════════════════════════ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out-expo);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   SELECTION & SCROLLBAR
   ═══════════════════════════════════════════════════════════ */

::selection {
    background: var(--chrome);
    color: var(--black);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--chrome-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--chrome);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding-top: 80px;
    }
    
    .glitch {
        font-size: clamp(2.5rem, 12vw, 5rem);
        letter-spacing: 0.1em;
    }
    
    .subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
        padding: 0 1rem;
    }
    
    .scroll-indicator {
        bottom: 2rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        letter-spacing: 0.15em;
    }
    
    .lore-paragraph {
        font-size: 1.1rem;
    }
    
    .lore-stats {
        padding: 1.5rem;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .big-quote {
        font-size: clamp(1.2rem, 5vw, 2rem);
        padding: 0 1rem;
    }
    
    .quote-mark {
        font-size: 2.5rem;
    }
    
    .quote-section {
        padding: 6rem 0;
    }
    
    .nature-card {
        padding: 2rem 1.5rem;
    }
    
    .year {
        font-size: clamp(4rem, 18vw, 8rem);
    }
    
    .prophecy {
        font-size: 1.2rem;
    }
    
    .final-section {
        min-height: 50vh;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .glitch::before,
    .glitch::after {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-item:nth-child(6) {
        grid-column: span 1;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .gallery-item img {
        filter: grayscale(80%) contrast(1.1);
    }
    
    .nature-card:hover {
        transform: none;
    }
    
    .x-button:hover {
        transform: none;
    }
}

