/* ============================================
    IZI.CAFE - Shared Styles
    Refactored with CSS custom properties
    ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --color-bg: #000;
    --color-text: #fff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-link: #0a66c2;
    --color-link-hover: #004182;
    
    /* Gradient colors */
    --gradient-start: #ff0060;
    --gradient-mid-pink: #ff4080;
    --gradient-center: #ffffff;
    --gradient-mid-cyan: #80ffff;
    --gradient-end: #00ffff;
    
    /* Shadows */
    --shadow-glow-white: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6);
    --shadow-glow-blue: 0 0 10px rgba(0, 116, 255, 0.5), 0 0 20px rgba(0, 122, 255, 0.3);
    
    /* Animation */
    --animation-fall: 1.2s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    --animation-shrink: 0.5s ease;
    
    /* Spacing */
    --spacing-sm: 20px;
    --spacing-md: 30px;
    --spacing-lg: 40px;
}

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    background: var(--color-bg);
    user-select: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    body,
    .letter,
    .soon-letter {
        transition: none !important;
        animation: none !important;
    }
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--color-bg);
    pointer-events: none;
}

/* Main Content */
.content {
    text-align: center;
    z-index: 1;
    position: relative;
}

/* Logo 3D Container */
.logo-3d {
    font-size: clamp(100px, 30vw, 250px);
    font-weight: 900;
    letter-spacing: 0.05em;
    perspective: 500px;
    display: inline-block;
    position: relative;
}

/* ============================================
   Letter Styles - Shared for .letter and .soon-letter
   ============================================ */

/* Base letter element */
.letter,
.soon-letter {
    display: inline-block;
    font-size: inherit;
    line-height: 1;
    position: relative;
    transform-style: preserve-3d;
}

/* 3D transition for main letters only */
.letter {
    transition: transform 0.1s ease;
}

/* Chromatic gradient effect - shared mixin */
.letter::before,
.letter::after,
.soon-letter::before,
.soon-letter::after {
    content: attr(data-letter);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        120deg,
        var(--gradient-start) 0%,
        var(--gradient-mid-pink) 25%,
        var(--gradient-center) 50%,
        var(--gradient-mid-cyan) 75%,
        var(--gradient-end) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Primary offset layer */
.letter::before,
.soon-letter::before {
    opacity: 0.5;
    z-index: -1;
    transform: translate(var(--offset-x, 0px), var(--offset-y, 0px));
    filter: blur(1px);
}

/* Secondary offset layer */
.letter::after,
.soon-letter::after {
    opacity: 0.6;
    z-index: -2;
    transform: translate(calc(var(--offset-x, 0px) * -1), calc(var(--offset-y, 0px) * -1));
    filter: blur(2px);
}

/* Inner span with white text */
.letter span,
.soon-letter span {
    display: block;
    color: var(--color-text);
}

/* Main letters glow effect */
.letter span {
    text-shadow: var(--shadow-glow-white);
    transform: translateZ(50px);
    transform-style: preserve-3d;
}

/* Subtitle */
.subtitle {
    font-size: clamp(16px, 4vw, 32px);
    font-weight: 300;
    letter-spacing: 0.5em;
    margin-top: var(--spacing-sm);
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-shadow: var(--shadow-glow-blue);
}

/* ============================================
   Soon Text Styles
   ============================================ */

.soon-text {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    margin: 0;
    display: block;
    opacity: 0.5;
    transform: none;
}

.soon-letter {
    font-size: 14px;
    font-weight: 500;
    margin: 0 4px;
    opacity: 0.5;
}

/* Clickable soon container */
.soon-clickable {
    position: fixed;
    pointer-events: none;
}

/* Falling animation */
.soon-clickable.falling .soon-letter,
.soon-text.falling .soon-letter {
    animation: fallDown var(--animation-fall) forwards;
}

@keyframes fallDown {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(800px) rotate(45deg);
        opacity: 0;
    }
}

/* Shrinking animation */
.soon-clickable.shrinking {
    transition: transform var(--animation-shrink), opacity var(--animation-shrink);
    transform: scale(0);
    opacity: 0;
}

/* ============================================
   Social Links
   ============================================ */

.social-links {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--color-link);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 28px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.linkedin-btn:hover {
    background: var(--color-link-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 192, 0.4);
}

.linkedin-btn .icon {
    width: 20px;
    height: 20px;
    fill: var(--color-text);
}