section.services,
section.projects,
section.contact {
    padding-top: 120px;
}

@media (min-width: 992px) {
    section.services,
    section.projects,
    section.contact {
        padding-top: 160px;
    }
}

.navbar-brand img{
    width:250px;
}

.navbar:not(.nav-sticky) {
    background-color: transparent;
    box-shadow: none;
    border-bottom: 0;
}

@media (max-width: 991.98px) {
    .navbar:not(.nav-sticky) {
        background-color: #fff;
        box-shadow: 0 10px 28px rgba(23, 45, 81, 0.08);
    }

    .navbar .navbar-collapse {
        background-color: #fff;
        margin-top: 0.5rem;
        padding: 0.75rem 0;
        border-top: 1px solid rgba(23, 45, 81, 0.08);
        border-radius: 0.75rem;
        box-shadow: 0 14px 36px rgba(23, 45, 81, 0.06);
    }

    .navbar .navbar-nav .nav-link {
        padding: 0.65rem 1rem;
    }
}

#about h4{
    text-align:justify;
}

.language-switcher {
    letter-spacing: 0.12em;
}

.language-switcher__link {
    color: #8a94a6;
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.language-switcher__link:hover,
.language-switcher__link:focus {
    color: #00bcd4;
}

.language-switcher__link.is-active {
    color: #00bcd4;
}

.language-switcher__divider {
    color: rgba(23, 45, 81, 0.24);
    margin: 0 0.7rem;
    font-weight: 300;
}

@media (max-width: 991.98px) {
    .language-switcher {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
  #services .bg-text {
    top: 48px;
  }

  #services .bg-text h1 {
    font-size: 52px;
  }
}

/* Desktop and laptop screens: floating effect */
@media (min-width: 992px) {
    #contact img {
        float: left;
        padding-right: 20px;
    }
}

.project-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 1px 3px rgba(23, 45, 81, 0.05),
        0 8px 24px rgba(23, 45, 81, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 4px 12px rgba(23, 45, 81, 0.09),
        0 20px 44px rgba(23, 45, 81, 0.13);
}

/* 16:9 image well — consistent across all cards */
.project-card-media {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #eef4f8;
}

.project-card-img,
.project-card-img-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.project-card-img {
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.project-card-media img {
    max-width: 100% !important;
}

.project-card-img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #edf4f8 0%, #f8fbfd 100%);
}

.project-card-fallback-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: rgba(23, 45, 81, 0.07);
    color: #172d51;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Subtle dark overlay — screenshot stays readable through it */
.project-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.40);
    opacity: 0;
    transition: opacity 0.28s ease;
}

/* White pill CTA centred in overlay */
.project-card-cta {
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.95);
    color: #172d51;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
    line-height: 1.4;
    white-space: nowrap;
}

/* Card body — controlled padding, no Bootstrap p-4 override needed */
.project-card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.4rem 1.4rem;
}

.project-card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #172d51;
    margin-bottom: 0.35rem;
}

