/* ═══════════════════════════════════════════
   LEWIDEA STUDIO — Global Stylesheet v2.0
   Complete Redesign — March 2026
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --primary: #6C63FF;
    --primary-light: #8B83FF;
    --primary-dark: #5046E5;
    --secondary: #00D4AA;
    --secondary-light: #33DDBB;
    --accent: #FF6B6B;
    --accent-warm: #FFB347;
    --neon: #A78BFA;
    --bg-dark: #0A0A0F;
    --bg-darker: #06060A;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-card-alt: rgba(108, 99, 255, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(108, 99, 255, 0.25);
    --text-white: #F0F0F5;
    --text-secondary: #A0A0B8;
    --text-dim: #5A5A72;
    --gradient-1: linear-gradient(135deg, #6C63FF, #5046E5);
    --gradient-2: linear-gradient(135deg, #6C63FF, #00D4AA);
    --gradient-3: linear-gradient(135deg, #FF6B6B, #FFB347);
    --gradient-hero: linear-gradient(135deg, #6C63FF 0%, #A78BFA 50%, #00D4AA 100%);
    --gradient-glass: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(0,212,170,0.04));
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.15);
    --shadow-glow-strong: 0 0 80px rgba(108, 99, 255, 0.2);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.2s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-dark) var(--bg-dark);
    font-size: 16px;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body {
    font-family: 'Inter', 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::selection {
    background: rgba(108, 99, 255, 0.3);
    color: var(--text-white);
}

/* ── Preloader ── */
#preloader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--bg-dark);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
    width: 56px; height: 56px; border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
    position: relative;
}
.loader-ring::before {
    content: ''; position: absolute; inset: 4px; border-radius: 50%;
    border: 2px solid transparent;
    border-right-color: var(--secondary);
    animation: spin 1.2s linear reverse infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cursor Glow (desktop) ── */
.cursor-glow {
    position: fixed; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(108,99,255,0.04) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: 1;
    transform: translate(-50%, -50%);
    transition: left 0.4s ease-out, top 0.4s ease-out;
}
@media (max-width: 768px) { .cursor-glow { display: none; } }

/* ── Particles Canvas ── */
#particles-canvas {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; opacity: 0.6;
}

/* ── Noise Texture Overlay ── */
body::before {
    content: ''; position: fixed; inset: 0; z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.015'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.4;
}

