* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #000;
    color: #fff;
    overflow: hidden;
}

/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo {
    font-size: 26px;
    letter-spacing: 8px;
    color: #fff;
    margin-bottom: 28px;
}

.preloader-percent {
    font-size: 50px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.08);
    position: relative;
}

.preloader-percent::after {
    content: attr(data-visible);
    position: absolute;
    inset: 0;
    color: #ff2f7f;
    mix-blend-mode: screen;
}

/* خط زیر درصد */
.preloader-line {
    width: 260px;
    height: 2px;
    margin: 26px auto 0;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.preloader-line-fill {
    height: 100%;
    width: 0%;
    background: #ff2f7f;
    transition: width 0.15s linear;
}

/* ========== BACKGROUND ========== */
#background-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
}

/* وقتی موس روی ستون است، کل صفحه کمی تاریک شود */
body.focus-dim #background-canvas {
    filter: brightness(0.3);
}

/* هدر */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8px;
    z-index: 2;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(14px);
}

.lang-switch {
    position: absolute;
    top: 10px;
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: #ccc;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lang-btn.active {
    background: linear-gradient(90deg, #00ffd5, #67b5ff);
    border-color: transparent;
    color: #000;
}

.brand-logo {
    font-size: 20px;
    letter-spacing: 8px;
    color: #ffffff;
    opacity: 0.95;
}

/* ستون‌ها پایین صفحه */
#main {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 40px;
    z-index: 1;
}

.columns-row {
    display: flex;
    gap: 26px;
    justify-content: center;
}

/* هر گزینه بزرگ‌تر و کامل‌تر */
.column-area {
    position: relative;
    flex: 1;
    max-width: 320px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* جای عکس خیلی بزرگ‌تر */
.column-image {
    height: 140px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: radial-gradient(circle at 30% 30%, #02141c, #02040a);
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.8);
    transition:
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        transform 0.18s ease,
        filter 0.25s ease;
}

/* متن پایین هر عکس */
.column-info h2 {
    font-size: 16px;
    margin-bottom: 4px;
}

.column-info p {
    font-size: 13px;
    color: #aaaaaa;
}

.column-area:hover .column-image {
    transform: translateY(-4px) scale(1.05);
}

/* زمانی که focus روی ستون است: این ستون روشن‌تر می‌شود */
.column-area.focus .column-image {
    filter: brightness(1.35);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, filter 0.2s ease;
}


/* =========================================================
   RESPONSIVE LAYOUT
   Add this section at the END of styles.css
========================================================= */

/* ---------- Large desktops ---------- */
@media (min-width: 1400px) {
    #main {
        padding: 44px 70px;
    }

    .columns-row {
        gap: 34px;
    }

    .column-area {
        max-width: 380px;
    }

    .column-image {
        height: 170px;
    }

    .column-info h2 {
        font-size: 18px;
    }

    .column-info p {
        font-size: 14px;
    }

    .brand-logo {
        font-size: 23px;
    }
}


/* ---------- Normal laptops / desktops ---------- */
@media (max-width: 1200px) {
    #main {
        padding: 32px 34px;
    }

    .columns-row {
        gap: 20px;
    }

    .column-area {
        max-width: 285px;
    }

    .column-image {
        height: 130px;
    }

    .brand-logo {
        font-size: 18px;
        letter-spacing: 6px;
    }
}


/* ---------- Tablets: 2 columns layout ---------- */
@media (max-width: 992px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    #top-bar {
        height: 86px;
        padding-bottom: 10px;
    }

    .brand-logo {
        font-size: 17px;
        letter-spacing: 5px;
    }

    .lang-switch {
        top: 10px;
    }

    #main {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        min-height: 100vh;
        display: flex;
        align-items: flex-end;
        padding: 130px 28px 32px;
    }

    .columns-row {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .column-area {
        max-width: none;
        width: 100%;
    }

    .column-image {
        height: 155px;
    }

    .column-info h2 {
        font-size: 16px;
    }

    .column-info p {
        font-size: 13px;
        line-height: 1.7;
    }
}


