/* ============================================================
   DRAGONSEA - ULTRA PREMIUM 3D THEME
   Version: 2.0 Ultimate
   Design: Surpassing ngocrongawaken.vn
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700;800&display=swap');

/* ==== ROOT VARIABLES - ULTRA PREMIUM ==== */
:root {
    /* Primary Colors - Dragon Ball Theme */
    --dragon-orange: #FF6B00;
    --dragon-red: #E53935;
    --dragon-yellow: #FFD700;
    --dragon-gold: #F4C430;
    --dragon-blue: #00A8E8;
    --dragon-purple: #6C5CE7;
    --dragon-green: #00D26A;
    
    /* Dark Theme Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1428;
    --bg-tertiary: #1a1f3a;
    --bg-card: #12182a;
    --bg-card-hover: #1a2240;
    
    /* Border & Shadow */
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-secondary: rgba(255, 255, 255, 0.12);
    --border-glow: rgba(255, 107, 0, 0.3);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #6c757d;
    --text-gold: #FFD700;
    --text-orange: #FF6B00;
    
    /* Gradients - Ultra Premium */
    --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #E53935 50%, #FFD700 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #F4C430 50%, #FFA500 100%);
    --gradient-red: linear-gradient(135deg, #E53935 0%, #FF6B6B 100%);
    --gradient-blue: linear-gradient(135deg, #00A8E8 0%, #00D2FF 100%);
    --gradient-purple: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
    --gradient-green: linear-gradient(135deg, #00D26A 0%, #00FF88 100%);
    --gradient-dark: linear-gradient(180deg, #0a0e1a 0%, #0f1428 100%);
    --gradient-card: linear-gradient(145deg, rgba(18, 24, 42, 0.95) 0%, rgba(26, 31, 58, 0.95) 100%);
    
    /* 3D Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.6);
    --shadow-glow-orange: 0 0 30px rgba(255, 107, 0, 0.5);
    --shadow-glow-gold: 0 0 40px rgba(255, 215, 0, 0.6);
    --shadow-glow-red: 0 0 30px rgba(229, 57, 53, 0.5);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius - Ultra Rounded */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Header Heights */
    --header-top-h: 50px;
    --header-h: 70px;
}

/* ==== GLOBAL RESET & BASE ==== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

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

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

/* ==== SCROLLBAR CUSTOM ==== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-gold);
}

/* ==== UTILITY CLASSES ==== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-fluid {
    width: 100%;
    padding: 0 16px;
}

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

.text-gold {
    color: var(--text-gold) !important;
}

.text-orange {
    color: var(--text-orange) !important;
}

/* ==== ANIMATIONS ==== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float3D {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-15px) rotateX(5deg); }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 0, 0.8), 0 0 60px rgba(255, 107, 0, 0.4);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes rotate3D {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes dragonSpin {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(255, 107, 0, 0.3);
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
    }
    50% {
        border-color: rgba(255, 215, 0, 0.6);
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
    }
}

/* ==== ANIMATION CLASSES ==== */
.animate-fadeIn { animation: fadeIn 0.6s ease-out; }
.animate-fadeInUp { animation: fadeInUp 0.8s ease-out; }
.animate-fadeInDown { animation: fadeInDown 0.8s ease-out; }
.animate-slideInLeft { animation: slideInLeft 0.8s ease-out; }
.animate-slideInRight { animation: slideInRight 0.8s ease-out; }
.animate-scaleIn { animation: scaleIn 0.6s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-float3D { animation: float3D 4s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-shimmer { animation: shimmer 2s linear infinite; }
.animate-rotate3D { animation: rotate3D 3s linear infinite; }
.animate-dragonSpin { animation: dragonSpin 3s ease-in-out infinite; }
.animate-crownFloat { animation: crownFloat 3s ease-in-out infinite; }
.animate-orbFloat { animation: orbFloat 8s ease-in-out infinite; }
.animate-borderGlow { animation: borderGlow 3s ease-in-out infinite; }

/* ==== DELAY CLASSES ==== */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-1000 { animation-delay: 1s; }

/* ==== GLASSMORPHISM EFFECTS ==== */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dark {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: linear-gradient(145deg, rgba(18, 24, 42, 0.9) 0%, rgba(26, 31, 58, 0.8) 100%);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.glass-premium {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ==== 3D CARD EFFECTS ==== */
.card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-xl);
}

.card-3d:hover::before {
    opacity: 1;
}

/* ==== NEON GLOW BUTTONS ==== */
.btn-neon {
    position: relative;
    padding: 14px 32px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: var(--shadow-glow-orange);
}

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

.btn-neon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-neon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 50px rgba(255, 107, 0, 0.6);
}

.btn-neon:hover::after {
    opacity: 0.5;
}

/* ==== GRADIENT BORDER ==== */
.gradient-border {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ==== HOLOGRAPHIC EFFECT ==== */
.holographic {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 107, 0, 0.1) 0%, 
        rgba(255, 215, 0, 0.1) 25%,
        rgba(0, 168, 232, 0.1) 50%,
        rgba(108, 92, 231, 0.1) 75%,
        rgba(255, 107, 0, 0.1) 100%);
    background-size: 400% 400%;
    animation: shimmer 3s ease-in-out infinite;
}

/* ==== PARTICLE BACKGROUND ==== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--dragon-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--dragon-orange);
    animation: float 4s ease-in-out infinite;
}

/* ==== LOADING SKELETON ==== */
.skeleton {
    background: linear-gradient(90deg, 
        var(--bg-tertiary) 0%, 
        var(--bg-card-hover) 50%, 
        var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* ==== BADGES ==== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(255, 107, 0, 0.15);
    color: var(--dragon-orange);
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.badge-gold {
    background: rgba(255, 215, 0, 0.15);
    color: var(--dragon-gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.badge-red {
    background: rgba(229, 57, 53, 0.15);
    color: var(--dragon-red);
    border: 1px solid rgba(229, 57, 53, 0.3);
}

.badge-blue {
    background: rgba(0, 168, 232, 0.15);
    color: var(--dragon-blue);
    border: 1px solid rgba(0, 168, 232, 0.3);
}

.badge-green {
    background: rgba(0, 210, 106, 0.15);
    color: var(--dragon-green);
    border: 1px solid rgba(0, 210, 106, 0.3);
}

.badge-purple {
    background: rgba(108, 92, 231, 0.15);
    color: var(--dragon-purple);
    border: 1px solid rgba(108, 92, 231, 0.3);
}

/* ==== SECTION TITLES ==== */
.section-title {
    position: relative;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    margin-bottom: var(--spacing-md);
}

.section-title .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title .divider {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: var(--spacing-lg) auto;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow-orange);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 16px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    html {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }
    
    .btn-neon {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
}
