/* X Coffee Landing - Premium Black & White */

:root {
    --white: #ffffff;
    --off-white: #f5f5f5;
    --gray-100: #e5e5e5;
    --gray-200: #cccccc;
    --gray-300: #999999;
    --gray-400: #666666;
    --gray-500: #333333;
    --black: #000000;
    --pure-black: #0a0a0a;
}

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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--black);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Video Background */
.video-container {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: grayscale(100%) contrast(1.1);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.5) 40%,
        rgba(0,0,0,0.6) 70%,
        rgba(0,0,0,0.85) 100%
    );
}

/* ===== AMBIENT EFFECTS ===== */
.ambient-glow {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: ambientPulse 4s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.15); }
}

.light-beams {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.light-beam {
    position: absolute;
    width: 2px;
    height: 200%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4), transparent);
    opacity: 0.2;
}

.light-beam:nth-child(1) { left: 25%; transform: rotate(12deg); animation: beamMove 8s ease-in-out infinite; }
.light-beam:nth-child(2) { left: 50%; transform: rotate(-8deg); animation: beamMove 10s ease-in-out infinite 2s; }
.light-beam:nth-child(3) { left: 75%; transform: rotate(15deg); animation: beamMove 9s ease-in-out infinite 1s; }

@keyframes beamMove {
    0%, 100% { transform: translateY(-30%) rotate(var(--r, 10deg)); opacity: 0.1; }
    50% { transform: translateY(20%) rotate(var(--r, 10deg)); opacity: 0.3; }
}

.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.02) 2px,
        rgba(0,0,0,0.02) 4px
    );
    opacity: 0.4;
}

.ambient-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.ambient-particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
}

/* Main Layout */
.landing-main {
    position: relative;
    z-index: 1;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
}

/* ===== NEON LOGO - Tabela Style ===== */
.neon-logo-container {
    position: relative;
    width: 340px;
    max-width: 95vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.neon-logo {
    width: 100%;
    height: auto;
    overflow: visible;
    transform-origin: center;
}

/* X traveling light overlay */
.x-light-overlay {
    opacity: 0.7;
    mix-blend-mode: screen;
}

/* BigX glow stroke animation - 4s draw (ileri+geri) + 4s pause */
#bigx-glow {
    stroke: white;
    stroke-width: 5px;
    stroke-dasharray: 536;
    stroke-dashoffset: 536;
    opacity: 0.7;
    animation: bigxStroke 8s ease-in-out infinite;
}

@keyframes bigxStroke {
    0% { stroke-dashoffset: 536; }
    25% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 536; }
    100% { stroke-dashoffset: 536; }
}

/* Reflect F animation - flips every 5 seconds */
.reflect-f-group {
    transform-origin: 197px 43px;
    animation: reflectF 10s ease-in-out infinite;
}

@keyframes reflectF {
    0%, 85% { transform: scaleX(1); }
    90% { transform: scaleX(-1); }
    95% { transform: scaleX(-1); }
    100% { transform: scaleX(1); }
}

/* Glow layer pulsing with scale */
.neon-logo g[filter] {
    animation: glowPulse 2s ease-in-out infinite;
    animation: none;
    transform-origin: center;
}

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

/* Reflect-f glow synced with letters */
.reflect-f-glow {
    transform-origin: 197px 43px;
    animation: reflectF 10s ease-in-out infinite;
}

/* ===== OLD X LOGO STYLES (keeping for backwards compat) ===== */
/* Interactive X Logo - EPIC SIZE */
.x-logo-container {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    display: none; /* Hidden - using neon logo instead */
}

/* Pulsing Rings */
.x-logo-container::before,
.x-logo-container::after {
    content: '';
    position: absolute;
    inset: -30px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: ringExpand 3s ease-out infinite;
}

.x-logo-container::after {
    animation-delay: 1.5s;
}

@keyframes ringExpand {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.x-logo {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.x-line {
    position: absolute;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.6) 10%,
        var(--white) 30%, 
        var(--white) 70%, 
        rgba(255,255,255,0.6) 90%,
        transparent 100%);
    border-radius: 4px;
    transform-origin: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 0 20px rgba(255,255,255,0.5),
        0 0 40px rgba(255,255,255,0.3),
        0 0 60px rgba(255,255,255,0.1);
}

