/* Base Styles */
body {
    background-color: #050505;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Interactive Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Custom Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel-heavy {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

.kai-tooltip {
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff9d;
    border-radius: 12px;
    padding: 10px;
    z-index: 100;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
    animation: float 3s ease-in-out infinite;
}

.kai-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 40px;
    width: 12px;
    height: 12px;
    background: #00ff9d;
    transform: rotate(45deg);
    z-index: -1;
}

.text-gradient {
    background: linear-gradient(to right, #00ff9d, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 157, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00ff9d;
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

/* Mobile adjustments for tooltip */
@media (max-width: 640px) {
    .kai-tooltip {
        top: 60px;
        right: 10px;
        width: 160px;
        padding: 8px;
        font-size: 9px;
    }
    
    .kai-tooltip::before {
        right: 30px;
        width: 10px;
        height: 10px;
    }
}

/* Tablet and Mobile */
@media (max-width: 768px) {
    .hover-lift:hover {
        transform: translateY(-4px);
    }
    
    ::-webkit-scrollbar {
        width: 6px;
    }
}

/* Mobile landscape */
@media (max-width: 896px) and (orientation: landscape) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover {
        transform: none;
    }
}

/* Prevent zoom on input focus (iOS) */
@media (max-width: 640px) {
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Print styles */
@media print {
    #bg-canvas,
    nav,
    .kai-tooltip,
    footer,
    button,
    a[target="_blank"] {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-panel,
    .glass-panel-heavy {
        background: transparent;
        border: 1px solid #ccc;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU acceleration for performance */
.glass-panel,
.glass-panel-heavy,
.hover-lift {
    transform: translateZ(0);
    will-change: transform;
}
