/* YOYAKU - Clean CSS without SCSS corruption */

/* Digital Art Variables */
:root {
    --da-black: #0a0a0a;
    --da-dust: #1a1a1a;
    --da-primary: #2a2a2a;
    --da-white: #ffffff;
    --da-glitch: #ff0000;
    --da-static: #333333;
    --da-transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Base styles */
* {
    box-sizing: border-box;
}

html {
    background: var(--da-black) !important;
    background-color: var(--da-black) !important;
}

body {
    overflow-x: hidden;
    background: var(--da-black) !important;
    background-color: var(--da-black) !important;
    cursor: none;
    min-height: 100vh;
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.015) 0%, transparent 40%),
        radial-gradient(ellipse at center, transparent 0%, rgba(26, 26, 26, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    animation: cosmicShimmer 20s ease-in-out infinite;
}

@keyframes cosmicShimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

/* Main container */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--da-black) !important;
    background-color: var(--da-black) !important;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(
            ellipse at 30% 70%, 
            rgba(42, 42, 42, 0.08) 0%, 
            transparent 50%
        ),
        radial-gradient(
            ellipse at 70% 30%, 
            rgba(255, 255, 255, 0.015) 0%, 
            transparent 40%
        );
    z-index: 0;
    pointer-events: none;
}

.start {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.end {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.site-branding {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* LOGO STYLES - FIXED WITH 3D SUPPORT */
.logo-container {
    display: inline-block;
    transition: var(--da-transition);
    transform-style: preserve-3d;
    position: relative;
    perspective: 1000px;
    width: 300px !important;
    height: 300px !important;
    cursor: pointer;
}

.logo-container:hover {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

/* Neon SVG Sacred Geometry Logo */
.logo-container svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
}

.logo-container:hover svg {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Neon geometry animations */
.neon-geometry .connection-radial {
    animation: neonPulseRadial 3s ease-in-out infinite;
}

.neon-geometry .connection-hexagon {
    animation: neonPulseHex 4s ease-in-out infinite;
}

.neon-geometry .connection-circle {
    animation: neonPulseCircle 5s ease-in-out infinite;
}

.neon-geometry .point-center {
    animation: neonPulseCenter 2s ease-in-out infinite;
}

/* Neon pulse animations */
@keyframes neonPulseRadial {
    0%, 100% { stroke-opacity: 0.8; }
    50% { stroke-opacity: 1.0; }
}

@keyframes neonPulseHex {
    0%, 100% { stroke-opacity: 0.9; stroke-width: 2.5; }
    50% { stroke-opacity: 1.0; stroke-width: 3; }
}

@keyframes neonPulseCircle {
    0%, 100% { stroke-opacity: 0.7; }
    50% { stroke-opacity: 0.9; }
}

@keyframes neonPulseCenter {
    0%, 100% { 
        fill-opacity: 1.0; 
        r: 4;
        filter: drop-shadow(0 0 8px #FF6B9D);
    }
    50% { 
        fill-opacity: 1.0; 
        r: 5;
        filter: drop-shadow(0 0 15px #FF6B9D);
    }
}

/* 3D Effects Container */
.yoyaku-3d-logo {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    transform-style: preserve-3d;
    pointer-events: none;
}

.logo-3d-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* 3D Elements */
.geo-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform-style: preserve-3d;
}

.outer-circle {
    width: 320px;
    height: 320px;
    margin: -160px 0 0 -160px;
    transform: translateZ(15px);
    animation: slowSpin 20s linear infinite;
}

.flower-of-life {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    transform: translateZ(10px);
}

.petal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px 0 0 -40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: rotate(calc(var(--i) * 60deg)) translateY(-50px);
    animation: petalPulse 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.inner-geometry {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    transform: translateZ(8px);
}

.hex-pattern {
    width: 100%;
    height: 100%;
    position: relative;
}

.hex-side {
    position: absolute;
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    top: 50%;
    left: 50%;
    margin-left: -1px;
    transform-origin: bottom center;
    transform: rotate(calc(var(--i) * 60deg)) translateZ(2px);
    animation: hexPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

.center-sacred {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    transform: translateZ(20px);
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: centerPulse 2s ease-in-out infinite;
}

/* 3D Animations */
@keyframes slowSpin {
    from { transform: translateZ(15px) rotate(0deg); }
    to { transform: translateZ(15px) rotate(360deg); }
}

@keyframes petalPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: rotate(calc(var(--i) * 60deg)) translateY(-50px) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: rotate(calc(var(--i) * 60deg)) translateY(-50px) scale(1.05);
    }
}

@keyframes hexPulse {
    0%, 100% { 
        opacity: 0.5;
        transform: rotate(calc(var(--i) * 60deg)) translateZ(2px) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: rotate(calc(var(--i) * 60deg)) translateZ(2px) scale(1.1);
    }
}

@keyframes centerPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 15px rgba(255, 255, 255, 1);
    }
}

/* Hover Effects for 3D */
.yoyaku-3d-logo:hover .logo-3d-container {
    animation: logoSpin 8s linear infinite;
}

@keyframes logoSpin {
    0% { transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg); }
    25% { transform: rotateY(90deg) rotateX(10deg) rotateZ(5deg); }
    50% { transform: rotateY(180deg) rotateX(0deg) rotateZ(10deg); }
    75% { transform: rotateY(270deg) rotateX(-10deg) rotateZ(5deg); }
    100% { transform: rotateY(360deg) rotateX(0deg) rotateZ(0deg); }
}

.logo-image {
    position: relative !important;
    z-index: 9999 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: var(--da-transition);
    backface-visibility: visible !important;
    transform: translateZ(50px) !important;
    filter: saturate(0%) contrast(300%) brightness(200%) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)) !important;
}

.logo-image:hover {
    filter: saturate(0%) contrast(350%) brightness(220%) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)) !important;
    animation: cosmicGlow 2s ease-in-out infinite;
}

@keyframes cosmicGlow {
    0%, 100% { 
        filter: saturate(0%) contrast(350%) brightness(220%) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)) !important;
    }
    50% { 
        filter: saturate(0%) contrast(380%) brightness(240%) invert(1) drop-shadow(0 0 30px rgba(255, 255, 255, 0.8)) !important;
    }
}

/* Site title */
.site-title {
    font-weight: 300;
    text-transform: uppercase;
    position: relative;
    transition: var(--da-transition);
    color: var(--da-white);
    letter-spacing: 0.15em;
    font-family: 'Roboto', sans-serif;
    margin-top: 1.5rem;
    font-size: 3rem;
}

@media (min-width: 768px) {
    .site-title {
        font-size: 3.5rem;
    }
}

/* Navigation */
.entry-content {
    padding: 1.5rem;
}

.site-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .site-links {
        gap: 3rem;
    }
}

@media (min-width: 1200px) {
    .site-links {
        gap: 4rem;
    }
}

.site-links a {
    display: inline-flex;
    position: relative;
    justify-content: center;
    align-items: center;
    transition: var(--da-transition);
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    color: var(--da-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    font-size: 1.1rem;
    text-decoration: none;
}

@media (min-width: 768px) {
    .site-links a {
        font-size: 1.3rem;
    }
}

@media (min-width: 1200px) {
    .site-links a {
        font-size: 1.5rem;
    }
}

.site-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--da-primary);
    transform: scale3d(0, 1, 1);
    transition: transform 0.4s ease-out;
    transform-origin: 0 50%;
}

.site-links a:hover {
    color: var(--da-white);
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.site-links a:hover::after {
    transform: scale3d(1, 1, 1);
    background: var(--da-white);
}

/* Utility classes */
.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}