/* Base Styles */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3dc;
    --text-color: #333;
    --light-text: #f4f4f4;
    --background-color: #fff;
    --section-bg: #f9f9f9;
    --border-color: #ddd;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
    margin-right: 10px;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.highlight {
    color: var(--accent-color);
}

/* Header Styles */
header {
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

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

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

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.1) 0%, rgba(79, 195, 220, 0.1) 100%);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.cta-buttons {
    margin-top: 30px;
}

/* About Section */
.about {
    background-color: var(--section-bg);
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    flex-direction: column;
}

.about-text {
    flex: 1;
}

.about h3 {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Resume Sections */
.resume-section {
    margin-bottom: 30px;
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
}

.resume-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.resume-item {
    margin-bottom: 20px;
    position: relative;
}

.resume-item:last-child {
    margin-bottom: 0;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.resume-item-header h4 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--secondary-color);
}

.resume-date {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

.resume-location {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.resume-section ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.resume-section ul li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.skills-list {
    list-style-type: none;
    padding-left: 0;
}

.skills-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills {
    margin-top: 20px;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

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

.skill-level {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background-color: var(--background-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

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

.portfolio-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 12px;
}

.portfolio-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.portfolio-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.portfolio-tech {
    display: inline-block;
    background-color: rgba(74, 111, 165, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.portfolio-features {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.portfolio-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.portfolio-features li:before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.portfolio-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Contact Section */
.contact {
    background-color: var(--section-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    margin-right: 15px;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(79, 195, 220, 0.2);
}

.field-label {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Form Status Messages */
.form-status {
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.form-status.sending {
    background-color: rgba(74, 111, 165, 0.2);
    color: var(--primary-color);
}

.form-status.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.form-status.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
}

/* Language Toggle Switch */
.language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.lang-label {
    font-weight: 600;
    margin: 0 10px;
    color: var(--primary-color);
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Language specific content */
html[data-language="en"] .de {
    display: none !important;
}

html[data-language="de"] .en {
    display: none !important;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media screen and (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
