/* 
   Generic CSS for Glasherinneringen
   Most styling is handled by Tailwind classes in index.html, 
   but specific background effects and scrollbars are defined here.
*/

:root {
    --brand-cyan: #5eead4;
    --brand-cyan-dark: #0f766e;
    --brand-dark: #0b0d11;
    --brand-darker: #050608;
    --brand-panel: #15171c;
    --brand-border: #2a2e37;
}

body {
    background-color: var(--brand-darker);
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--brand-dark); 
}
::-webkit-scrollbar-thumb {
    background: var(--brand-border); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-cyan); 
}

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

/* Glassmorphism Text */
.glass-gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, var(--brand-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Panels */
.glass-panel {
    background: rgba(21, 23, 28, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.input-base {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-base:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.input-base:focus-within {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.2), 0 0 15px rgba(94, 234, 212, 0.1);
    transform: translateY(-1px);
}

/* Modal Animations */
.modal-overlay {
    animation: fadeIn 0.3s ease-out forwards;
}

.modal-content {
    animation: scaleIn 0.3s ease-out forwards;
}

/* Visualizer Styles */
.visualizer-slab {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    max-width: 400px;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.2);
    overflow: hidden;
}

.visualizer-slab::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

. Slab-shape-rect { border-radius: 4px; }
.slab-shape-round { border-radius: 200px 200px 4px 4px; }
.slab-shape-organic { border-radius: 120px 20px 120px 20px; }

.visualizer-text-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    pointer-events: none;
}

.visualizer-option-btn {
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.visualizer-option-btn.active {
    border-color: var(--brand-cyan);
    background: rgba(94, 234, 212, 0.1);
    box-shadow: 0 0 15px rgba(94, 234, 212, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Particular/Business Slider Animation */
.tab-slider {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active {
    color: var(--brand-darker);
}

/* Simple Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
}
