/*
 * PREMIUM CORE STYLES
 * Gold Particles, Ripple Effects, Premium Animations
 */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.85);
    --bg-glass: rgba(18, 18, 26, 0.6);
    
    --gold: #fbbf24;
    --gold-light: #fcd34d;
    --gold-dark: #d97706;
    --gold-glow: rgba(251, 191, 36, 0.3);
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.2);
    --purple: #a855f7;
    --green: #10b981;
    --cyan: #22d3ee;
    
    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(251, 191, 36, 0.3);
    
    --success: #10b981;
    --error: #ef4444;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

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

::selection {
    background: var(--gold);
    color: var(--bg-primary);
}

/* ============================================
   LOADER - Premium Animation
============================================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: loader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring:nth-child(2) {
    inset: 10px;
    border-top-color: var(--gold-light);
    animation-delay: -0.15s;
}

.loader-ring:nth-child(3) {
    inset: 20px;
    border-top-color: var(--gold-dark);
    animation-delay: -0.3s;
}

.loader-mark {
    font-size: 32px;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    margin-top: 30px;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: loader-pulse 1.5s ease-in-out infinite;
}

@keyframes loader-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================
   BACKGROUND EFFECTS - Premium
============================================ */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Noise texture */
.noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
}

/* Ambient gradient orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    will-change: transform;
}

.ambient-orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    animation: ambient-float-1 30s ease-in-out infinite;
}

.ambient-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: ambient-float-2 25s ease-in-out infinite;
}

.ambient-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    top: 40%;
    left: 30%;
    animation: ambient-float-3 20s ease-in-out infinite;
}

@keyframes ambient-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-80px, 50px) scale(1.1); }
    50% { transform: translate(-50px, -60px) scale(0.95); }
    75% { transform: translate(60px, 30px) scale(1.05); }
}

@keyframes ambient-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, -60px) scale(1.15); }
    66% { transform: translate(-60px, 80px) scale(0.9); }
}

@keyframes ambient-float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.5; }
}

/* Grid pattern */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

/* ============================================
   GOLD PARTICLES SYSTEM - Cursor Influenced
============================================ */
#gold-particles-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   SPOTLIGHT - Follows Cursor
============================================ */
.spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.02) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s var(--smooth);
    will-change: transform;
}

body:hover .spotlight { opacity: 1; }

/* ============================================
   CUSTOM CURSOR - Premium
============================================ */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s var(--spring), height 0.2s var(--spring), background 0.2s;
    box-shadow: 0 0 20px var(--gold-glow);
}

.cursor-ring {
    position: fixed;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(251, 191, 36, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--spring), height 0.4s var(--spring), 
                border-color 0.3s, background 0.3s, opacity 0.3s;
}

.cursor-ring.hover {
    width: 70px;
    height: 70px;
    background: rgba(251, 191, 36, 0.08);
    border-color: var(--gold);
}

.cursor-ring.clicking {
    transform: translate(-50%, -50%) scale(0.85);
    border-color: var(--gold-light);
}

.cursor-ring.hidden {
    opacity: 0;
    width: 10px;
    height: 10px;
}

@media (max-width: 768px), (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
    body { cursor: auto; }
}

/* ============================================
   WATER RIPPLE EFFECT - Premium
============================================ */
.ripple-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.water-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0.1) 40%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    animation: water-ripple-expand 1s ease-out forwards;
    pointer-events: none;
}

@keyframes water-ripple-expand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Button ripple */
.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple-btn .btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.4);
    transform: scale(0);
    animation: btn-ripple 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes btn-ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

/* ============================================
   NAVIGATION - Premium Glass
============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.5s var(--ease-out-expo);
}

.nav.scrolled {
    padding: 14px 50px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-mark {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 18px;
    color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--gold-glow);
    transition: all 0.3s var(--spring);
}

.nav-logo:hover .nav-mark {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 30px var(--gold-glow);
}

.nav-name {
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out-expo);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--gold);
    background: rgba(251, 191, 36, 0.08);
}

.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after { transform: scaleX(1); }

@media (max-width: 768px) {
    .nav { padding: 15px 20px; }
    .nav-links { display: none; }
}

/* ============================================
   SECTIONS BASE
============================================ */
.section {
    padding: 120px 50px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.section-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-title .gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .section { padding: 80px 20px; }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s var(--ease-out-expo);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s var(--ease-out-expo);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BUTTONS - Premium
============================================ */
.btn-magnetic {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.4s var(--spring);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-magnetic svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--spring);
}

.btn-magnetic:hover svg {
    transform: translateX(4px);
}

/* ============================================
   ICON BUTTONS
============================================ */
.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--spring);
    cursor: pointer;
}

.icon-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(251, 191, 36, 0.15);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 15px 30px var(--gold-glow);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.icon-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 10px 16px;
    background: var(--bg-secondary);
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out-expo);
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.icon-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--bg-secondary);
}

.icon-btn:hover .icon-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   SOCIAL LINKS
============================================ */
.social-link {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--spring);
}

.social-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(251, 191, 36, 0.15);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 40px var(--gold-glow);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   GLASS CARD BASE
============================================ */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.5s var(--ease-out-expo);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--gold-glow);
}

/* ============================================
   QR CODE STYLES
============================================ */
.qr-container {
    position: relative;
    display: inline-block;
}

.qr-mini {
    width: 48px;
    height: 48px;
    padding: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.4s var(--spring);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-mini:hover {
    transform: scale(1.1);
    border-color: var(--gold);
    box-shadow: 0 10px 30px var(--gold-glow);
}

.qr-mini svg, .qr-mini img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 280px;
    height: 280px;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.qr-expanded.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.qr-expanded img, .qr-expanded canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.qr-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    padding: 50px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(10px);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s var(--smooth);
    position: relative;
}

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

.footer-link:hover {
    color: var(--gold);
}

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

@media (max-width: 768px) {
    .footer { padding: 40px 20px; }
    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}
