/* Hero Section - מנוהל כרגע ב-Global לטובת הרקע */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ================================
    Hero Section המעודכן
================================ */
.hero {
    height: 110vh; 
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000000; 
    background-image: url('../assets/images/studio/home.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;
}

/* הכפתור המוקטן והמעודכן */
.cta-button {
    display: inline-block;
    padding: 12px 28px; /* הקטנת הריפוד הפנימי (היה 18/40) */
    font-size: 0.9rem;   /* הקטנת הפונט (היה 1.1 או 1.0) */
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px; /* ריווח אותיות מעט יותר הדוק */
    
    background-color: rgba(51, 102, 255, 0.1); 
    border: 1px solid rgba(51, 102, 255, 0.4);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

/* אפקט הובר נשאר זהה אבל מותאם לגודל החדש */
.cta-button:hover {
    background-color: #3366FF;
    border-color: #3366FF;
    transform: translateY(-2px); /* קפיצה קטנה יותר בהתאם לגודל */
    box-shadow: 0 8px 15px rgba(51, 102, 255, 0.3);
}

#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 (Before/After)
================================ */


.transformation-section {
    padding: 100px 20px;
    background-color: #000000;
    /* ה-Light Leak: */
    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; /* מבטיח שהאור לא "יברח" הצידה */
	margin-top: -100px;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

/* מיכל ה-Toggle (הבועית) */
.toggle-container {
    display: inline-flex;
    align-items: center;
    background-color: rgba(51, 102, 255, 0.1); /* שקיפות כחולה עדינה */
    border: 1.5px solid rgba(51, 102, 255, 0.4);
    border-radius: 50px;
    padding: 5px 25px;
    gap: 15px;
    backdrop-filter: blur(10px);
}

.toggle-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    opacity: 0.5; /* ברירת מחדל ללא לחוץ */
}

.slash {
    color: rgba(51, 102, 255, 0.5);
    font-weight: 300;
    font-size: 1.2rem;
}

/* מצב לחוץ (Active) */
.toggle-btn.active {
    background-color: #3366FF; /* צבע מלא */
    opacity: 1;
    box-shadow: 0 0 15px rgba(51, 102, 255, 0.4);
}

.toggle-btn:hover:not(.active) {
    opacity: 0.8;
}

.tracks-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px; /* צמצום הרוחב למראה מהודק יותר */
    margin: 60px auto 0;
}

.audio-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px; /* מעט יותר קומפקטי */
    background-color: transparent;
    border: 1.5px solid rgba(51, 102, 255, 0.2);
    border-radius: 10px; /* פחות מעוגל */
    transition: all 0.3s ease;
}

.audio-player:hover {
    border-color: rgba(51, 102, 255, 1);
    background-color: rgba(51, 102, 255, 0.05); /* הוספת רקע עדין מאוד בהובר */
}


.player-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.play-pause-btn {
    width: 45px;
    height: 45px;
    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;
}

.play-pause-btn:hover {
    transform: scale(1.1);
}

.track-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.track-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.artist-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.transformation-section .genre-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.process-type {
    font-size: 0.7rem;
    color: #3366FF;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* הויזואלייזר (Cubes) */
.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 25px;
}

.bar {
    width: 8px;
    height: 4px;
    background-color: rgba(51, 102, 255, 0.4);
    border-radius: 1px;
}

/* אנימציה כשהנגן עובד */
.audio-player.playing .bar {
    animation: bounce-cubes 0.6s ease infinite alternate;
}

