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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Header & Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.lang-btn.active {
    background-color: #3498db;
    border-color: #3498db;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* About Section */
.about {
    background-color: #f9f9f9;
}

.about-text p {
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* Inline Skills (nested inside About Me) */
.skills-inline {
    margin-top: 3rem;
}

.skills-inline h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.skills-inline .skill-card h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Companies Section */
.companies {
    background-color: #f9f9f9;
}

.company-card--solmetriq {
    background-color: #4facfe;
    color: white;
}

.company-card--solmetriq h3 {
    color: black;
}

.company-card--solmetriq .company-role {
    color: white;
}

.company-card--solmetriq .company-link {
    color: white;
}

.company-card--solmetriq .company-link:hover {
    color: #d0ecff;
}

.company-card--lasercutter {
    background-color: #f5576c;
    color: white;
}

.company-card--lasercutter h3 {
    color: black;
}

.company-card--lasercutter .company-role {
    color: white;
}

.company-card--lasercutter .company-link {
    color: white;
}

.company-card--lasercutter .company-link:hover {
    color: #fdd8e0;
}

.company-card--dekos {
    background-color: #11998e;
    color: white;
}

.company-card--dekos h3 {
    color: black;
}

.company-card--dekos .company-role {
    color: white;
}

.company-card--dekos .company-link {
    color: white;
}

.company-card--dekos .company-link:hover {
    color: #b2f8d8;
}

.company-card--liehmann {
    background-color: #9b59b6;
    color: white;
}

.company-card--liehmann h3 {
    color: black;
}

.company-card--liehmann .company-role {
    color: white;
}

.company-card--liehmann .company-link {
    color: white;
}

.company-card--liehmann .company-link:hover {
    color: #e8d5f5;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 0;
}

.company-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.company-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.company-logo {
    font-size: 3rem;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-role {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
}

.company-card p {
    margin: 0;
    font-size: 0.95rem;
}

.company-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: color 0.3s;
}

.company-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Projects Section */
.projects {
    background-color: #f9f9f9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact {
    background-color: #f9f9f9;
}

.contact-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    border-radius: 12px;
    padding: 1.5rem 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card--personal {
    background-color: #667eea;
}

.contact-card--solmetriq {
    background-color: #4facfe;
}

.contact-card--lasercutter {
    background-color: #f5576c;
}

.contact-card--dekos {
    background-color: #11998e;
}

.contact-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.contact-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.contact-item-value {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s;
    word-break: break-all;
}

.contact-item-value:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
}

/* vCard Section */
.vcard-section {
    padding-top: 120px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.vcard-layout {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.vcard-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
}

.vcard-photo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.vcard-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 auto;
}

.vcard-info h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.vcard-title {
    text-align: center;
    color: #667eea;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.vcard-details {
    margin-bottom: 1.5rem;
}

.vcard-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.vcard-detail:last-child {
    border-bottom: none;
}

.vcard-detail-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.vcard-detail-value {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.vcard-detail-value:hover {
    color: #667eea;
}

.vcard-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vcard-social-link {
    display: inline-block;
    padding: 6px 16px;
    background-color: #f0f0f0;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.vcard-social-link:hover {
    background-color: #667eea;
    color: white;
}

.btn-add-contact {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-add-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-add-contact:active {
    transform: translateY(0);
}

/* QR Code Section */
.vcard-qr {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.vcard-qr h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
}

.qr-code-container canvas,
.qr-code-container img {
    border-radius: 4px;
}

.qr-hint {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Logo link styling */
.logo a {
    color: white;
    text-decoration: none;
}

/* Active nav link */
.nav-links a.active {
    color: #3498db;
}

/* Floating QR Code - scrolls with page content */
.qr-float {
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 999;
}

.qr-float-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    text-align: center;
    width: 260px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.qr-float-content:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.qr-float .qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
}

.qr-float .qr-code-container canvas,
.qr-float .qr-code-container img {
    border-radius: 4px;
}

.qr-float .qr-hint {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Hide floating QR on smaller tablets and phones */
@media (max-width: 1200px) {
    .qr-float {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 140px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .hero {
        height: auto;
        min-height: 80vh;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .contact-card {
        padding: 1.2rem 1.5rem;
    }

    .vcard-layout {
        flex-direction: column;
        align-items: center;
    }

    .vcard-card {
        max-width: 100%;
    }

    .vcard-qr {
        max-width: 100%;
    }
}
