/* 
 * Krystal Ingredients - Premium Revamp Styles
 * Obsidian Glass Theme Refinements
 */

:root {
    --bg-primary: #03060D;
    --bg-secondary: #050A14;
    --accent-cyan: #06B6D4;
    --accent-emerald: #10B981;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
}

/* Base Styles */
body {
    background-color: var(--bg-primary);
    color: #ffffff;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Side Elements */
.side-nav-left {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: none;
}

@media (min-width: 1280px) {
    .side-nav-left {
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
}

.side-nav-item {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.side-nav-item:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

.side-nav-item.active {
    color: #ffffff;
}

.side-social-right {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: none;
}

@media (min-width: 1280px) {
    .side-social-right {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

.side-social-link {
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 14px;
}

.side-social-link:hover {
    color: var(--accent-emerald);
    transform: translateY(-3px);
}

.vertical-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Glassmorphism Refinements */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

/* Shimmer Text Effect */
.shimmer-text {
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0.8) 0%, 
        var(--accent-cyan) 25%, 
        var(--accent-emerald) 50%, 
        var(--accent-cyan) 75%, 
        rgba(255, 255, 255, 0.8) 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

/* Hero Section Enhancements */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.floating-molecule {
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.2));
}

/* Typography Refinements */
.font-heading {
    font-family: 'Playfair Display', serif;
}

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

/* Buttons */
.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
}

.btn-premium:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* Custom Cursor Refinement */
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.expanded {
    width: 60px;
    height: 60px;
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.05);
}
