:root {
    --blue: #0277bd; /* strong medium-blue */
    --black: #000000;
    --white: #ffffff;
}

/* add bottom padding so content isn't hidden */
body {
    padding-bottom: 60px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.container {
    height: 100%;
    max-width: 45%;
    margin: auto 2%;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.card {
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    text-align: left;
}

.card p {
    line-height: 1.5rem;

}

.text-center {
    text-align: center;
}

.text-dark {
    color: #231f14;
}

.text-white {
    color: #fff;
}

.bg-brown {
    background-color: #91684a;
}

a {
    color: inherit;
    text-decoration: none;
}

.photo img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #ffffff;
}

.cta {
    margin-top: 20px;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s ease-in-out;
}

.cta:hover {
    background-color: #cccccc;
}

.contact {
    margin-top: 30px;
    padding-top: 20px;
}

.service p {
    font-size: 16px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 5px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
}

.telegram {
    background-color: #0088cc;
}

.linkedin {
    background-color: #0077b5;
}

.email {
    background-color: #090a06;
}

.social-btn i {
    margin-right: 8px;
}

.testimonials {
    padding: 60px 20px;
    /*background-color: rgba(255, 255, 255, 0.1);*/
    /*border-radius: 10px;*/
    /*max-width: 800px;*/
    margin: 50px auto;
}

.testimonial-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.testimonial {
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-size: 1rem;
    font-style: italic;
}

.testimonial h4 {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #91684a;
}

.testimonial span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.portfolio {
    margin: 60px auto;
    text-align: center;
}

.portfolio-grid {
    display: flex;
    /*background-color: rgba(255, 255, 255, 0.05);*/
    /*background-color: rgba(20, 20, 20, 0.8);*/
    border-radius: 10px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.portfolio-item {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    max-width: 300px;
    background-color: rgba(255, 255, 255, 0.85);
}

.portfolio-item p {
    font-size: 0.95rem;
}

.project-image {
    min-height: 160px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    max-height: 200px;
    border-radius: 10px;
}

.badge {
    padding: 4px 8px;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
}

.badge-live {
    background-color: #16873b;
    color: white;
}

.badge-acquired {
    background-color: #591698;
    color: white;
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0;
    }

    .card {
        margin-top: 460px;
    }

    .portfolio-item {
        border-radius: 10px;
        padding: 20px;
        text-align: center;
        max-width: 100%;
    }
}

.flag {
    min-height: 30px;
    display: flex;
    flex-direction: column;
}

/* each stripe takes equal available height */
.stripe {
    flex: 1 1 1vh; /* flexible, but at least 33.33vh */
    width: 100%;
}

/* color variations */
.stripe--blue {
    background: var(--blue);
}

.stripe--black {
    background: var(--black);
}

.stripe--white {
    background: var(--white);
}

/* small accessibility nicety for keyboard users */
.stripe:focus {
    outline: 3px solid rgba(255, 207, 145, 0.9);
    outline-offset: -3px;
}

.bottom-radius-0 {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.bottom-radius-8 {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(19, 13, 13, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 999;
    transform: translateY(0);
    transition: transform 0.35s ease, opacity 0.3s ease;
    color: white;
    font-size: 0.8rem;
}

.footer-hidden {
    transform: translateY(100%);
    opacity: 0;
}

.footer-inner {
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;

}

/* Container fixed at bottom */
.mobile-lang-selector {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

/* Desktop: move to bottom-right */
@media (min-width: 769px) {
    .mobile-lang-selector {
        left: auto;
        right: 20px;
        transform: none;
    }
}

/* Pill button */
.lang-btn {
    padding: 10px 22px;
    border-radius: 50px;
    border: none;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 15px;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: background 0.25s ease;
}

.lang-btn:active {
    background: rgba(0, 0, 0, 1);
}

/* Dropdown */
.lang-dropdown {
    position: absolute;
    bottom: 52px;
    right: 0;
    transform: scale(0.95);
    opacity: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 8px 0;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 110px;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Mobile dropdown centered above the pill */
@media (max-width: 768px) {
    .lang-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%) scale(0.95);
    }

    .lang-dropdown.open {
        transform: translateX(-50%) scale(1);
    }
}

/* Desktop dropdown opens above the button on the right */
@media (min-width: 769px) {
    .lang-dropdown.open {
        transform: scale(1);
    }
}

/* Open state */
.lang-dropdown.open {
    opacity: 1;
    pointer-events: all;
}

/* Options styling */
.lang-option {
    display: block;
    padding: 10px 16px;
    color: #000;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.7;
}

.lang-option:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.lang-option.active {
    font-weight: 600;
    opacity: 1;
}

@keyframes ctaPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
    100% {
        transform: scale(1);
    }
}

.cta-animate {
    animation: ctaPulse 1.6s ease-in-out infinite;
}

.badges {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    white-space: nowrap;
}

.badges img {
    width: 180px; /* default size */
    height: auto;
    max-height: 150px;
    /* allow shrinking but not growing too big */
    flex: 1 1 auto;
    max-width: 33%;
    object-fit: contain;
}