:root {
    --bg-color: #f7f5f2; /* Soft beige/grey background from BishtAdvisory */
    --text-color: #333333; /* Dark grey text */
    --primary-color: #800020; /* Official Bordeaux brand color */
    --secondary-color: #596e79; /* Muted secondary slate */
    --accent-color: #cda34f; /* Subtle gold accent */
    --card-bg: #e8e9ea; /* Subtle light gray panel bg */
    --card-hover: #ffffff;
    --border-color: #e5e0d8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Nav */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

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

/* Nav Pill Button for Contact */
.nav-btn-contact {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 0.55rem 1.6rem;
    border-radius: 9999px;
    font-weight: 600 !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
    box-shadow: 0 2px 6px rgba(128, 0, 32, 0.25);
}

.nav-btn-contact:hover {
    background: #66001a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Dropdown styling */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #ffffff;
    min-width: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    z-index: 100;
    list-style: none;
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
}

.dropdown:hover > .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    color: var(--text-color);
    border-bottom: 1px solid #f2f2f2;
}

.dropdown-content li:last-child a {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #fbfaf9;
    color: var(--primary-color);
}

/* Hamburger & Mobile Navigation */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
}

.hamburger svg {
    width: 26px;
    height: 26px;
}

/* Main Container */
main {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* Hero Section */
.hero {
    min-height: 48vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4.5rem 0 3.5rem;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
}

.gradient-text {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s ease, transform 0.15s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(128, 0, 32, 0.2);
}

.cta-button:hover {
    background: #66001a;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Glass Panels (BishtAdvisory signature style) */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    margin-bottom: 3.5rem;
    box-shadow: var(--shadow);
}

.glass-panel h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.6rem;
    font-weight: 700;
}

.about-content p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: #4a4a4a;
    line-height: 1.8;
}

/* Feature Cards Grid within Glass Panel */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.service-badge {
    background: var(--card-bg);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

/* Tech Stack Badges Section */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stack-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
}

.stack-box h4 {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.4rem;
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.stack-pill {
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 0.82rem;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

/* Direct Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.contact-info-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.75rem;
}

.contact-row {
    margin-bottom: 1.25rem;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row-title {
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-row-val {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
}

.contact-row-val a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-row-val a:hover {
    text-decoration: underline;
}

/* Site Footer (BishtAdvisory style) */
.site-footer {
    background: #d4d6d8;
    color: var(--text-color);
    padding: 4rem 5% 2rem;
    font-size: 0.95rem;
    border-top: 4px solid var(--primary-color);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.footer-col h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-col h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    font-weight: 600;
}

.footer-col p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #444444;
}

.footer-col a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 0.5rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #a0a2a4;
    color: var(--text-color);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    color: #15803d;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #c7d2fe;
}

/* Legal Pages (Privacy & Impressum) */
.legal-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    margin: 2rem 0 4rem;
    box-shadow: var(--shadow);
}

.legal-wrapper h1 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.legal-section-block {
    margin-top: 2rem;
}

.legal-section-block h2 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.legal-section-block p, .legal-section-block li {
    font-size: 1rem;
    color: #444444;
    line-height: 1.8;
}

.legal-section-block ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .glass-header {
        padding: 1rem 4%;
    }

    .nav-links {
        display: flex;
        gap: 0.85rem;
    }

    .nav-links li a {
        font-size: 0.9rem;
    }

    .nav-btn-contact {
        padding: 0.4rem 1.1rem;
        font-size: 0.9rem !important;
    }

    .gradient-text {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