/* ═══════════ NAVIGATION ═══════════ */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid transparent;
}
nav.scrolled {
    background: rgba(10, 10, 15, 0.9);
    border-bottom-color: var(--border-subtle);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.nav-container {
    max-width: 1280px; margin: 0 auto;
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 38px; transition: var(--transition); filter: brightness(1.1); }
.nav-logo:hover img { transform: scale(1.05); filter: brightness(1.3); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.85rem; font-weight: 500;
    padding: 8px 16px; border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.3px;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: 4px;
    left: 50%; width: 0; height: 2px;
    background: var(--gradient-2);
    transition: all 0.3s; transform: translateX(-50%);
    border-radius: 1px;
}
.nav-links a:hover { color: var(--text-white); }
.nav-links a.active { color: var(--primary-light); }
.nav-links a.active::after, .nav-links a:hover::after { width: 50%; }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Language Toggle */
.lang-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); overflow: hidden;
}
.lang-btn {
    padding: 6px 14px; border: none; background: none;
    color: var(--text-dim); font-family: 'Inter', sans-serif;
    font-size: 0.72rem; cursor: pointer; transition: var(--transition);
    font-weight: 700; letter-spacing: 1px;
}
.lang-btn.active {
    background: var(--gradient-1);
    color: white;
}
.lang-btn:hover:not(.active) { color: var(--text-secondary); }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 5px; background: none; border: none; z-index: 1001;
}
.hamburger span {
    width: 24px; height: 2px; background: var(--text-secondary);
    transition: all 0.3s; border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.hamburger:hover span { background: var(--primary-light); }

/* Mobile Menu */
.mobile-menu {
    display: none; position: fixed; inset: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(40px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 12px; z-index: 999;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    color: var(--text-secondary);
    font-size: 1.1rem; font-weight: 500;
    padding: 14px 40px; border-radius: var(--radius-md);
    transition: var(--transition);
    width: 260px; text-align: center;
}
.mobile-menu a:hover, .mobile-menu a.active {
    color: var(--primary-light);
    background: rgba(108, 99, 255, 0.08);
}

/* ═══════════ PAGE HERO (Sub-pages) ═══════════ */
.page-hero {
    padding: 180px 40px 80px;
    text-align: center;
    position: relative; z-index: 2;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 50% 30%, rgba(108,99,255,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 30% 60%, rgba(0,212,170,0.03) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero-tag {
    font-size: 0.75rem; color: var(--primary-light);
    letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 20px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 10px;
}
.page-hero-tag .dot {
    width: 6px; height: 6px; background: var(--secondary);
    border-radius: 50%; animation: blink 2s infinite;
    box-shadow: 0 0 10px var(--secondary);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.page-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800; margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.page-hero h1 span {
    background: var(--gradient-hero);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero p {
    color: var(--text-secondary); font-size: 1.1rem;
    max-width: 550px; margin: 0 auto;
}
.breadcrumb {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 28px;
    font-size: 0.83rem; color: var(--text-dim);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb svg { width: 14px; height: 14px; opacity: 0.4; }

/* ═══════════ SECTIONS ═══════════ */
.section {
    padding: 100px 40px;
    position: relative; z-index: 2;
}
.section-alt {
    background:
        linear-gradient(180deg, rgba(108, 99, 255, 0.015) 0%, transparent 50%, rgba(0, 212, 170, 0.01) 100%);
}
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    font-size: 0.72rem; color: var(--primary-light);
    letter-spacing: 4px; text-transform: uppercase;
    margin-bottom: 16px; font-weight: 600;
    display: inline-block;
}
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800; margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.section-line {
    width: 48px; height: 3px;
    background: var(--gradient-2);
    margin: 0 auto; border-radius: 2px;
}
.section-desc {
    color: var(--text-secondary); max-width: 560px;
    margin: 20px auto 0; font-size: 1.05rem;
    line-height: 1.8;
}

/* ═══════════ BUTTONS ═══════════ */
.btn-primary {
    padding: 14px 32px; border: none; border-radius: var(--radius-md);
    background: var(--gradient-1);
    color: white; font-family: 'Inter', sans-serif;
    font-size: 0.88rem; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    transition: var(--transition);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.25);
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(108, 99, 255, 0.4);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary svg { width: 18px; height: 18px; }

.btn-outline {
    padding: 14px 32px; border-radius: var(--radius-md);
    border: 1.5px solid var(--border-hover);
    background: transparent;
    color: var(--primary-light); font-family: 'Inter', sans-serif;
    font-size: 0.88rem; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.btn-outline:hover {
    background: rgba(108, 99, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.1);
}
.btn-outline svg { width: 18px; height: 18px; }

.btn-sm { padding: 10px 22px; font-size: 0.82rem; }

/* ═══════════ GLASS CARD ═══════════ */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}
.glass-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.glass-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ═══════════ TAGS ═══════════ */
.tag {
    padding: 5px 14px; border-radius: 8px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.12);
    font-size: 0.72rem; color: var(--primary-light);
    letter-spacing: 0.3px; font-weight: 500;
    transition: var(--transition-fast);
}
.tag:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.25);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ═══════════ STATUS BADGES ═══════════ */
.status {
    padding: 5px 16px; border-radius: 20px;
    font-size: 0.65rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 6px;
}
.status::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%;
}
.status-live {
    background: rgba(0, 212, 170, 0.1); color: var(--secondary);
    border: 1px solid rgba(0, 212, 170, 0.2);
}
.status-live::before { background: var(--secondary); box-shadow: 0 0 8px var(--secondary); }
.status-dev {
    background: rgba(255, 179, 71, 0.1); color: var(--accent-warm);
    border: 1px solid rgba(255, 179, 71, 0.2);
}
.status-dev::before { background: var(--accent-warm); }
.status-planned {
    background: rgba(108, 99, 255, 0.1); color: var(--primary-light);
    border: 1px solid rgba(108, 99, 255, 0.2);
}
.status-planned::before { background: var(--primary-light); }

/* ═══════════ FOOTER ═══════════ */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 40px 30px;
    position: relative; z-index: 2;
    background: var(--bg-darker);
}
.footer-container { max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 16px; line-height: 1.8; }
.footer-brand img { height: 34px; margin-bottom: 4px; }

.footer-heading {
    font-size: 0.78rem; font-weight: 700;
    color: var(--text-white); margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 2px;
}
.footer-list li { margin-bottom: 10px; }
.footer-list a {
    color: var(--text-secondary); font-size: 0.88rem;
    transition: var(--transition); font-weight: 400;
}
.footer-list a:hover { color: var(--primary-light); padding-left: 6px; }

.footer-contact-item {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 12px; color: var(--text-secondary);
    font-size: 0.88rem;
}
.footer-contact-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

.footer-social {
    display: flex; gap: 10px; margin-top: 16px;
}
.footer-social a {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); transition: var(--transition);
}
.footer-social a:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--border-hover);
    color: var(--primary-light);
    transform: translateY(-3px);
}
.footer-social a svg { width: 16px; height: 16px; }

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }
.footer-copy span { color: var(--primary-light); font-weight: 600; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--text-dim); }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* ═══════════ BACK TO TOP ═══════════ */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 44px; height: 44px; border-radius: var(--radius-md);
    background: var(--gradient-1);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 100; transition: var(--transition);
    opacity: 0; visibility: hidden;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px) scale(1.05); }
.back-to-top svg { width: 20px; height: 20px; color: white; }

/* ═══════════ REVEAL ANIMATIONS ═══════════ */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ═══════════ GRADIENT TEXT UTILITY ═══════════ */
.gradient-text {
    background: var(--gradient-hero);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

/* ═══════════ FEATURE HIGHLIGHTS ═══════════ */
.highlight-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-secondary);
}
.highlight-item svg {
    width: 16px; height: 16px; color: var(--secondary);
    flex-shrink: 0;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .section { padding: 70px 20px; }
    .page-hero { padding: 140px 20px 60px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-container { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .page-hero { padding: 130px 16px 50px; }
    html { font-size: 15px; }
}