.project-card-summary {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #8a94a6;
    min-height: calc(1.65em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* Touch-device CTA — replaces overlay on mobile */
.project-card-cta-mobile {
    display: none;
    margin-top: auto;
    padding-top: 0.875rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #172d51;
    opacity: 0.65;
}

@media (hover: hover) and (pointer: fine) {
    .project-card:hover .project-card-img {
        transform: scale(1.04);
    }

    .project-card:hover .project-card-overlay {
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .project-card {
        box-shadow:
            0 1px 3px rgba(23, 45, 81, 0.06),
            0 6px 20px rgba(23, 45, 81, 0.08);
    }
}

@media (max-width: 767.98px) {
    .project-card:hover {
        transform: none;
    }

    .project-card-overlay {
        display: none;
    }

    .project-card-cta-mobile {
        display: block;
    }
}

.project-modal { border-radius: 16px; overflow: hidden; }

.project-modal__media { position: relative; background: #0b1220; }
.project-modal__img { width: 100%; height: 240px; object-fit: cover; display: block; opacity: .96; }
.project-modal__close { position: absolute; top: 14px; right: 14px; filter: invert(1); opacity: .9; }
.project-modal__close:hover { opacity: 1; }

.project-modal__meta {
  background: rgba(13,110,253,.04);
  border: 1px solid rgba(13,110,253,.10);
  border-radius: 14px;
  padding: 14px;
}

.project-modal__section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #24324a;
  font-weight: 600;
}

.project-modal__list { padding-left: 0; list-style: none; }
.project-modal__list li { position: relative; padding-left: 18px; margin-bottom: 10px; }
.project-modal__list li:before { content: "•"; position: absolute; left: 0; top: 0; color: #0d6efd; font-weight: 700; }


@media (min-width: 992px) {

  #services .card {
    height: 100%;
  }

  #services .card-body {
    display: flex;
    flex-direction: column;
  }

  #services .card-body p {
    flex-grow: 1;
  }

}

.turnstile-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.turnstile-wrap .cf-turnstile {
    max-width: 100%;
}

@media (min-width: 768px) {
    .turnstile-wrap {
        justify-content: flex-start;
    }

    .turnstile-wrap .cf-turnstile {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .turnstile-wrap .cf-turnstile {
        transform: scale(0.92);
        transform-origin: center top;
    }
}

@media (max-width: 400px) {
    .turnstile-wrap .cf-turnstile {
        transform: scale(0.88);
    }
}

/* Demo badge — card image corner */
.project-demo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(240, 138, 67, 0.92);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    pointer-events: none;
}

/* Demo badge — detail page inline with type badge */
.project-demo-badge--inline {
    background-color: rgba(240, 138, 67, 0.12);
    color: #c8621a;
    border: 1px solid rgba(240, 138, 67, 0.30);
}

/* ── Project detail page ────────────────────────────────────────── */

.project-detail-back {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8a94a6;
    transition: color 0.2s ease;
}

.project-detail-back:hover {
    color: #172d51;
}

/* Sidebar meta card */
.project-detail-meta {
    background: #fff;
    border: 1px solid rgba(23, 45, 81, 0.09);
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    box-shadow:
        0 1px 3px rgba(23, 45, 81, 0.04),
        0 6px 18px rgba(23, 45, 81, 0.05);
}

.project-detail-meta__item {
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(23, 45, 81, 0.06);
}

.project-detail-meta__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a94a6;
    margin-bottom: 0.45rem;
}

.project-detail-meta__private {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #8a94a6;
    padding-top: 0.2rem;
}

/* Hero screenshot */
.project-detail-hero {
    border-radius: 12px;
    overflow: hidden;
    background: #eef4f8;
    line-height: 0;
    box-shadow:
        0 2px 6px rgba(23, 45, 81, 0.05),
        0 12px 36px rgba(23, 45, 81, 0.10);
}

.project-detail-hero__img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    max-height: 560px;
}

/* Section labels */
.project-detail-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a94a6;
    margin-bottom: 1.2rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(23, 45, 81, 0.08);
}

/* Highlights list */
.project-detail-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-detail-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(23, 45, 81, 0.05);
    font-size: 0.9375rem;
    color: #4a5a7a;
    line-height: 1.55;
}

.project-detail-highlights li:last-child {
    border-bottom: none;
}

.project-detail-highlights li i {
    margin-top: 3px;
}

/* Additional screenshots grid */
.project-detail-screenshot-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 2px 8px rgba(23, 45, 81, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-detail-screenshot-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(23, 45, 81, 0.12);
}

.project-detail-screenshot {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
}

/* CTA strip */
.project-detail-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    background: rgba(23, 45, 81, 0.03);
    border: 1px solid rgba(23, 45, 81, 0.08);
    border-radius: 12px;
}

@media (min-width: 768px) {
    .project-detail-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
