.mixing-hero {
    background-image: url('../assets/images/studio/mixing.png') !important;
    background-position: center center; /* תמונה של סטודיו בדרך כלל עדיף למרכז */
    background-size: cover; /* מוודא שהתמונה תכסה את כל השטח בצורה יפה */
}

.mixing-hero .hero-logo::before,
.mixing-hero .hero-logo::after {
    background-image: url('../assets/logo/mixing.png') !important;
}

.mixing-hero .hero-logo {
    width: 750px; /* אפשר לשחק עם זה בהתאם לפורמט של הלוגו החדש */
    animation: glitch-effect 3s steps(100) infinite; /* האטתי מעט את האנימציה למראה יוקרתי יותר */
}

/* מוודא שהשחרה של 80% קיימת גם כאן */
.mixing-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    z-index: 1;
}

body section#mixing-hero-section.hero {
    background-image: url('assets/images/studio/mixing.png') !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Hero Section - מנוהל כרגע ב-Global לטובת הרקע */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ================================
    Hero Section המעודכן
================================ */
.hero {
    height: 100vh; 
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000000; 
    background-image: url('../assets/images/portraits/mos.png');
    background-repeat: no-repeat;
    background-position: top center; /* שומר על הראש למעלה */
    /* מתיחה ל-100% רוחב, גובה אוטומטי */
    background-size: 100% auto; 
}

/* השחרה של 80% כפי שביקשת */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ================================
   Hero Section - Glitch Effect
================================ */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden; /* מוודא שהאפקט לא יברח מהמסך */
}

/* הגדרות הבסיס של הלוגו */
.hero-logo {
    width: 650px; 
    max-width: 90%; 
    height: auto; 
    position: relative; /* נחוץ בשביל אפקט ה-Glitch */
    /* מפעיל את האפקט: רץ בלופ (infinite), בקפיצות (steps) כדי שזה ייראה דיגיטלי */
    animation: glitch-effect 2s steps(100) infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
}

/* שכבות ה-Glitch הצבעוניות שמופיעות ונעלמות */
.hero-logo::before,
.hero-logo::after {
    content: ""; /* יוצר שכבה ריקה */
    background-image: url('../assets/logo/logo.png'); /* לוקח את אותה תמונה של הלוגו */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6; /* שקיפות עדינה כדי שזה ייראה כמו "רוח רפאים" */
}

/* השכבה הכחולה/אדומה של ה-VHS */
.hero-logo::before {
    animation: glitch-vhs-blue 2s steps(100) infinite;
    z-index: -1; /* יושב מאחורי הלוגו הראשי */
}

/* השכבה האדומה/ירוקה של ה-VHS */
.hero-logo::after {
    animation: glitch-vhs-red 2s steps(100) infinite;
    z-index: -2; /* יושב עוד יותר מאחורה */
}

/* העטיפה של הלוגו והכפתור - צמצום המרווח */
.hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -50px; /* צמצום המרווח מ-40px ל-20px */
    pointer-events: auto;
}


#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* מעל ההשחרה, מתחת ללוגו */
    pointer-events: none; /* שלא יפריע להקלקות */
}

.hero-content {
    z-index: 3; /* מוודא שהלוגו מעל החלקיקים */
}
/* ================================
   הגדרות האנימציות (Keyframes)
================================ */

/* אנימציה 1: עיוותים וקפיצות של הלוגו הראשי */
@keyframes glitch-effect {
    0% { transform: translate(0); }
    1% { transform: translate(-5px, 2px); }
    2% { transform: translate(3px, -1px); }
    3% { transform: translate(0); }
    10% { transform: translate(0); }
    11% { transform: scale(1.02); filter: blur(2px); } /* הבזק קטן */
    12% { transform: scale(1); filter: blur(0); }
    100% { transform: translate(0); }
}

/* אנימציה 2: עיוות כחול (VHS style) */
@keyframes glitch-vhs-blue {
    0% { transform: translate(0); visibility: hidden; }
    15% { transform: translate(-10px, 0); visibility: visible; }
    16% { transform: translate(10px, 0); visibility: visible; }
    17% { transform: translate(0); visibility: hidden; }
    100% { transform: translate(0); visibility: hidden; }
}

/* אנימציה 3: עיוות אדום (VHS style) */
@keyframes glitch-vhs-red {
    0% { transform: translate(0); visibility: hidden; }
    30% { transform: translate(10px, 0); visibility: visible; }
    31% { transform: translate(-10px, 0); visibility: visible; }
    32% { transform: translate(0); visibility: hidden; }
    100% { transform: translate(0); visibility: hidden; }
}


/* ============================================================
   TRANSFORMATION SECTION (MASTERING PAGE) - FULL BLOCK
   FORCE FIX: Restricted width with high specificity
   ============================================================ */

/* מיכל הסקשן */
section.transformation-section {
    padding: 100px 20px;
    background-color: #000000;
    background-image: radial-gradient(circle at 20% 30%, rgba(51, 102, 255, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(51, 102, 255, 0.1) 0%, transparent 40%);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.transformation-section .section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    color: #ffffff;
}

.transformation-section .section-text {
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* מיכל הנגנים - המחסום הקשיח */
.transformation-section .tracks-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 600px !important; /* הגבלה קשיחה */
    width: 100% !important;
    margin: 40px auto 0 !important; /* מרכז את כל הרשימה */
    padding: 0 !important;
}

/* הנגן הבודד - הגבלת רוחב סופית */
.transformation-section .audio-player {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 20px !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1.5px solid rgba(51, 102, 255, 0.2) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    
    /* מניעת התרחבות */
    width: 100% !important; 
    max-width: 600px !important;
    box-sizing: border-box !important; 
    margin: 0 auto !important;
}

.transformation-section .audio-player:hover {
    border-color: rgba(51, 102, 255, 0.8) !important;
    background-color: rgba(51, 102, 255, 0.05) !important;
    box-shadow: 0 0 20px rgba(51, 102, 255, 0.1) !important;
}

/* צד שמאל - Play ומידע */
.transformation-section .player-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.transformation-section .play-pause-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #3366FF;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.transformation-section .track-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.transformation-section .track-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.transformation-section .artist-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.transformation-section .genre-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.transformation-section .process-type {
    font-size: 0.65rem;
    color: #3366FF;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 4px;
}

/* צד ימין - A/B וויזואלייזר */
.transformation-section .player-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* כפתורי A/B */
.transformation-section .ab-selector {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 3px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.transformation-section .ab-unit {
    width: 32px;
    height: 30px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    font-weight: 800;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.transformation-section .ab-unit.active {
    background: #3366FF !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(51, 102, 255, 0.4);
}

/* ויזואלייזר */
.transformation-section .visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 18px;
    width: 35px;
}

.transformation-section .bar {
    width: 5px;
    height: 3px;
    background-color: rgba(51, 102, 255, 0.3);
}

/* אנימציה */
.transformation-section .audio-player.playing .bar {
    animation: bounce-cubes 0.6s ease infinite alternate;
}

@keyframes bounce-cubes {
    0% { height: 3px; background-color: #3366FF; }
    100% { height: 18px; background-color: #ffffff; }
}


