/*
Theme Name: The Dev Lab Alchemist
Theme URI: https://thedevlab.de
Author: The Dev Lab
Description: Custom Alchemist specific theme converted from static HTML.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* --- Variablen & Reset --- */
:root {
    /* --- Alchemist Palette --- */
    --bg-body: #050505;
    /* Deep Void */
    --bg-card: #121212;
    /* Charcoal */
    --bg-light: #1a1a1a;
    /* Lighter Charcoal for secondary sections */

    --primary-color: #0ea5e9;
    /* Modern Azure */
    --accent-color: #e0e7ff;
    /* Ice White */

    --text-color: #f1f5f9;
    /* Slate 100 */
    --text-muted: #cbd5e1;
    /* Slate 300 - Higher Contrast */

    --white: #ffffff;
    /* Keep pure white for specific needs, but minimize usage */

    --spacing: 2rem;
    --border-radius: 4px;
    /* Sharper, more technical */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

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

html {
    font-size: 18px;
    /* Increased base size for better legibility */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-body);
    padding-top: 140px;
    /* Increased to accommodate hanging logo */
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Helfer --- */
.container {
    max-width: 1200px;
    /* Standardized wider container */
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-intro-text {
    max-width: 700px;
    margin-bottom: 3rem;
    color: var(--text-muted);
}



.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

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

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* --- Header & Navigation (Premium Refactor) --- */
.site-header {
    /* Glassmorphism Configuration */
    --header-height-large: 100px;
    --header-height-small: 70px;
    --logo-box-size: 200px;
    --logo-box-small: 100px;
    /* Reduced specific width for better proportion */

    background-color: rgba(5, 5, 5, 0.9);
    /* Dark semi-transparent */
    backdrop-filter: blur(12px);
    /* Apple-style blur */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    /* Subtle azure border */

    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    /* Subtle border-like shadow */

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    height: var(--header-height-large);

    /* Hardware Acceleration */
    will-change: height, background-color, box-shadow;
    transform: translateZ(0);

    transition:
        height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        /* "Spring" ease out */
        background-color 0.5s ease,
        box-shadow 0.5s ease;
}

.site-header.scrolled {
    height: var(--header-height-small);
    background-color: rgba(5, 5, 5, 0.98);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    position: relative;
    max-width: 1400px;
    /* Wider constraint for modern look */
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* --- Hanging Logo Container --- */
.brand-container {
    position: absolute;
    top: 0;
    left: var(--spacing);

    width: var(--logo-box-size);
    height: var(--logo-box-size);

    background-color: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-top: none;

    /* Premium Shadow Depth */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -1px rgba(0, 0, 0, 0.2);

    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;

    /* Hardware Acceleration */
    will-change: width, height, transform;
    transform-origin: top left;

    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

/* Scrolled State for Logo */
.site-header.scrolled .brand-container {
    height: var(--header-height-small);
    width: 130px;
    /* Balanced width */
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

.logo-link {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;

    will-change: transform, opacity;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Logo Color Fix for Azure */
    mix-blend-mode: screen;
    /* Gold (~51deg) to Azure (~199deg) = +148deg. Boost saturation for vibrancy. */
    filter: hue-rotate(148deg) saturate(1.5) brightness(0.95);
}

.site-header.scrolled .logo-img {
    max-width: 90%;
    /* Utilize space without crowding */
    max-height: 85%;
}

/* --- Navigation --- */
.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.main-nav a:hover,
.main-nav a.current-page {
    color: var(--accent-color);
}

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1200;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
    .site-header {
        height: 70px;
    }

    .site-header.scrolled {
        height: 60px;
    }

    .brand-container {
        width: 100px;
        /* Smaller hanging logo on mobile */
        height: 100px;
        left: 1rem;
    }

    .site-header.scrolled .brand-container {
        width: 80px;
        height: 60px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        /* Drawer width */
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-card);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        padding: 5rem 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }



    .menu-open {
        overflow: hidden;
        /* Prevent body scroll */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .btn-secondary {
        display: block;
        margin: 1rem 0 0 0;
        text-align: center;
    }
}

/* --- Hero Section --- */
.hero {
    padding: 8rem 0;
    background: radial-gradient(circle at top right, #1a1a1a, transparent);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.subtitle {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #333;
    transition: 0.3s;
    color: var(--text-color);
}

.skill-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.skill-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    color: var(--text-muted);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-image {
    background-color: #cbd5e1;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 500;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tech-stack li {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.text-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

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

/* --- Contact Section --- */
.contact-intro h3 {
    margin-bottom: 1rem;
}

.contact-intro p {
    margin-bottom: 1rem;
}

.contact-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-cta p {
    margin-bottom: 2rem;
}

.contact-meta {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: #64748b;
}





/* --- Footer --- */
.site-footer {
    background-color: #000;
    border-top: 1px solid #222;
    color: var(--text-muted);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-cta {
    margin-bottom: 3rem;
}

.footer-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-cta p {
    margin-bottom: 2rem;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* --- Contact Form --- */
.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Slight border for separation */
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--bg-body);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

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

/* --- Responsive --- */
/* (Merged into main media query above) */

/* Aktiver Menüpunkt */
.main-nav a.current-page {
    color: var(--accent-color);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
}

/* --- Case Study Styles --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    padding: 1.5rem;
}

.caption h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.caption p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .feature-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}