/* ============================================
   GLOBAL STYLES – Moritz Mühlenberg
   ============================================ */

:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #131313;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* ========== NAVIGATION ========== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text-main); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* ========== HERO ========== */
header {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 5% 60px; /* More padding for header */
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
    align-items: center;
    z-index: 1;
}

/* Glow Effect Background */
header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
    text-align: left;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* FORCE IMAGE SIZE */
.hero-img {
    width: 100%;
    max-width: 380px;  /* Limit width strictly */
    height: auto;      /* Keep aspect ratio */
    max-height: 500px; /* Limit height strictly */
    object-fit: cover; /* Crop nicely if needed */
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    display: block;    /* Remove inline spacing quirks */
}

/* Neon rim effect simulation */
.hero-image-container::after {
    content: '';
    position: absolute;
    inset: 10px; /* Make it slightly smaller than container to hide edges */
    background: var(--gradient);
    border-radius: 25px;
    z-index: 1;
    filter: blur(30px);
    opacity: 0.3;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

header h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 0 35px 0;
}

.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px var(--accent-glow); }

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.05); }

/* ========== SECTIONS ========== */
.section {
    padding: 100px 5%;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header h2 span { color: var(--accent); }
.section-header p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.about-text p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat h3 { font-size: 2rem; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat p { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }

/* ========== PORTFOLIO / SERVICES GRID ========== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 35px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.portfolio-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.portfolio-card i { font-size: 2rem; color: var(--accent); margin-bottom: 20px; }
.portfolio-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.portfolio-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ========== BLOG GRID ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-page-grid {
    padding: 0 5% 100px;
}

.blog-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.blog-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.blog-card img,
.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content,
.blog-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta,
.blog-card-meta {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-card h3 { margin-bottom: 10px; font-size: 1.2rem; line-height: 1.4; }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }

.read-more {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover { color: var(--accent); }

/* ========== BLOG HEADER (Listing Page) ========== */
.blog-header {
    padding: 140px 5% 60px;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.blog-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== ARTICLE VIEW ========== */
.article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 140px 5% 100px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.article-back:hover { color: var(--text-main); }

.article-meta {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 15px;
}

.article-container h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.article-hero-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 40px;
    max-height: 450px;
    object-fit: cover;
}

.article-body p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-body h3 {
    margin: 35px 0 15px;
    font-size: 1.4rem;
}

/* ========== CONTACT ========== */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-color);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.contact-form textarea { height: 150px; resize: vertical; }

.contact-form button {
    padding: 16px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }

.success-msg {
    text-align: center;
    padding: 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 10px;
    margin-bottom: 20px;
}

.error-msg {
    text-align: center;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    margin-bottom: 20px;
}

.error-msg a { color: var(--accent); text-decoration: underline; }

/* ========== 404 ========== */
.not-found {
    text-align: center;
    padding: 200px 5%;
}

.not-found h1 { font-size: 5rem; margin-bottom: 10px; }
.not-found p { color: var(--text-muted); margin-bottom: 30px; }

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 40px 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 20px; }
.footer-links a { color: var(--text-muted); font-size: 1.3rem; }
.footer-links a:hover { color: var(--accent); }
footer p { color: var(--text-muted); font-size: 0.85rem; }
footer a { color: var(--accent); }
footer a:hover { color: #8b83ff; }

/* ========== IMPRESSUM ========== */
.impressum-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 40px 80px;
}

.impressum-container h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
}

.impressum-subtitle {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.impressum-section {
    margin-bottom: 45px;
}

.impressum-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    letter-spacing: -0.5px;
}

.impressum-section p {
    color: #b0b0b0;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.9;
}

.impressum-section .contact-info {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 15px;
}

.impressum-section .contact-info p {
    margin-bottom: 5px;
    color: #d0d0d0;
}

.impressum-section .contact-info a {
    color: var(--accent);
    text-decoration: none;
}

