:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --text-color: #333;
    --light-text: #666;
    --light-bg: #f9f9f9;
    --border-color: #ddd;
    --hover-color: #eaeaea;
    --footer-bg: #333;
    --footer-text: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* Language toggling */
.lang-de {
    display: none;
}

body.lang-de-active .lang-en {
    display: none;
}

body.lang-de-active .lang-de {
    display: inline-block;
}

body.lang-en-active .lang-de {
    display: none;
}

body.lang-en-active .lang-en {
    display: inline-block;
}

/* Language selector styling */
.language-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    position: absolute;
    top: 15px;
    right: 20px;
}

.lang-btn {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Header styling */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.header-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--light-text);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Main content */
main {
    margin-top: 120px;
}

section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
    position: relative;
}

section h2::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About section */
.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-image {
    flex: 1;
    max-width: 300px;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-text {
    flex: 2;
}

.profile-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info {
    margin: 20px 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #3367d6;
}

/* Timeline for Experience and Volunteer sections */
.timeline {
    position: relative;
    margin: 40px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 120px;
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-date {
    min-width: 120px;
    text-align: right;
    padding-right: 30px;
    font-weight: 500;
    color: var(--light-text);
}

.timeline-content {
    flex: 1;
    padding-left: 30px;
    position: relative;
}

.timeline-content::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: -8px;
    top: 5px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--light-text);
    font-weight: 500;
}

.timeline-content p {
    margin-bottom: 10px;
}

.timeline-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.timeline-content ul li {
    margin-bottom: 5px;
}

/* Education section */
.education-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.education-item {
    display: flex;
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
}

.education-date {
    min-width: 150px;
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.education-content {
    flex: 1;
    padding: 20px;
}

.education-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.education-content h4 {
    font-size: 1.1rem;
    color: var(--light-text);
    font-weight: 500;
    margin-bottom: 10px;
}

.education-content p {
    margin-bottom: 5px;
}

/* Certificates section */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.certificate-item {
    display: flex;
    background-color: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

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

.certificate-icon {
    min-width: 70px;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.certificate-content {
    flex: 1;
    padding: 15px;
}

.certificate-content h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.certificate-content p {
    color: var(--light-text);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* Skills section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    padding-bottom: 5px;
    border-bottom: 2px solid var(--accent-color);
}

.skill {
    margin-bottom: 15px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: var(--light-bg);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 5px;
    width: 0;
    transition:
        width 1.5s ease,
        opacity 0.5s ease;
    opacity: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-tag {
    background-color: var(--light-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 3px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #3367d6;
}

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 15px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-indicator span {
    color: white;
    font-size: 18px;
    padding: 20px;
    background-color: #333;
    border-radius: 5px;
}

.success-message {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    text-align: center;
}

.error-message {
    color: #f44336;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .profile-image {
        margin-bottom: 30px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 60px;
    }

    .timeline-date {
        min-width: 60px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    .language-selector {
        position: static;
        justify-content: flex-end;
        margin-bottom: 15px;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        text-align: left;
        padding-right: 0;
        margin-bottom: 10px;
    }

    .timeline-content {
        padding-left: 0;
    }

    .timeline-content::before {
        display: none;
    }

    .education-item {
        flex-direction: column;
    }

    .education-date {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .header-content h1 {
        font-size: 2rem;
    }

    .header-content h2 {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }
}