/* ---------- Mobile landscape / small tablets ---------- */
@media (max-width: 768px) {
    #top-bar {
        height: 78px;
        justify-content: center;
        padding-bottom: 0;
    }

    .brand-logo {
        font-size: 15px;
        letter-spacing: 4px;
        margin-top: 22px;
    }

    .lang-switch {
        top: 8px;
        gap: 6px;
    }

    .lang-btn {
        font-size: 10px;
        padding: 4px 9px;
    }

    #main {
        padding: 110px 20px 28px;
        align-items: flex-start;
    }

    .columns-row {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .column-image {
        height: 130px;
        border-radius: 16px;
    }

    .column-area {
        gap: 10px;
    }

    .column-info h2 {
        font-size: 15px;
    }

    .column-info p {
        font-size: 12px;
    }

    .column-area:hover .column-image {
        transform: translateY(-3px) scale(1.025);
    }
}


/* ---------- Mobile phones: single column ---------- */
/* @media (max-width: 576px) {
  body {
    overflow-y: auto;
  }

  #top-bar {
    height: 74px;
  }

  .brand-logo {
    font-size: 14px;
    letter-spacing: 3px;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lang-switch {
    top: 8px;
  }

  .lang-btn {
    font-size: 10px;
    padding: 3px 8px;
  }

  #main {
    padding: 100px 16px 24px;
    min-height: 100vh;
  }

  .columns-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .column-area {
    width: 100%;
    max-width: none;
  }

  .column-image {
    height: 145px;
    border-radius: 16px;
  }

  .column-info {
    padding-inline: 2px;
  }

  .column-info h2 {
    font-size: 15px;
    margin-bottom: 3px;
  }

  .column-info p {
    font-size: 12px;
    line-height: 1.7;
  }

  .preloader-logo {
    font-size: 18px;
    letter-spacing: 5px;
  }

  .preloader-percent {
    font-size: 42px;
  }

  .preloader-line {
    width: 220px;
  }
} */
@media (max-width: 576px) {
    body {
        overflow: hidden;
    }

    #main {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: auto;
        padding: 90px 12px 14px;
    }

    .columns-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .column-image {
        height: 90px;
        border-radius: 13px;
    }

    .column-info h2 {
        font-size: 12px;
    }

    .column-info p {
        font-size: 10px;
        line-height: 1.4;
    }
}


/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
    #main {
        padding-inline: 12px;
    }

    .brand-logo {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .lang-btn {
        font-size: 9px;
        padding: 3px 7px;
    }

    .column-image {
        height: 125px;
    }

    .column-info h2 {
        font-size: 14px;
    }

    .column-info p {
        font-size: 11px;
    }

    .preloader-logo {
        font-size: 15px;
        letter-spacing: 4px;
    }

    .preloader-percent {
        font-size: 36px;
    }

    .preloader-line {
        width: 180px;
    }
}


/* ---------- Short-height screens ---------- */
@media (max-height: 720px) and (min-width: 900px) {
    #top-bar {
        height: 78px;
    }

    #main {
        padding: 24px 36px;
    }

    .column-image {
        height: 115px;
    }

    .column-info h2 {
        font-size: 15px;
    }

    .column-info p {
        font-size: 12px;
    }
}


/* ---------- Very short laptop screens ---------- */
@media (max-height: 600px) and (min-width: 900px) {
    #top-bar {
        height: 66px;
    }

    .brand-logo {
        font-size: 15px;
    }

    .lang-switch {
        top: 6px;
    }

    #main {
        padding: 18px 30px;
    }

    .columns-row {
        gap: 18px;
    }

    .column-image {
        height: 95px;
    }

    .column-info h2 {
        font-size: 14px;
    }

    .column-info p {
        font-size: 11px;
    }
}