/* ==========================================================================
   MAXIPA IOS - CYBER TECH DESIGN SYSTEM & COMPLEMENTARY STYLES
   ========================================================================== */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #050811;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}

/* --- Cyber Grid Background Pattern --- */
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* --- Feature Cards & Glassmorphism --- */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

/* --- Simulator Tabs --- */
.sim-tab-btn {
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
}

.sim-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.sim-tab-btn.active {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 4px 16px rgba(6, 182, 212, 0.25);
}

/* --- Installation Guide Tabs --- */
.install-guide-btn {
    cursor: pointer;
}

.install-guide-btn.active {
    background: rgba(6, 182, 212, 0.15) !important;
    border-color: rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

/* --- Guide Accordion System --- */
.guide-accordion-item {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.guide-accordion-item:hover {
    border-color: rgba(6, 182, 212, 0.35);
}

.guide-accordion-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.guide-accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.guide-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.guide-accordion-item.open .guide-accordion-content {
    max-height: 1200px;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-accordion-item.open .guide-chevron {
    transform: rotate(180deg);
}

/* --- Floating Keyframes --- */
@keyframes floatUp {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes floatDown {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(8px); }
}

.animate-bounce-slow {
    animation: floatUp 4s ease-in-out infinite;
}

.animate-bounce-slow-delay {
    animation: floatDown 4.5s ease-in-out infinite;
}

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

.animate-fade-in {
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.animate-scale-up {
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Utility to hide scrollbar */
.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
