/* CSS Custom Variables and Base Setup */
:root {
    --color-sony-dark: #000000;
    --color-sony-panel: #0A0A0C;
    --color-sony-blue: #0050FF;
    --color-sony-cyan: #00D6FF;
    --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Base Styles & Resets */
html, body {
    background-color: var(--color-sony-dark);
    scroll-behavior: smooth;
    font-family: var(--font-body);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Translucent Navbar Glassmorphism */
#navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Text Underline Indicator for Navbar Links */
.navbar-link {
    position: relative;
    padding-bottom: 4px;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Subtle Text Glows */
.glow-text {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

/* Glassmorphism Panels for Storytelling */
.transform-section {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Disable Pointer Events on Sections so users can scroll anywhere easily */
.scroll-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Custom Smooth Transitioning of elements */
.fade-in-ready {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Responsive adjust for canvas image center contain */
#canvas-sequence {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
