/* ================= ROOT VARIABLES ================= */
:root {
  --logoDot: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 65%, #0B1E4B 100%);
  --pillDot: #3B82F6;
  --heroOverlay: radial-gradient(80% 120% at 20% 20%, rgba(59, 130, 246, .22), transparent 55%),
    linear-gradient(180deg, rgba(11, 30, 75, .55), rgba(11, 30, 75, .92));
  --heroDiagonal: linear-gradient(135deg, rgba(59, 130, 246, .22), rgba(255, 255, 255, 0));
  --heroDiagonalOpacity: .95;
  --sectionUnderline: #1E3A8A;
  --sectionUnderlineOnDark: #3B82F6;
  --statsText: #FFFFFF;
  --infoBg: #EFF6FF;
  --infoBorder: rgba(30, 58, 138, .20);
  --whyCardBg: #F8FAFC;
  --contactBg: linear-gradient(180deg, #0B1E4B 0%, #061330 100%);
  --contactCardBg: rgba(255, 255, 255, .06);
  --contactCardBorder: rgba(255, 255, 255, .12);
  --contactIconBg: rgba(59, 130, 246, .18);
}
/* Language selector: consistent, readable on dark header */
.lang-switcher-wrap {
    position: relative;
    display: inline-block;
}

#langSwitcher {
    -webkit-appearance: none;
    appearance: none;
    background-color: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 0.5rem;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    line-height: 1.25rem;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#langSwitcher:hover {
    background-color: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .35);
}

#langSwitcher:focus {
    outline: none;
    border-color: rgba(59, 130, 246, .65);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .35);
}

#langSwitcher option {
    background: #0b1d3a;
    color: #fff;
}

.lang-switcher-wrap::after {
    content: '';
    position: absolute;
    right: 0.85rem;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, .85);
    transform: translateY(-25%);
    pointer-events: none;
}

/* ===== Services Flip Cards ===== */
.service-flip {
    perspective: 1200px;
    min-height: 360px;
}

.service-flip .flip-inner {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
}

/* Rotate the inner on hover (desktop) */
.service-flip:hover .flip-inner {
    transform: rotateY(180deg);
}

.service-flip .flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    display: flex;
    flex-direction: column;

    padding: 1.5rem;
    /* space from all 4 sides */
    box-sizing: border-box;

    justify-content: center;
    /* vertical center */
    align-items: center;
    /* horizontal center */
    text-align: center;
    /* centered text */
    gap: 0.9rem;
    /* spacing between items */
}

/* Front face */
.service-flip .flip-front {
    transform: rotateY(0deg);
}

/* Back face */
.service-flip .flip-back {
    transform: rotateY(180deg);
}

/* Keep the list neat and centered on the back face */
.service-flip .flip-back ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 28rem;
}

.service-flip .flip-back li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
    line-height: 1.4;
}

/* ===== GBT Flip Card (compact + mobile-friendly) ===== */
.gbt-flip {
    perspective: 1200px;
}

.gbt-flip .flip-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform .6s ease;
    min-height: 0;
}

.gbt-flip .flip-face {
    position: relative;
    inset: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Desktop hover devices: enable true 3D flip with absolute faces */
@media (hover: hover) and (pointer: fine) {
    .gbt-flip .flip-inner {
        min-height: 140px;
    }

    .gbt-flip .flip-face {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .gbt-flip .flip-back {
        transform: rotateY(180deg);
    }

    .gbt-flip:hover .flip-inner {
        transform: rotateY(180deg);
    }
}

/* Small screens: tighten spacing so it doesn’t look “way too long” */
@media (max-width: 640px) {
    #about .bg-sky-50 {
        padding: 1rem !important;
    }

    .service-flip {
        min-height: 280px;
    }

    /* padding should be on the face (not the rotating inner) */
    .service-flip .flip-face {
        padding: 1.15rem;
    }
}

/* ===== GBT Flip Card mobile fix (prevents blank flip) ===== */
@media (hover: none) and (pointer: coarse) {

    #gbtFlipCard .flip-inner,
    #gbtFlipCard .flip-front,
    #gbtFlipCard .flip-back {
        transform: none !important;
    }

    #gbtFlipCard .flip-face {
        position: relative !important;
        inset: auto !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
    }

    #gbtFlipCard .flip-back {
        display: none;
    }

    #gbtFlipCard.is-flipped .flip-front {
        display: none;
    }

    #gbtFlipCard.is-flipped .flip-back {
        display: block;
    }
}

html,
body {
    overflow-x: hidden;
}