/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #e0e6f0;
    overflow: hidden;
    min-height: 100vh;
    position: relative;
}

/* ========================================
   LOADING SCREEN
   ======================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(74, 158, 255, 0.2);
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader p {
    color: #a8b8d8;
    font-size: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   HEADER
   ======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    background: rgba(10, 14, 39, 0.3);
    backdrop-filter: blur(10px);
}

.logo h1 {
    font-size: 28px;
    font-weight: 600;
    color: #e0e6f0;
    letter-spacing: 1px;
}

.logo .highlight {
    color: #4a9eff;
}

/* ========================================
   MAIN CANVAS AREA
   ======================================== */
#canvas-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Background particle effect */
#canvas-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(74, 158, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(123, 104, 238, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* ========================================
   FLOATING QUOTES
   ======================================== */
.floating-quote {
    position: absolute;
    padding: 20px 30px;
    background: rgba(26, 31, 58, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    z-index: 10;
    text-decoration: none;
    display: block;
}

.floating-quote a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.floating-quote .quote-text {
    font-size: 18px;
    line-height: 1.6;
    color: #a8b8d8;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hover state */
.floating-quote:hover {
    transform: scale(1.05);
    background: rgba(26, 31, 58, 0.9);
    border-color: #4a9eff;
    box-shadow: 
        0 12px 40px rgba(74, 158, 255, 0.2),
        0 0 40px rgba(74, 158, 255, 0.1);
}

.floating-quote:hover .quote-text {
    color: #00d9ff;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* Active/Click state */
.floating-quote:active {
    transform: scale(0.98);
}

/* Glow effect on hover */
.floating-quote::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a9eff, #7b68ee, #00d9ff);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.floating-quote:hover::before {
    opacity: 0.3;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: rgba(10, 14, 39, 0.3);
    backdrop-filter: blur(10px);
    z-index: 100;
}

footer p {
    font-size: 12px;
    color: #a8b8d8;
    opacity: 0.6;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .floating-quote {
        max-width: 280px;
        padding: 15px 20px;
    }
    
    .floating-quote .quote-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .floating-quote {
        max-width: 240px;
        padding: 12px 16px;
    }
    
    .floating-quote .quote-text {
        font-size: 14px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.floating-quote:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 4px;
}

.floating-quote:focus:not(:focus-visible) {
    outline: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-quote {
        transform: none !important;
    }
}