@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Serif+Pro:wght@400;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #059669;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Pattern background */
.software-heritage-pattern {
    position: relative;
}

.software-heritage-pattern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    /* The Pattern */
    background-image: url("../images/software-heritage-logo.svg"); 
    background-repeat: repeat;
    background-size: 100px 100px; 
    
    /* Modern Styling */
    opacity: 0.03; 
    filter: grayscale(100%) brightness(1.2);
    -webkit-filter: grayscale(100%) brightness(1.2);
    mix-blend-mode: multiply;

    pointer-events: none;
    z-index: 0;
}

/* Make sure content stays on top */
.software-heritage-pattern > * {
    position: relative;
    z-index: 1;
}

/* Image hover effects */

.grayscale-hover img {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.grayscale-hover:hover img {
    filter: grayscale(0%);
}

/* Section headers */

.section-header {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

.profile-img-container:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-img-container:hover .profile-img {
    transform: scale(1.05);
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--light-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--primary-color);
    color: white;
}

.link-item {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--light-color);
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.link-item:hover {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.pdf-icon {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

a:hover .pdf-icon {
    filter: grayscale(0%);
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: var(--dark-color);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.email-obfuscated {
    direction: rtl;
    unicode-bidi: bidi-override;
}

footer {
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

/* Typewriter animation */
.typewriter-container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.typewriter-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
    padding-right: 5px;
    white-space: nowrap;
    overflow: hidden;
}

/* Blinking cursor animation */
.typewriter-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .typewriter-text {
        font-size: 1.2rem;
    }
}