/* ============================================
   VNDLO — Glass Morphism Design System
   Mac-inspired, refined, premium
   ============================================ */

/* ============================================
   BASE
   ============================================ */
:root {
    --bg: #080b12;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(255, 255, 255, 0.12);
    --primary: #6366f1;
    --secondary: #22d3ee;
    --accent: #34d399;
}

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

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
}

::selection {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
}

/* Scrollbar — minimal, Mac-style */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   GLASS MORPHISM SYSTEM
   ============================================ */
.glass {
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

.glass-surface {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================================
   NAVBAR — Frosted glass
   ============================================ */
#navbar {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(8, 11, 18, 0.72);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ============================================
   PARTICLES CANVAS
   ============================================ */
#particles {
    pointer-events: none;
    opacity: 0.6;
}

/* ============================================
   FAQ ACCORDION — Refined
   ============================================ */
.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.faq-item.active {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.04);
}

.faq-item.active .faq-content {
    max-height: 500px;
}

.faq-item.active .faq-toggle i {
    transform: rotate(180deg);
}

/* ============================================
   GLOW EFFECTS — Subtle
   ============================================ */
.glow-primary {
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.08);
}

.glow-accent {
    box-shadow: 0 0 60px rgba(52, 211, 153, 0.08);
}

/* ============================================
   CARD HOVER — Refined lift
   ============================================ */
.card-hover {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ============================================
   TEXT GRADIENT — Softer
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, #818cf8, #22d3ee, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.1); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.2); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
}

/* ============================================
   SKELETON LOADER
   ============================================ */
.skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.03) 25%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
}

/* ============================================
   SPLIDE CUSTOM — Minimal dots
   ============================================ */
.splide__pagination__page {
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important;
    width: 6px !important;
    height: 6px !important;
    transition: all 0.3s ease !important;
}

.splide__pagination__page.is-active {
    background: rgba(99, 102, 241, 0.8) !important;
    width: 20px !important;
}

/* ============================================
   BUTTON EFFECTS — Refined
   ============================================ */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

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

/* ============================================
   SECTION SEPARATORS — Subtle
   ============================================ */
.section-border {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-glow {
    position: relative;
}

.section-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

/* ============================================
   SERVICE DETAIL SCROLLBAR
   ============================================ */
.service-scroll::-webkit-scrollbar { width: 3px; }
.service-scroll::-webkit-scrollbar-track { background: transparent; }
.service-scroll::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 3px; }
.service-scroll { scrollbar-width: thin; scrollbar-color: rgba(99, 102, 241, 0.3) transparent; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .faq-item .faq-content {
        max-height: none;
    }
}
