/* DESIGN SYSTEM: Migueline___ EPK (Apple Premium Dark Mode)
   Sleek frosted glass (glassmorphism), refined rounded corners, macOS-style abstract flows.
   Maintains the dark, mysterious essence but with Apple's premium layout precision.
*/

:root {
    --neon-rgb: 168 85 247;
    --neon-dark-rgb: 124 58 237;
    --neon: rgb(var(--neon-rgb));
    --neon-dark: rgb(var(--neon-dark-rgb));
}

body {
    background-color: #000000;
    overflow-x: hidden;
}

#smokeCanvas {
    width: 100%;
    height: 100%;
    display: block;
    mix-blend-mode: screen;
    opacity: 0.6;
}

/* Apple Rounded Corners (Instead of Brutalist Straight Corners) */
* {
    /* Safe rounded borders for elements */
}

/* Apply specific border radii for Apple-style cards */
.apple-card {
    background: rgba(13, 11, 22, 0.55);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-card:hover {
    border-color: rgb(var(--neon-rgb) / 0.25);
    box-shadow: 0 15px 40px -10px rgb(var(--neon-rgb) / 0.1);
    transform: translateY(-4px);
}

/* MARQUEE Ticker (Refined Apple version) */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: absolute;
    top: 5rem;
    left: 0;
    pointer-events: none;
    user-select: none;
    z-index: 10;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    color: rgba(168, 85, 247, 0.08); /* Very subtle, elegant watermark color */
    font-weight: 300;
}

.marquee-content span {
    margin-right: 4rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Animations for Scroll Reveal (Pure CSS - robust like Mind page) */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Apple Sleek Inputs */
input, textarea {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-family: inherit !important; /* Elegant sans-serif instead of monospace for form */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

input:focus, textarea:focus {
    border-color: var(--neon) !important;
    background-color: rgb(var(--neon-rgb) / 0.05) !important;
    box-shadow: 0 0 0 4px rgb(var(--neon-rgb) / 0.15) !important;
    outline: none !important;
}

/* Apple Pill Buttons */
.apple-btn-primary {
    background: #ffffff;
    color: #000000;
    border-radius: 9999px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.apple-btn-primary:hover {
    background: var(--neon);
    color: #ffffff;
    box-shadow: 0 8px 20px rgb(var(--neon-rgb) / 0.35);
    transform: scale(1.02);
}

.apple-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 9999px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.apple-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

/* Lightbox styles (Apple Glassmorphism Overlay) */
#lightbox {
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    transition: opacity 0.3s ease;
}

/* ==================== NEW PREMIUM STYLINGS ==================== */

/* 1. Hero Soundwave Animado */
.soundwave-container {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 32px;
}
.soundwave-bar {
    width: 3px;
    height: 15%;
    background-color: var(--neon);
    border-radius: 9999px !important; /* Rounded bar caps */
    animation: soundwave-anim 1.2s ease-in-out infinite alternate;
}
.soundwave-bar:nth-child(2n) { animation-duration: 0.7s; animation-delay: 0.1s; }
.soundwave-bar:nth-child(3n) { animation-duration: 1.4s; animation-delay: 0.25s; }
.soundwave-bar:nth-child(4n) { animation-duration: 0.9s; animation-delay: 0.05s; }
.soundwave-bar:nth-child(5n) { animation-duration: 1.1s; animation-delay: 0.3s; }
@keyframes soundwave-anim {
    0% { height: 15%; }
    100% { height: 100%; }
}

/* 2. Interactive Stage Plot Cabin Console (Apple Style) */
.stage-plot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background-color: rgba(13, 11, 22, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 24px;
}
@media (max-width: 768px) {
    .stage-plot-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.stage-device {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 35px 20px;
    text-align: center;
    border-radius: 16px !important;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.stage-device:hover {
    border-color: rgb(var(--neon-rgb) / 0.4);
    background-color: rgb(var(--neon-rgb) / 0.06);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -10px rgb(var(--neon-rgb) / 0.2);
}
.stage-device.active {
    border-color: var(--neon);
    background-color: rgb(var(--neon-rgb) / 0.1);
    box-shadow: 0 10px 30px -10px rgb(var(--neon-rgb) / 0.3);
}

/* Status blinker */
.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon);
    border-radius: 50% !important; /* Circle exception */
    display: inline-block;
}
.status-dot.blink {
    animation: status-blink-anim 1.5s infinite;
}
@keyframes status-blink-anim {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 8px var(--neon); }
}

/* Timeline Operation Row (Apple Spec Style) */
.timeline-row {
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    padding-left: 24px;
    position: relative;
    transition: border-color 0.4s ease;
}
.timeline-row::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: #000;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50% !important; /* Dot timeline cap */
    transition: all 0.3s ease;
}
.timeline-row:hover {
    border-color: var(--neon);
}
.timeline-row:hover::before {
    background-color: var(--neon);
    border-color: var(--neon);
    box-shadow: 0 0 10px var(--neon);
}
