/* Modern Hero & Navbar Styles - Programmer.sk 2026 */

body {
    background: url('../images/background-planet.jpg') no-repeat top center #0f172a !important;
    background: url('../images/background-planet.webp') no-repeat top center #0f172a !important;
    background-size: cover !important;
    background-attachment: scroll !important;
}

@media (min-width: 992px) {
    body {
        background-attachment: fixed !important;
    }
}

@media (max-width: 768px) {
    body {
        background: url('../images/background-planet-mobile.webp') no-repeat top center #0f172a !important;
        background-size: cover !important;
        background-attachment: scroll !important;
    }
}

/* Navbar Styling (Compromise: Dark Gradient + Blur) */
.navbar {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0) 100%) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* The Logo Pill - creates a safe space for the dark logo */
.navbar-brand {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    margin-right: 0 !important;
    /* Reset bootstrap margin if needed */
}

.navbar-brand img {
    max-height: 80px;
    /* Optional safety limit, but allows smaller natural sizes */
    width: auto;
    display: block;
    border: none !important;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-left: 20px;
    /* High Contrast "Pill" Style - No Blur for Performance */
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 20px !important;
    border-radius: 50px;
    /* Pill shape */
    transition: all 0.3s ease;
    text-shadow: none;
    /* Background provides enough contrast */
}

.nav-link:hover {
    color: #ffffff !important;
    background: rgba(121, 30, 30, 0.8);
    /* Primary Red on Hover */
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* MODERN HERO SECTION */
.hero-section {
    padding-top: 140px;
    /* Space for fixed navbar + breathing room */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle fill */
    backdrop-filter: blur(16px);
    /* Heavy blur for premium glass look */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    /* Highlight on top */
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    width: 100%;
    /* max-width is handled by container */
}

/* Glossy shine effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: skewX(-25deg);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Typography */
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    color: #8E3314 !important;
    /* Stronger White Shadow/Glow */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
    letter-spacing: -1px;
    text-align: right;
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    color: #000000;
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: right;
    max-width: 650px;
    margin-left: auto;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    background: #6F1A07;
    /* Specific dark red requested */
    color: white;
    padding: 2px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(111, 26, 7, 0.4);
    vertical-align: middle;
    margin: 0 5px;
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #6F1A07 0%, #a52a11 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 25px rgba(111, 26, 7, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(111, 26, 7, 0.6);
    background: linear-gradient(135deg, #a52a11 0%, #6F1A07 100%);
    letter-spacing: 2px;
}

/* Robot Animation */
.hero-robot {
    max-width: 450px;
    /* Floating Animation */
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        text-align: center;
        margin: 0 auto 30px auto;
    }

    .text-wrapper {
        text-align: center !important;
    }

    .hero-robot {
        max-width: 300px;
        margin-bottom: 30px;
        animation: none !important;
        /* Performance fix for LCP */
        aspect-ratio: 1 / 1;
        /* CLS Fix: Match HTML width/height */
        object-fit: contain;
    }

    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }
}

/* Fix for Process Section and other light sections */
/* We target specifically text elements inside light containers to avoid inheritance issues */
.process .section-title,
.process .section-subtitle,
.services .section-title,
.contact .section-title {
    color: #1e293b !important;
    /* Force dark text on light backgrounds */
}

.process .section-subtitle,
.services .section-subtitle,
.contact .section-subtitle,
.section-subtitle {
    color: #1e293b !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.process .content-timeline p,
.services .service-card h3,
.services .service-card p,
.contact .contact-info,
.contact .contact-form label {
    color: #1e293b !important;
}

/* Specific fix for Process Headings (h2 inside timeline) */
.content-timeline h2 {
    color: #791e1e !important;
    /* Keep the brand red */
}

.hero-section {
    color: white !important;
    /* Ensure hero stays white */
}

/* Ensure Social Proof (Referencie) stays readable as it is a dark section */
#referencie .section-title,
#referencie .section-subtitle,
#referencie .testimonial-card,
#referencie .quote,
#referencie .author {
    color: white !important;
}

#referencie .author {
    color: #0284c7 !important;
    /* Keep the blue author link */
}