.x-line-1 {
    transform: rotate(45deg);
}

.x-line-2 {
    transform: rotate(-45deg);
}

.x-logo:hover .x-line-1 {
    transform: rotate(45deg) scaleX(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

.x-logo:hover .x-line-2 {
    transform: rotate(-45deg) scaleX(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

.x-logo.pulse .x-line {
    animation: xPulse 0.8s ease-out;
}

@keyframes xPulse {
    0% { transform: rotate(var(--rotate)) scale(1); opacity: 1; }
    50% { transform: rotate(var(--rotate)) scale(1.3); opacity: 0.6; }
    100% { transform: rotate(var(--rotate)) scale(1); opacity: 1; }
}

.x-line-1 { --rotate: 45deg; }
.x-line-2 { --rotate: -45deg; }

.x-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.0081); opacity: 1; }
}

/* Center Nexus */
.x-logo::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        0 0 20px white,
        0 0 40px rgba(255,255,255,0.8),
        0 0 60px rgba(255,255,255,0.5);
    animation: nexusPulse 1.5s ease-in-out infinite;
    z-index: 10;
}

@keyframes nexusPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px white, 0 0 40px rgba(255,255,255,0.8); }
    50% { transform: scale(1.2); box-shadow: 0 0 30px white, 0 0 60px rgba(255,255,255,1); }
}

/* X Particles */
.x-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.x-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
}

/* Brand - Hidden as logo now includes text */
.brand {
    display: none;
}

.brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.9;
}

/* Countdown */
.countdown-section {
    text-align: center;
    margin: 1rem 0;
}

.countdown-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gray-300);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    color: var(--white);
    transition: transform 0.3s ease;
}

.countdown-value.flip {
    animation: flipDigit 0.5s ease;
}

@keyframes flipDigit {
    0% { transform: perspective(200px) rotateX(0); }
    50% { transform: perspective(200px) rotateX(-90deg); opacity: 0.5; }
    100% { transform: perspective(200px) rotateX(0); }
}

.countdown-unit {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--gray-400);
    margin-top: 0.35rem;
    font-weight: 500;
}

.countdown-separator {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
    animation: blink 1s ease-in-out infinite;
}

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

/* Tagline */
.tagline-section {
    text-align: center;
    max-width: 500px;
}

.tagline-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: 1.5px;
    text-transform: capitalize;
}

/* Loading dots animation */
.loading-dots span {
    opacity: 0;
    animation: loadingDot 1.5s infinite;
    animation-direction: alternate-reverse;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes loadingDot {
    0%, 20% { opacity: 0; }
    40% { opacity: 1; }
    60%, 100% { opacity: 1; }
}

.tagline-sub {
    font-size: 0.9rem;
    color: var(--gray-300);
    font-weight: 400;
}

/* Bottom Section */
.bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: auto;
    padding-top: 1rem;
}

