/* 
   VIANGA - Kreativagentur Münster
   Premium 2026 Agency Design System & Style Tokens
*/

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&family=Syne:wght@400..800&display=swap');

:root {
    --color-bg: #070808;
    --color-surface: #0f1111;
    --color-surface-card: #151818;
    --color-border: rgba(255, 77, 0, 0.15);
    --color-border-hover: rgba(255, 77, 0, 0.4);
    --color-brand: #FF4D00;
    --color-brand-neon: #FF6C3b;
    --color-text: #e2e8f0;
    --color-text-muted: #8a9999;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Hanken Grotesk', sans-serif;
}

/* Post-Digital Realism Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.035;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Glow effects */
.glow-accent {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--color-brand);
    opacity: 0.08;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    transition: background-color 0.8s ease;
}

/* Glassmorphism Panel styles */
.glass-panel {
    background: var(--color-surface-container);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: var(--color-brand);
    box-shadow: 0 12px 40px 0 rgba(255, 77, 0, 0.08);
}

/* Bento Grid modular layout tokens */
.bento-item {
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Premium Magnetic Buttons */
.btn-magnetic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.01);
    color: var(--color-text);
    padding: 16px 36px;
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.15em;
    overflow: hidden;
    transition: border-color 0.4s ease, color 0.4s ease, padding 0.4s ease, font-size 0.4s ease;
    z-index: 1;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-brand);
    border-radius: inherit;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-magnetic:hover {
    border-color: var(--color-brand);
    color: #070808;
}

.btn-magnetic:hover::before {
    transform: scale(1.05);
}

/* Shrink navigation button when scrolled down */
nav.scrolled .btn-magnetic {
    padding: 10px 24px;
    font-size: 11px;
}

/* Typography styles */
.font-headline {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

.font-body {
    font-family: 'Hanken Grotesk', sans-serif;
}

.font-accent {
    font-family: 'Space Grotesk', sans-serif;
}

.font-accent.font-bold {
    font-weight: 700 !important;
}

/* Interactive Text Marquee styling */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    width: 100%;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    min-width: 100%;
}

.marquee-item {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    padding: 0 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: -webkit-text-stroke 0.3s ease, color 0.3s ease;
}

.marquee-item:hover {
    -webkit-text-stroke: 1px var(--color-brand);
    color: var(--color-brand);
    cursor: pointer;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* 3D Perspective card container */
.perspective-container {
    perspective: 1000px;
}

.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

.tilt-inner {
    transform: translateZ(30px);
}

/* Image reveal scaling and styling */
.portfolio-img-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.portfolio-img {
    filter: grayscale(100%) brightness(0.85);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.portfolio-card:hover .portfolio-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.04);
}

/* Scroll Animation classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 77, 0, 0.2);
    border-radius: 10px;
}

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

/* Input Fields styling */
.input-2026 {
    background: var(--color-bg-alt) !important;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text);
    padding: 16px 20px;
    font-family: 'Hanken Grotesk', sans-serif;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.input-2026:focus {
    outline: none;
    border-color: var(--color-brand);
    background: var(--color-surface-container);
}

/* Toast styling */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(15, 17, 17, 0.9);
    border: 1px solid var(--color-brand);
    color: var(--color-text);
    padding: 16px 28px;
    border-radius: 16px;
    z-index: 1000;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(120px) scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast-notification.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Custom Interactive Hero Typography Effect */
.kinetic-char {
    display: inline-block;
    transition: transform 0.1s ease, color 0.2s ease;
    cursor: default;
}

/* Hero Canvas Styling */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==========================================================================
   3D Color Cube (Farbwürfel) Premium Widget
   ========================================================================== */

#cube-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 45;
}

#cube-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

#color-cube-widget {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 64px;
    height: 64px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

#color-cube-widget.visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* Rolling centered mode */
#color-cube-widget.rolling {
    transform: translate(calc(50vw - 64px), calc(-50vh + 64px)) scale(2.2) !important;
}