.impressum-section .contact-info a:hover { color: #8b83ff; }

.impressum-section .contact-info .label {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 3px;
}

.impressum-section .contact-info .label:first-child { margin-top: 0; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-top: 40px;
    padding: 12px 24px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-image-container {
        order: 1;
        margin-bottom: 20px;
    }
    
    .hero-img {
        max-width: 300px; /* Smaller on tablet */
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    header h1 {
        font-size: 2.8rem;
    }
    
    header p {
        margin: 0 auto 35px;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.3rem; }

    header h1 { font-size: 2.3rem; }
    .hero-img { max-width: 250px; } /* Even smaller on mobile */
    
    .about-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-header h1 { font-size: 2rem; }
    .article-container h1 { font-size: 1.8rem; }

    .impressum-container { padding: 120px 25px 60px; }
    .impressum-container h1 { font-size: 2.2rem; }
    .impressum-section h2 { font-size: 1.2rem; }
    .impressum-section .contact-info { padding: 20px; }
}
/* ============================================
   GLOBAL STYLES – Moritz Mühlenberg
   ============================================ */

:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #131313;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* ========== NAVIGATION ========== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text-main); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* ========== HERO ========== */
header {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 5% 60px; /* More padding for header */
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
    align-items: center;
    z-index: 1;
}

/* Glow Effect Background */
header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
    text-align: left;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* FORCE IMAGE SIZE */
.hero-img {
    width: 100%;
    max-width: 380px;  /* Limit width strictly */
    height: auto;      /* Keep aspect ratio */
    max-height: 500px; /* Limit height strictly */
    object-fit: cover; /* Crop nicely if needed */
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    display: block;    /* Remove inline spacing quirks */
}

/* Neon rim effect simulation */
.hero-image-container::after {
    content: '';
    position: absolute;
    inset: 10px; /* Make it slightly smaller than container to hide edges */
    background: var(--gradient);
    border-radius: 25px;
    z-index: 1;
    filter: blur(30px);
    opacity: 0.3;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

header h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 0 35px 0;
}

.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px var(--accent-glow); }

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.05); }

/* ========== SECTIONS ========== */
.section {
    padding: 100px 5%;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header h2 span { color: var(--accent); }
.section-header p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.about-text p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat h3 { font-size: 2rem; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat p { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }

/* ========== PORTFOLIO / SERVICES GRID ========== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 35px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.portfolio-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.portfolio-card i { font-size: 2rem; color: var(--accent); margin-bottom: 20px; }
.portfolio-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.portfolio-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ========== BLOG GRID ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-page-grid {
    padding: 0 5% 100px;
}

.blog-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.blog-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.blog-card img,
.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content,
.blog-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta,
.blog-card-meta {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-card h3 { margin-bottom: 10px; font-size: 1.2rem; line-height: 1.4; }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }

.read-more {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover { color: var(--accent); }

/* ========== BLOG HEADER (Listing Page) ========== */
.blog-header {
    padding: 140px 5% 60px;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.blog-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== ARTICLE VIEW ========== */
.article-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 140px 5% 100px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.article-back:hover { color: var(--text-main); }

.article-meta {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 15px;
}

.article-container h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.article-hero-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 40px;
    max-height: 450px;
    object-fit: cover;
}

.article-body p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-body h3 {
    margin: 35px 0 15px;
    font-size: 1.4rem;
}

/* ========== CONTACT ========== */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-color);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.contact-form textarea { height: 150px; resize: vertical; }

.contact-form button {
    padding: 16px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px var(--accent-glow); }

.success-msg {
    text-align: center;
    padding: 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 10px;
    margin-bottom: 20px;
}

.error-msg {
    text-align: center;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    margin-bottom: 20px;
}

.error-msg a { color: var(--accent); text-decoration: underline; }

/* ========== 404 ========== */
.not-found {
    text-align: center;
    padding: 200px 5%;
}

.not-found h1 { font-size: 5rem; margin-bottom: 10px; }
.not-found p { color: var(--text-muted); margin-bottom: 30px; }

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 40px 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 20px; }
.footer-links a { color: var(--text-muted); font-size: 1.3rem; }
.footer-links a:hover { color: var(--accent); }
footer p { color: var(--text-muted); font-size: 0.85rem; }
footer a { color: var(--accent); }
footer a:hover { color: #8b83ff; }

/* ========== IMPRESSUM ========== */
.impressum-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 40px 80px;
}

.impressum-container h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -1.5px;
}

.impressum-subtitle {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.impressum-section {
    margin-bottom: 45px;
}

.impressum-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    letter-spacing: -0.5px;
}

.impressum-section p {
    color: #b0b0b0;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.9;
}

.impressum-section .contact-info {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 15px;
}

.impressum-section .contact-info p {
    margin-bottom: 5px;
    color: #d0d0d0;
}

.impressum-section .contact-info a {
    color: var(--accent);
    text-decoration: none;
}

