/* ============================================
   MOOVHA - Webzibition-Quality Website
   Base Styles & Variables
   ============================================ */

/* Import other style modules */
@import url('styles-sections.css');
@import url('styles-features.css');
@import url('styles-components.css');
@import url('styles-footer-animations.css');
@import url('styles-illustrations.css');

:root {
    /* Colors - Dark Theme (Platform Color: #1a1a2e) */
    --color-bg: #1a1a2e;
    --color-bg-alt: #16162a;
    --color-bg-card: #232342;
    --color-surface: #2a2a4a;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.12);
    
    --color-text: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-tertiary: rgba(255, 255, 255, 0.5);
    
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-accent: #22d3ee;
    --color-accent-green: #10b981;
    --color-accent-yellow: #fbbf24;
    
    /* Gradients - Enhanced for #1a1a2e background */
    --gradient-primary: linear-gradient(135deg, #2D2D44 0%, #1A1A2E 50%, #10bfde 100%);
    --gradient-accent: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    --gradient-bg-radial: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent);
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    
    /* Layout */
    --container-max: 1400px;
    --container-padding: 2rem;
    --nav-height: 80px;
}

/* Light Theme */
[data-theme="light"] {
    --color-bg: #f8f9fa;
    --color-bg-alt: #ffffff;
    --color-bg-card: #ffffff;
    --color-surface: #f0f0f0;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-light: rgba(0, 0, 0, 0.12);
    
    --color-text: #1a1a1a;
    --color-text-secondary: rgba(0, 0, 0, 0.6);
    --color-text-tertiary: rgba(0, 0, 0, 0.4);
    
    --gradient-glow: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .cursor {
    mix-blend-mode: multiply;
}

[data-theme="light"] .cursor-dot {
    background: #1a1a1a;
}

[data-theme="light"] .cursor-outline {
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .hero-grid {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .hero-noise {
    opacity: 0.02;
}

[data-theme="light"] .hero-gradient {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent);
}

[data-theme="light"] .phone-mockup {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .phone-screen {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

[data-theme="light"] .float-card {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
}

/* Logo theme switching */
.logo-light-mode {
    display: none;
}

.logo-dark-mode {
    display: block;
}

[data-theme="light"] .logo-light-mode {
    display: block;
}

[data-theme="light"] .logo-dark-mode {
    display: none;
}

[data-theme="light"] .loader {
    background: #f8f9fa;
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ============================================
   Custom Cursor
   ============================================ */

.cursor {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s var(--ease-out-expo);
}

.cursor-outline {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease-out-expo), 
                width 0.3s var(--ease-out-expo), 
                height 0.3s var(--ease-out-expo);
}

.cursor.hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--color-primary);
}

.cursor.click .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
}

@media (pointer: coarse) {
    .cursor { display: none; }
}

/* ============================================
   Loader
   ============================================ */

.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.loader-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    display: inline-block;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.loader.loaded {
    pointer-events: none;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--nav-height) - 2rem);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
}

.nav-logo .logo-img {
    height: 60px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    background: transparent !important;
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    margin-right: var(--space-sm);
}

.theme-toggle:hover {
    background: var(--color-bg-card);
    border-color: var(--color-border-light);
    transform: scale(1.05);
}

.theme-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon.sun {
    display: none;
}

.theme-icon.moon {
    display: block;
}

[data-theme="light"] .theme-icon.sun {
    display: block;
}

[data-theme="light"] .theme-icon.moon {
    display: none;
}

[data-theme="light"] .nav.scrolled {
    background: rgba(248, 249, 250, 0.9);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s ease;
}

@media (max-width: 968px) {
    .nav-menu, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: var(--space-lg);
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover svg {
    transform: translate(4px, -4px);
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header.centered {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary-light);
    margin-bottom: var(--space-md);
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-accent {
    background: linear-gradient(135deg, #ffffff 0%, #E0E0E0 50%, #10bfde 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Light mode: use darker gradient for visibility */
[data-theme="light"] .text-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
