/* עיצוב ספציפי לעמוד מאסטרינג - לא משפיע על עמוד הבית */
.services-hero {
    background-image: url('../assets/images/studio/services.png') !important;
    background-position: center center; /* תמונה של סטודיו בדרך כלל עדיף למרכז */
    background-size: cover; /* מוודא שהתמונה תכסה את כל השטח בצורה יפה */
}

/* עדכון אפקט ה-Glitch שייקח את לוגו המאסטרינג ולא את הלוגו הראשי */
.services-hero .hero-logo::before,
.services-hero .hero-logo::after {
    background-image: url('../assets/logo/services.png') !important;
}

/* התאמת גודל לוגו המאסטרינג במידה והוא רחב יותר מהרגיל */
.services-hero .hero-logo {
    width: 750px; /* אפשר לשחק עם זה בהתאם לפורמט של הלוגו החדש */
    animation: glitch-effect 3s steps(100) infinite; /* האטתי מעט את האנימציה למראה יוקרתי יותר */
}

/* מוודא שהשחרה של 80% קיימת גם כאן */
.services-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#services-hero-section.hero {
    background-image: url('assets/images/studio/services.png') !important;
    background-size: fit !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; }
}


/* =============================================
   GENERAL LAYOUT & LIGHT LEAK EFFECT
   ============================================= */

body {
    background-color: #050505; /* שחור עמוק */
    position: relative;
    overflow-x: hidden;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* אפקט זליגת אור כחולה בפינות המסך */
body::before, body::after {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
    border-radius: 50%;
}

body::before {
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(51, 102, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

body::after {
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(51, 102, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* =============================================
   ENTRANCE ANIMATION (ALIGNED WITH ABOUT ME)
   ============================================= */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
    /* כניסה חלקה של הכותרת */
    animation: fadeInUp 0.8s ease-out both;
}

/* =============================================
   GRIDS & CARDS STYLE
   ============================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    justify-content: center;
    margin-bottom: -110px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    justify-content: center;
    margin-bottom: 10px;
}

.service-card, .equipment-card {
    background-color: rgba(51, 102, 255, 0.06); 
    padding: 35px 25px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(51, 102, 255, 0.15);
    backdrop-filter: blur(8px);
    /* מעבר חלק יותר ב-Hover (בדומה לפורטפוליו לינק) */
    transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    color: #ffffff;
    
    /* אנימציית כניסה איטית יותר (0.8s) */
    animation: fadeInUp 0.8s ease-out both;
}

.service-card h3, .equipment-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #ffffff;
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* מבטל עיצוב ברירת מחדל של לינקים על כרטיסי הציוד */
.equipment-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block; /* גורם לכל שטח הכרטיס להיות לחיץ */
    transition: transform 0.3s ease;
}

/* אפקט הובר עדין לכל הכרטיס כשלוקחים עליו עם העכבר */
.equipment-link:hover .equipment-card {
    border-color: #3366FF !important; /* צבע המותג שלך */
    background-color: rgba(51, 102, 255, 0.05) !important;
    transform: translateY(-3px);
}

/* =============================================
   HOVER EFFECTS
   ============================================= */

.service-card:hover, .equipment-card:hover {
    background-color: rgba(51, 102, 255, 0.25);
    border-color: #3366ff;
    transform: translateY(-8px) scale(1.02); /* קפיצה עדינה כמו הלינקים שלך */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* =============================================
   STAGGERED ENTRANCE (SLOWED DOWN)
   ============================================= */

/* השהייה מדורגת מורחבת כדי לתת תחושת זרימה */
.services-grid .service-card:nth-child(1) { animation-delay: 0.15s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.45s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.6s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.75s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.9s; }
/* שאר הכרטיסים ייכנסו יחד אחרי הראשונים */
.services-grid .service-card:nth-child(n+7) { animation-delay: 1s; }

/* סקשן הציוד ייכנס רק אחרי שהשירותים הוצגו */
.equipment-grid .equipment-card {
    animation-delay: 1.2s;
}

/* =============================================
   EQUIPMENT SPECIFIC STYLE
   ============================================= */

.equipment-card {
    padding: 25px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-card h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 992px) {
    .services-grid, .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid, .equipment-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .container {
        padding: 40px 15px;
    }
}