.cube-container {
    width: 64px;
    height: 64px;
    perspective: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube {
    width: 36px;
    height: 36px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-22deg) rotateY(35deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#color-cube-widget:not(.rolling):hover .cube {
    transform: rotateX(25deg) rotateY(215deg) rotateZ(10deg);
}

.cube .face {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.4);
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.cube .face.front  { transform: rotateY(0deg) translateZ(18px); background: rgba(255, 77, 0, 0.75); }    /* Classic Orange */
.cube .face.back   { transform: rotateY(180deg) translateZ(18px); background: rgba(57, 255, 20, 0.75); }   /* Neon Lime */
.cube .face.left   { transform: rotateY(-90deg) translateZ(18px); background: rgba(0, 210, 255, 0.75); }   /* Ice Blue */
.cube .face.right  { transform: rotateY(90deg) translateZ(18px); background: rgba(212, 175, 55, 0.75); }  /* Gold */
.cube .face.top    { transform: rotateX(90deg) translateZ(18px); background: rgba(255, 62, 108, 0.75); }  /* Solar Pink */
.cube .face.bottom { transform: rotateX(-90deg) translateZ(18px); background: rgba(189, 0, 255, 0.75); } /* Purple */

@keyframes spinCube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(720deg) rotateY(1440deg) rotateZ(360deg); }
}

.cube.spinning {
    animation: spinCube 1.0s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.cube-tooltip {
    position: absolute;
    bottom: 76px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(12, 15, 15, 0.95);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 6px 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#color-cube-widget:not(.rolling):hover .cube-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Color splash flash effect */
.color-splash {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-brand);
    opacity: 0;
    pointer-events: none;
    z-index: 48;
}

@keyframes splashWave {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(250); opacity: 0; }
}

.color-splash.active {
    animation: splashWave 1.0s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

/* Dynamic CSS Theme Variable Overrides */
.text-\[\#8a9999\] {
    color: var(--color-text-muted) !important;
}
.bg-\[\#070808\] {
    background-color: var(--color-bg) !important;
}
.bg-\[\#0c0f0f\] {
    background-color: var(--color-bg-alt) !important;
}
.border-border-subtle {
    border-color: var(--color-border) !important;
}
.text-brand-orange {
    color: var(--color-brand) !important;
}
.bg-brand-orange {
    background-color: var(--color-brand) !important;
}
.border-brand-orange {
    border-color: var(--color-brand) !important;
}

/* Dynamic Hover State overrides */
.hover\:text-brand-orange:hover {
    color: var(--color-brand) !important;
}
.hover\:bg-brand-orange:hover {
    background-color: var(--color-brand) !important;
}
.hover\:border-brand-orange:hover {
    border-color: var(--color-brand) !important;
}

/* Adaptive Typography Reset for dark/light themes */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text) !important;
    transition: color 0.6s ease;
}

.text-white {
    color: var(--color-text) !important;
    transition: color 0.6s ease;
}

.text-white\/30 { color: rgba(var(--color-text-rgb, 226, 232, 240), 0.3) !important; }
.text-white\/40 { color: rgba(var(--color-text-rgb, 226, 232, 240), 0.4) !important; }
.text-white\/50 { color: rgba(var(--color-text-rgb, 226, 232, 240), 0.5) !important; }
.text-white\/70 { color: rgba(var(--color-text-rgb, 226, 232, 240), 0.7) !important; }
.text-white\/80 { color: rgba(var(--color-text-rgb, 226, 232, 240), 0.8) !important; }

/* Link & Logo styling adaptions */
nav a, .mobile-menu-link {
    color: var(--color-text-muted) !important;
    transition: color 0.4s ease;
}
nav a:hover, .mobile-menu-link:hover {
    color: var(--color-brand) !important;
}

nav a.font-bold, footer a.font-bold, #mobile-menu a.font-bold {
    color: var(--color-text) !important;
    transition: color 0.4s ease;
}
nav a.font-bold:hover, footer a.font-bold:hover, #mobile-menu a.font-bold:hover {
    color: var(--color-brand) !important;
}

