/* =====================================================
   DLSC Software & Consulting GmbH – Custom Styles
   Bootstrap 5 overrides and site-specific rules
   ===================================================== */

/* ---------- Brand colours ---------- */
:root {
    --dlsc-blue:      #1565C0;
    --dlsc-blue-dark: #0D47A1;
    --dlsc-accent:    #42A5F5;
    --dlsc-dark:      #1a1a2e;
    --dlsc-light-bg:  #f8f9fa;
}

/* ---------- Global ---------- */
html {
    scroll-behavior: smooth;
    scrollbar-color: rgba(255, 255, 255, .8) rgba(255, 255, 255, .8);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .8);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .8);
    border-radius: 5px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #212529;
}

/* ---------- Navbar ---------- */
.navbar {
    background-color: var(--dlsc-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    transition: background-color .3s;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.35rem;
    color: #ffffff !important;
    letter-spacing: .5px;
}

.navbar-brand span {
    color: var(--dlsc-accent);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, .8) !important;
    font-weight: 500;
    transition: color .2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--dlsc-accent) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, .5) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ---------- Hero section ---------- */
#home {
    background: linear-gradient(135deg, var(--dlsc-dark) 0%, var(--dlsc-blue) 100%);
    color: #ffffff;
    padding: 100px 0;
}

#home h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
}

#home h1 span {
    color: var(--dlsc-accent);
}

#home p.lead {
    font-size: 1.2rem;
    opacity: .9;
    max-width: 600px;
}

.fgfx-demo-img {
    max-width: 1032px;
    width: 100%;
}

.btn-dlsc {
    display: inline-flex;
    align-items: center;
    background-color: var(--dlsc-accent);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .75rem 2rem;
    border-radius: 2rem;
    transition: background-color .2s, transform .15s;
}

.btn-dlsc:hover {
    background-color: var(--dlsc-blue);
    color: #fff;
    transform: translateY(-2px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ---------- Section shared ---------- */
section {
    padding: 50px 0;
}

section:nth-of-type(even) {
    background-color: var(--dlsc-light-bg);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--dlsc-dark);
}

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

/* ---------- About ---------- */
#about .about-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ---------- Projects ---------- */
#projects .card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transition: transform .2s, box-shadow .2s;
}

#projects .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .13);
}

#projects .card-header {
    background-color: var(--dlsc-blue);
    color: #fff;
    border-radius: 1rem 1rem 0 0 !important;
    font-weight: 600;
    font-size: 1.05rem;
}

#projects .badge-tag {
    background-color: #e3f2fd;
    color: var(--dlsc-blue-dark);
    font-size: .75rem;
    padding: .25rem .6rem;
    border-radius: 1rem;
    font-weight: 500;
}

/* ---------- FlexGanttFX ---------- */
.badge-commercial {
    background-color: var(--dlsc-accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 2rem;
}

.fgfx-feature {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
    transition: transform .2s, box-shadow .2s;
}

.fgfx-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .13);
}

.fgfx-feature i {
    font-size: 2rem;
    color: var(--dlsc-blue);
    display: block;
    margin-bottom: 1rem;
}

.fgfx-feature h5 {
    font-weight: 700;
    color: var(--dlsc-dark);
    margin-bottom: .5rem;
}

.fgfx-feature p {
    color: #6c757d;
    font-size: .95rem;
    margin-bottom: 0;
}

.fgfx-clients {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.fgfx-clients-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #adb5bd;
    font-weight: 700;
    margin-bottom: 1rem;
}

.fgfx-client-tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--dlsc-light-bg);
    border: 1px solid #dee2e6;
    color: var(--dlsc-dark);
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem 1.25rem;
    border-radius: 2rem;
}

/* ---------- JFXCentral ---------- */
.jfxc-screenshot {
    display: block;
    width: 100%;
}

.jfxc-card {
    background: var(--dlsc-light-bg);
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}

.jfxc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.jfxc-card i {
    font-size: 1.75rem;
    color: var(--dlsc-blue);
    display: block;
    margin-bottom: .75rem;
}

.jfxc-card h6 {
    font-weight: 700;
    color: var(--dlsc-dark);
    margin-bottom: .4rem;
}

.jfxc-card p {
    font-size: .875rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* ---------- Contact ---------- */
#contact {
    background: linear-gradient(135deg, var(--dlsc-dark) 0%, var(--dlsc-blue-dark) 100%);
    color: #fff;
}

#contact .section-title {
    color: #fff;
}

#contact .section-title::after {
    background: var(--dlsc-accent);
}

#contact a {
    color: var(--dlsc-accent);
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

.contact-card {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 1rem;
    padding: 2rem;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--dlsc-dark);
    color: rgba(255, 255, 255, .55);
    font-size: .875rem;
    padding: 1.5rem 0;
}

/* ---------- Hero rain animation ---------- */
#home {
    position: relative;
    overflow: hidden;
}

.jfx-rain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

#home .container {
    position: relative;
    z-index: 1;
}

.jfx-rain-item {
    position: absolute;
    top: 0;
    transform-origin: center center;
    animation: jfx-fall linear forwards;
    will-change: transform, opacity;
}

.jfx-rain-item svg {
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45));
}

@keyframes jfx-fall {
    0%   { transform: translateY(-260px) rotate(var(--jfx-rot)) scale(var(--jfx-scale)); opacity: 0; }
    7%   { opacity: var(--jfx-opacity); }
    88%  { opacity: var(--jfx-opacity); }
    100% { transform: translateY(108vh)  rotate(var(--jfx-rot)) scale(var(--jfx-scale)); opacity: 0; }
}
