/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f23;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    padding: 20px 0;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Profile Header */
.profile {
    text-align: center;
    margin-bottom: 32px;
}

.profile-image {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.hebrew-name {
    font-family: 'Playpen Sans Hebrew', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #b0b0b0;
    margin-bottom: 12px;
    direction: rtl;
    unicode-bidi: embed;
    text-align: center;
    letter-spacing: 0.2px;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

.bio {
    font-size: 1rem;
    font-weight: 500;
    color: #a0a0a0;
    margin-bottom: 12px;
}

.description {
    font-size: 0.875rem;
    color: #808080;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Links */
.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.link-item:hover {
    background: #252540;
    border-color: #3a3a5e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.link-item.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
}

.link-item.featured:hover {
    background: linear-gradient(135deg, #7c8ef0 0%, #8659b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-right: 16px;
    flex-shrink: 0;
}

.link-item.featured .link-icon {
    background: rgba(255, 255, 255, 0.2);
}

.link-icon i {
    font-size: 1.25rem;
    color: #ffffff;
}

/* Social platform specific colors */
.link-icon.linkedin {
    background: rgba(0, 119, 181, 0.2);
}

.link-icon.linkedin i {
    color: #0077b5;
}

.link-icon.github {
    background: rgba(51, 51, 51, 0.2);
}

.link-icon.github i {
    color: #ffffff;
}

.link-icon.huggingface {
    background: rgba(255, 107, 53, 0.2);
}

.link-icon.huggingface i {
    color: #ff6b35;
}

.link-icon.n8n {
    background: rgba(234, 88, 12, 0.2);
}

.link-icon.n8n i {
    color: #ea580c;
}

.link-icon.youtube {
    background: rgba(255, 0, 0, 0.2);
}

.link-icon.youtube i {
    color: #ff0000;
}

.link-content {
    flex: 1;
    text-align: left;
}

.link-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.link-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #a0a0a0;
    font-weight: 400;
}

.link-item.featured .link-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Collapsible sections */
.collapsible-section {
    margin-bottom: 16px;
}

.collapsible-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.collapsible-toggle:hover {
    background: #252540;
    border-color: #3a3a5e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-icon {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toggle-icon i {
    font-size: 0.875rem;
    color: #a0a0a0;
    transition: transform 0.2s ease;
}

.collapsible-content {
    display: none;
    margin-top: 8px;
}

.sub-item {
    margin-bottom: 8px;
    background: #16162a;
    border-color: #252540;
}

.sub-item:hover {
    background: #1e1e38;
    border-color: #2a2a4e;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: #808080;
    font-size: 0.875rem;
}

.footer i {
    margin-right: 6px;
    color: #a0a0a0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .profile h1 {
        font-size: 1.5rem;
    }
    
    .hebrew-name {
        font-size: 1.2rem;
    }
    
    .link-item {
        padding: 14px 16px;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .link-icon i {
        font-size: 1.1rem;
    }
    
    .link-title {
        font-size: 0.9rem;
    }
    
    .link-subtitle {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 480px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile {
    animation: fadeInUp 0.6s ease-out;
}

.link-item {
    animation: fadeInUp 0.6s ease-out;
}

.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.15s; }
.link-item:nth-child(3) { animation-delay: 0.2s; }
.link-item:nth-child(4) { animation-delay: 0.25s; }
.link-item:nth-child(5) { animation-delay: 0.3s; }
.link-item:nth-child(6) { animation-delay: 0.35s; }
.link-item:nth-child(7) { animation-delay: 0.4s; }
.link-item:nth-child(8) { animation-delay: 0.45s; }
.link-item:nth-child(9) { animation-delay: 0.5s; }
.link-item:nth-child(10) { animation-delay: 0.55s; }
.link-item:nth-child(11) { animation-delay: 0.6s; }
.link-item:nth-child(12) { animation-delay: 0.65s; }
.link-item:nth-child(13) { animation-delay: 0.7s; }
.link-item:nth-child(14) { animation-delay: 0.75s; }
.link-item:nth-child(15) { animation-delay: 0.8s; }

.collapsible-section {
    animation: fadeInUp 0.6s ease-out;
}

.collapsible-section:nth-child(11) { animation-delay: 0.6s; }
.collapsible-section:nth-child(12) { animation-delay: 0.65s; }

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
