/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Blue Gradient */
    --deep-blue: #0A1929;
    --navy: #0B2A4A;
    --royal-blue: #1A4B7A;
    --sky-blue: #2B7FC1;
    --light-blue: #64B5F6;
    --glow-blue: #90CAF9;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --glass-blur: blur(20px);
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Accent */
    --accent-primary: #2B7FC1;
    --accent-secondary: #64B5F6;
    --accent-glow: rgba(43, 127, 193, 0.4);
    
    /* Status */
    --success: #00C48C;
    --warning: #FFB547;
    --danger: #FF4D4D;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: linear-gradient(145deg, 
        #0a1a2a 0%, 
        #0a2a4a 25%, 
        #1a4a7a 50%, 
        #2a6a9a 75%, 
        #3a8aba 100%
    );
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(43, 127, 193, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(100, 181, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(10, 25, 41, 0.8) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 2;
}

/* Premium Glassmorphism */
.glass-card {
    background: rgba(10, 30, 50, 0.3);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(100, 180, 255, 0.2);
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(100, 180, 255, 0.1) inset,
        0 0 30px rgba(58, 138, 186, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    background: rgba(20, 50, 80, 0.4);
    border-color: rgba(100, 180, 255, 0.4);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(100, 180, 255, 0.3) inset,
        0 0 50px rgba(58, 138, 186, 0.4);
    transform: translateY(-5px) scale(1.02);
}

/* Navigation */
.glass-header {
    background: rgba(10, 25, 41, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(43, 127, 193, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 45px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-glow);
    border-radius: var(--radius-full);
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-fast);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: white;
}

.btn-secondary:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-full);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -2;
}

.btn-glow:hover::after {
    opacity: 0.5;
    filter: blur(10px);
}

/* ========== TELEGRAM ANIMATION ========== */
.telegram-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

/* Gradient definition untuk Telegram logo */
.telegram-animation svg {
    width: 80px;
    height: 80px;
}

.telegram-animation svg stop:first-child {
    stop-color: #64b5f6;
    stop-opacity: 1;
}

.telegram-animation svg stop:last-child {
    stop-color: #1e88e5;
    stop-opacity: 1;
}

.telegram-animation svg path {
    fill: url(#gradient);
}

/* Paper Plane */
.plane {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: planeFloat 3s ease-in-out infinite;
}

.plane-body svg {
    filter: drop-shadow(0 0 15px rgba(100, 180, 255, 0.8));
    animation: planeGlow 2s ease-in-out infinite;
}

.trail {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(100,180,255,0.6) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: trailPulse 2s ease-out infinite;
    z-index: -1;
}

/* Orbiting Dots */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%);
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #64b5f6;
    border-radius: 50%;
    box-shadow: 0 0 15px #64b5f6;
}

.dot1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: orbit 3s linear infinite;
}

.dot2 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: orbit 3s linear infinite 0.75s;
}

.dot3 {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: orbit 3s linear infinite 1.5s;
}

.dot4 {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: orbit 3s linear infinite 2.25s;
}

/* Pulse Rings */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(100, 180, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulse 2s ease-out infinite;
}

.pulse-ring.delay {
    animation: pulse 2s ease-out infinite 1s;
}

/* Animations */
@keyframes planeFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    25% { transform: translate(-50%, -50%) translateY(-8px) rotate(-2deg); }
    75% { transform: translate(-50%, -50%) translateY(8px) rotate(2deg); }
}

@keyframes planeGlow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(100, 180, 255, 0.8)); }
    50% { filter: drop-shadow(0 0 25px rgba(100, 180, 255, 1)); }
}

@keyframes trailPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes orbit {
    0% {
        transform: translateX(-50%) rotate(0deg) translateY(-60px) rotate(0deg);
    }
    100% {
        transform: translateX(-50%) rotate(360deg) translateY(-60px) rotate(-360deg);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 1;
        border-width: 3px;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
        border-width: 1px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 30, 50, 0.5);
    backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a4a7a, #3a8aba);
    border-radius: 6px;
    border: 2px solid rgba(100, 180, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2a6a9a, #4a9aca);
}

/* Loading animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(100, 180, 255, 0.1);
    border-top-color: #3a8aba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Text selection */
::selection {
    background: #3a8aba;
    color: white;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 25, 41, 0.95);
        backdrop-filter: var(--glass-blur);
        padding: var(--spacing-lg);
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }
    
    .menu-toggle span {
        width: 30px;
        height: 3px;
        background: var(--text-primary);
        border-radius: 3px;
        transition: var(--transition-fast);
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -6px);
    }
}