/* Address */
.address-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ========== STYLE 1: Polaroid (Active) ========== */
.address-polaroid {
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.polaroid-frame {
    flex-shrink: 0;
    background: #fafafa;
    padding: 6px 6px 20px 6px;
    border-radius: 3px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.2);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.address-polaroid:hover .polaroid-frame {
    transform: rotate(0deg) scale(1.02);
}

.polaroid-img {
    width: 200px;
    height: 90px;
    object-fit: cover;
    display: block;
    border-radius: 1px;
}

.polaroid-label {
    display: block;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 0.6rem;
    color: #333;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.address-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}

.address-polaroid .address-icon {
    width: 20px;
    height: 20px;
}

/* ========== STYLE 2: Background Blur (Commented CSS - uncomment to use) ========== */
/*
.address-bgblur {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.address-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
    transform: scale(1.1);
    z-index: 0;
}

.address-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.address-bgblur .address-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.address-bgblur .address-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
*/

.address-icon {
    width: 24px;
    height: 24px;
    color: var(--white);
    opacity: 0.8;
    flex-shrink: 0;
}

.address-icon svg {
    width: 100%;
    height: 100%;
}

.address-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.address-main {
    font-size: 0.85rem;
    color: var(--white);
    font-weight: 500;
}

.address-city {
    font-size: 0.75rem;
    color: var(--gray-300);
}

.address-hint {
    color: var(--gray-400);
    font-style: italic;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Ambient Particles */
.ambient-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ===== RESPONSIVE ===== */

/* Large Desktop */
@media (min-width: 1200px) {
    .x-logo-container {
        width: 150px;
        height: 150px;
    }
    
    .x-line {
        height: 5px;
    }
    
    .brand-text {
        font-size: 1.75rem;
    }
    
    .countdown-value {
        font-size: 3.5rem;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .tagline-main {
        font-size: 2.25rem;
    }
    
    .tagline-sub {
        font-size: 1rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .landing-main {
        padding: 1.5rem;
        gap: 1.25rem;
    }
    
    .x-logo-container {
        width: 180px;
        height: 180px;
    }
    
    .x-line {
        height: 7px;
    }
    
    .brand-text {
        font-size: 1.25rem;
        letter-spacing: 0.3em;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
    }
    
    .tagline-main {
        font-size: 1.4rem;
    }
    
    .tagline-sub {
        font-size: 0.8rem;
    }
    
    .address-block {
        padding: 0.6rem 1rem;
    }
    
    /* Polaroid responsive - tablet */
    .polaroid-frame {
        padding: 5px 5px 16px 5px;
    }
    
    .polaroid-img {
        width: 200px;
        height: 90px;
    }
    
    .polaroid-label {
        font-size: 0.55rem;
    }
    
    .address-main {
        font-size: 0.8rem;
    }
    
    .address-city {
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .landing-main {
        padding: 1rem;
        gap: 1rem;
        justify-content: space-evenly;
    }
    
    .neon-logo-container {
        width: 300px;
        padding: 15px;
    }
    
    .x-logo-container {
        width: 160px;
        height: 160px;
    }
    
    .x-line {
        height: 6px;
    }
    
    .brand-text {
        font-size: 1rem;
        letter-spacing: 0.25em;
    }
    
    .countdown-label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .countdown {
        gap: 0.4rem;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .countdown-item {
        min-width: 55px;
    }
    
    .countdown-unit {
        font-size: 0.7rem;
    }
    
    .countdown-separator {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }
    
    .tagline-main {
        font-size: 1.5rem;
    }
    
    .tagline-sub {
        font-size: 0.95rem;
    }
    
    .bottom-section {
        gap: 1rem;
    }
    
    .address-block {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    /* Polaroid responsive - mobile */
    .address-polaroid {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .polaroid-frame {
        transform: rotate(-2deg);
        padding: 5px 5px 18px 5px;
    }
    
    .polaroid-img {
        width: 200px;
        height: 90px;
    }
    
    .address-content {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .address-polaroid .address-icon {
        display: none;
    }
    
    .address-polaroid .address-text {
        align-items: center;
    }
    
    .address-icon {
        width: 20px;
        height: 20px;
    }
    
    .address-main {
        font-size: 0.85rem;
    }
    
    .address-city {
        font-size: 0.75rem;
    }
    
    .action-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.75rem;
        gap: 0.35rem;
    }
    
    .btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .countdown-value {
        font-size: 1.4rem;
    }
    
    .countdown-item {
        min-width: 36px;
    }
    
    .tagline-main {
        font-size: 1rem;
    }
    
    .address-main {
        font-size: 0.65rem;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .landing-main {
        gap: 0.75rem;
        padding: 0.75rem 2rem;
    }
    
    .x-logo-container {
        width: 100px;
        height: 100px;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-item {
        min-width: 40px;
    }
    
    .countdown-separator {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .tagline-main {
        font-size: 1rem;
    }
    
    .tagline-sub {
        font-size: 0.7rem;
    }
    
    .bottom-section {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        padding-top: 0.5rem;
    }
    
    .address-block {
        padding: 0.4rem 0.75rem;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
}

/* Animations run on all devices - no reduced motion restriction */