@keyframes bounce-cubes {
    0% { height: 4px; background-color: #3366FF; }
    50% { background-color: #ffffff; }
    100% { height: 22px; background-color: #3366FF; }
}

/* השהיית אנימציה ליצירת מראה רנדומלי */
.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.3s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.15s; }

/* סידור הגריד - הצמדה ומרכוז */
.categories-grid {
    display: grid;
    /* הגדרת העמודה להיות בדיוק ברוחב הכרטיס (350px) */
    grid-template-columns: repeat(auto-fit, 350px); 
    
    /* עכשיו ה-GAP יעבוד באמת. ככל שתוריד את המספר, הם ייצמדו */
    gap: 20px; 
    
    margin-top: 50px;
    justify-content: center; 
    width: 100%;
}

.category-card {
    background-color: rgba(51, 102, 255, 0.15); 
    padding: 35px 20px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(51, 102, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;

    /* רוחב הכרטיס */
    width: 350px;      
    max-width: 100%;   
    margin: 0;
    min-height: 120px;
}n-height: 120px; /* שומר על הגובה שרצית */
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.category-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
}

/* אפקט הובר */
.category-card:hover {
    background-color: rgba(51, 102, 255, 0.95);
    border-color: #3366ff;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(51, 102, 255, 0.3);
}

.category-card:hover p {
    color: #ffffff;
}





/* ============================================================
   Profile Section (About Me)
============================================================ */
.profile-section {
    padding: 100px 50px 60px 50px;
    display: flex;
    justify-content: center;
    background-color: #000000;
	margin-top: -100px;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-container img {
    width: 600px;
    height: 350px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
	margin-top: 15px;
}

.profile-text {
    max-width: 550px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    text-align: center; 
}

/* עיצוב הטקסט המודגש - נשאר לבן כברירת מחדל */
.profile-text b {
    color: #ffffff;
    font-weight: 700;
}

/* הקישור למטה */
.portfolio-link {
    text-decoration: none; /* מבטל קו תחתון של קישור */
    display: inline-block;
    margin-top: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* הובר על המשפט האחרון - הופך לכחול וקופץ מעט */
.portfolio-link:hover {
    color: #3366ff;
    transform: scale(1.05);
}

/* מוודא שגם ה-<b> בתוך הקישור משנה צבע */
.portfolio-link:hover b {
    color: #3366ff;
}

/* גלילה חלקה כשלוחצים על הקישור */
html {
    scroll-behavior: smooth;
}

/* מצב התחלתי - שקוף ומוסט פחות (30px במקום 50px) בשביל מהירות */
.profile-section {
    opacity: 0;
    transform: translateY(30px);
    /* קיצרתי מ-0.8s ל-0.5s בשביל כניסה מהירה */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* המצב הפעיל אחרי הגלילה */
.profile-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* אנימציה לתמונה ולטקסט - קיצרתי את ה-transition ל-0.6s */
.profile-container img, .profile-text {
    opacity: 0;
    transform: scale(0.98); /* פחות כיווץ בהתחלה כדי שיחזור מהר למקום */
    transition: all 0.6s ease-out;
}

/* התמונה נכנסת כמעט מיד עם הסקשן */
.active .profile-container img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.1s; /* קיצרתי מ-0.2s */
}

/* הטקסט נכנס מיד אחרי התמונה */
.active .profile-text {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.25s; /* קיצרתי מ-0.4s */
}



/* ============================================================
   Testimonial Section
============================================================ */

.testimonials-section {
    padding: 100px 50px;
    text-align: center;
    background-color: #000000;
    /* הוספת ה-Light Leak הכחול גם כאן כדי שתהיה המשכיות */
    background-image: radial-gradient(circle at 50% 100%, rgba(51, 102, 255, 0.1) 0%, transparent 50%);
    position: relative;
	margin-top: -50px;
}

/* השוואת הכותרת לכותרת למעלה */
.testimonials-section .section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 50px;
    color: #ffffff;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    min-height: 300px; /* מונע מהדף לקפוץ כשהטקסט משתנה */
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial {
    display: none;
    flex-direction: column;
    align-items: center;
    /* עיצוב הבלוק כמו בנגן השירים */
    background: rgba(255, 255, 255, 0.05); 
    padding: 50px 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
    
    /* הכנה לאפקט ההובר על המסגרת */
    transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
}

/* אפקט הובר - משפיע על המסגרת והרקע בלבד */
.testimonial:hover {
    border-color: #3366ff;
    background-color: rgba(51, 102, 255, 0.08);
    box-shadow: 0 0 25px rgba(51, 102, 255, 0.2);
}

.testimonial.active {
    display: flex;
    /* אנימציית כניסה עדינה */
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.stars {
    color: #3366ff; /* כחול מותגי */
    font-size: 22px;
    margin-bottom: 25px;
    letter-spacing: 5px;
    transition: transform 0.3s ease;
}

/* הגדלה קלה של הכוכבים בזמן הובר על הבלוק */
.testimonial:hover .stars {
    transform: scale(1.1);
}

.testimonial p {
    font-family: Arial, sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    max-width: 90%;
}

.client-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #3366ff; /* השם בכחול של המותג */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}