.impressum-section .contact-info a:hover { color: #8b83ff; }

.impressum-section .contact-info .label {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 3px;
}

.impressum-section .contact-info .label:first-child { margin-top: 0; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-top: 40px;
    padding: 12px 24px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-image-container {
        order: 1;
        margin-bottom: 20px;
    }
    
    .hero-img {
        max-width: 300px; /* Smaller on tablet */
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    header h1 {
        font-size: 2.8rem;
    }
    
    header p {
        margin: 0 auto 35px;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.3rem; }

    header h1 { font-size: 2.3rem; }
    .hero-img { max-width: 250px; } /* Even smaller on mobile */
    
    .about-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 2rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-header h1 { font-size: 2rem; }
    .article-container h1 { font-size: 1.8rem; }

    .impressum-container { padding: 120px 25px 60px; }
    .impressum-container h1 { font-size: 2.2rem; }
    .impressum-section h2 { font-size: 1.2rem; }
    .impressum-section .contact-info { padding: 20px; }
}


/* =========================================
   PORTFOLIO STYLES
   ========================================= */
.portfolio-header {
    text-align: center;
    padding: 6rem 1rem 3rem;
    background: var(--bg-secondary);
}

.portfolio-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-section-title {
    max-width: 1200px;
    margin: 3rem auto 1.5rem;
    padding: 0 1.5rem;
    font-size: 1.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

/* Anpassung für Short-Form Grid */
.projects-grid.shorts {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.project-thumb.vertical {
    aspect-ratio: 9/16; 
}

/* Overlay Play Icon */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.2s ease;
}

.project-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent);
    color: #000;
}

.play-overlay i {
    color: #fff;
    font-size: 1.2rem;
}
.project-card:hover .play-overlay i {
    color: #000;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.project-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.project-stat {
    color: var(--accent);
    font-weight: 600;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.project-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-project {
    display: inline-block;
    text-align: center;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-project:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
.btn-project:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}


/* ============================================
   PORTFOLIO PAGE – Aesthetic Redesign
   ============================================ */

/* Portfolio Hero */
.portfolio-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5% 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 80%, rgba(99,102,241,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.portfolio-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.portfolio-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1rem;
}

.portfolio-hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Section Headers */
.portfolio-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.section-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.section-line {
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-header h2 i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.section-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ========== FEATURED PROJECT (Hero Card) ========== */
.featured-project {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.featured-project.revealed {
    opacity: 1;
    transform: translateY(0);
}

.featured-project:hover {
    border-color: var(--accent);
}

.featured-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-project:hover .featured-thumb img {
    transform: scale(1.03);
}

.featured-thumb .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.featured-thumb .play-overlay i {
    color: #fff;
    font-size: 1.4rem;
    margin-left: 3px;
}

.featured-project:hover .featured-thumb .play-overlay {
    background: var(--accent);
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
}
.featured-project:hover .featured-thumb .play-overlay i {
    color: #000;
}

.featured-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(99,102,241,0.3);
}

.featured-badge i {
    margin-right: 4px;
}

.featured-info {
    padding: 2.5rem 2.5rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-info .project-tag {
    display: inline-block;
    width: fit-content;
    background: rgba(99,102,241,0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(99,102,241,0.2);
}

.featured-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.featured-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-info .btn-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    background: var(--gradient);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-info .btn-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.3);
}

/* ========== PROJECT CARDS GRID ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(99,102,241,0.1);
}

.project-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.project-thumb .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.project-thumb .play-overlay i {
    color: #fff;
    font-size: 1rem;
    margin-left: 2px;
}

.project-card:hover .project-thumb .play-overlay {
    opacity: 1;
    background: var(--accent);
    border-color: var(--accent);
}
.project-card:hover .project-thumb .play-overlay i {
    color: #000;
}

.project-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
}

.project-meta .project-tag {
    background: rgba(255,255,255,0.04);
    padding: 3px 10px;
    border-radius: 5px;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.06);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.project-stat {
    color: var(--accent);
    font-weight: 600;
}

.project-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.project-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== SHORT-FORM CARDS ========== */
.short-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.short-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--bg-secondary);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
}

.short-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.short-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.08);
}

.short-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
}

.short-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.short-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.short-link {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.short-card:hover .short-link {
    text-decoration: underline;
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-wrapper {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-wrapper {
    transform: scale(1);
}

.lightbox-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    color: #ff4444;
    transform: scale(1.1);
}

/* ========== PORTFOLIO RESPONSIVE ========== */
@media (max-width: 900px) {
    .featured-project {
        grid-template-columns: 1fr;
    }
    .featured-info {
        padding: 1.5rem;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .short-form-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-hero h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-hero h1 {
        font-size: 2rem;
    }
    .featured-info h3 {
        font-size: 1.3rem;
    }
    .short-card {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 2.5rem 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.navbar.scrolled{background:rgba(10,10,10,.98)!important}
