nav {
    background-color: rgba(51, 51, 51, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease-in-out;
}

nav a:hover {
    color: #ffffff;
}

nav a:hover::after {
    width: 100%;
}

body {
    background-color: #f4f4f4;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-y: auto;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(0, -50%);
    z-index: 1;
}

.hero-text h1 {
    font-size: 5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    color: #222;
}

.hero-text p {
    font-size: 1.5rem;
    color: #555;
    margin-top: 10px;
    font-weight: 400;
}

.highlight {
    color: #007bff;
    font-weight: 700;
}

footer {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 100;
    font-size: 0.8rem;
    color: #888;
}

.footer-content {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    margin-left: 10px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #333;
    text-decoration: underline;
}

.cv-container, .legal-container {
    max-width: 900px;
    margin: 40px auto 150px auto;
    padding: 0 20px;
}

.cv-section, .legal-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.cv-section h2, .legal-card h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 30px;
    color: #333;
}

.cv-header {
    text-align: center;
    margin-bottom: 50px;
}

.cv-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.cv-header .subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-info span {
    margin: 0 10px;
    color: #555;
    font-size: 0.95rem;
    display: inline-block;
}

.contact-info a {
    color: #555;
    text-decoration: none;
}

.timeline-item {
    display: flex;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.time {
    min-width: 150px;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    padding-top: 2px;
}

.content {
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
    width: 100%;
}

.highlight-item .content {
    border-left: 3px solid #555;
}

.content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #222;
}

.content .place {
    display: block;
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.content p, .content ul {
    color: #555;
    margin: 0;
    line-height: 1.5;
}

.content ul {
    padding-left: 20px;
    margin-top: 5px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-box h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #444;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #555;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-soft {
    background-color: #e9ecef;
    color: #333;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.language-list {
    list-style: none;
    padding: 0;
}

.language-list li {
    margin-bottom: 8px;
    color: #555;
}

.info-group {
    margin-bottom: 25px;
}

.info-group h3 {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.info-group p {
    color: #555;
    line-height: 1.6;
}

.cv-section:last-child {
    margin-bottom: 120px;
}

.love-content {
    text-align: center;
    padding: 60px 40px;
}

.image-wrapper img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f0f4f8;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.love-content h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    border: none;
}

.love-content p {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.heart-icon {
    font-size: 3rem;
    margin-top: 40px;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

.project-meta {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cv-section img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.cv-section img:hover {
    transform: scale(1.02);
}

.project-single-image {
    margin-top: 20px;
}

.project-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.project-gallery img,
.project-single-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.project-gallery img:hover,
.project-single-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 100vh;
        overflow-y: auto;
        padding-bottom: 20px;
    }

    .hero-text {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 100px;
        margin-bottom: 40px;
        text-align: center;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    img[style*="fixed"] {
        position: relative !important;
        width: 80% !important;
        max-width: 350px;
        height: auto;
        bottom: auto !important;
        left: auto !important;
        display: block;
        margin: 0 auto;
    }

    footer {
        position: relative !important;
        width: 100%;
        text-align: center;
        right: auto;
        bottom: auto;
        margin-top: 40px;
        padding-bottom: 20px;
        padding-right: 0;
        background-color: transparent;
    }

    .footer-content {
        align-items: center;
        text-align: center;
    }

    .timeline-item {
        flex-direction: column;
    }

    .time {
        margin-bottom: 5px;
    }

    .content {
        border-left: 2px solid #e0e0e0;
        padding-left: 15px;
        margin-left: 2px;
    }

    .cv-header h1 {
        font-size: 2.2rem;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }
}