/* 
  עיצוב פרמיום מודרני, מותאם לעברית בשיטת Glassmorphism עם רקע דינמי.
*/

:root {
    /* צבעי רקע וטקסט */
    --bg-color: #0f172a; /* כחול-אפור מאוד כהה (Slate 900) */
    --text-primary: #f8fafc; /* לבן/אפור בהיר (Slate 50) */
    --text-secondary: #cbd5e1; /* אפור משני (Slate 300) */
    
    /* צבעים לכרטיסיות ולמעברי צבע */
    --card-bg: rgba(30, 41, 59, 0.4); /* (Slate 800) עם שקיפות רבה לטובת מראה זכוכית */
    --card-border: rgba(255, 255, 255, 0.08); /* גבול עדין מאוד */
    --card-hover-bg: rgba(45, 61, 89, 0.6); /* מראה מודגש במעבר עכבר */
    --card-hover-border: rgba(255, 255, 255, 0.2);
    
    /* מעבר צבע לכותרות ואלמנטים בולטים */
    --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Heebo', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
}

/* =========================================
   רקע דינמי
   ========================================= */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    /* מניפת גרדיאנטים עדינה לשילוב ברקע התחתון */
    background: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.1), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.1), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.1), transparent 40%);
    animation: pulse 15s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, 2%); }
}

/* =========================================
   מכולה מרכזית
   ========================================= */
.container {
    width: 100%;
    max-width: 500px;
    z-index: 10;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* =========================================
   כותרת ואזור פרופיל
   ========================================= */
.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.profile-image-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 4px;
    background: var(--accent-gradient);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4); }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* מיקוד גבוה יותר לכיוון הפנים */
    border-radius: 50%;
    border: 4px solid var(--bg-color); /* מיסגור התמונה לצבע הרקע */
}

.main-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text; /* תאימות לכרום/ספארי */
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 90%;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* =========================================
   רשת הקישורים
   ========================================= */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* אפקט אור עובר על הכרטיס במעבר עכבר (מצד ימין לשמאל בשל RTL) */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.link-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--card-hover-border);
    background: var(--card-hover-bg);
}

.link-card:hover::before {
    transform: translateX(-100%);
}

.icon {
    font-size: 1.5rem;
    margin-left: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.link-card:hover .icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.link-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    flex-grow: 1;
    color: #e2e8f0;
    transition: color 0.3s ease;
}

.link-card:hover h2 {
    color: #ffffff;
}

.arrow {
    font-size: 1.25rem;
    opacity: 0.3;
    transition: all 0.3s ease;
    /* יישור החץ לשמאל */
    color: var(--text-primary);
}

.link-card:hover .arrow {
    opacity: 1;
    transform: translateX(-6px);
    color: #ec4899; /* הופך לורוד מקשט */
}

/* =========================================
   תחתית עמוד
   ========================================= */
footer {
    margin-top: 3.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.6;
    font-weight: 300;
}
