/* ========== WORK SECTION ========== */

/* ========== BREAKPOINT 1: 1441px and above ========== */
@media (min-width: 1441px) {
  .work-section-wrapper {
    max-width: 800px;
    margin: 204px auto 0 auto;
    border-radius: 72px;
    padding: 72px 0;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .work-section {
    color: #1a3557;
    position: relative;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
  }

  .work-title {
    font-family: 'Inria Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 24px;
    line-height: 116%;
    letter-spacing: -0.01em;
    color: #333;
    text-align: center;
    padding: 24px 0 24px 0;
  }

  .work-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 488px;
    align-items: center;
    position: relative;
    margin: 0 auto;
  }

  .work-card {
    background: #ffffff;
    border-radius: 32px;
    width: 100%;
    max-width: 488px;
    margin: 0 auto 8px auto;
    padding: 32px;
    transition: background-color 0.5s ease, color 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0px 5px 32px rgba(39, 39, 39, 0.02);
  }

  .card-content {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .logo-box {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .text-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .company-desc {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #333;
  }

  .company-link {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease;
  }

  .company-link img {
    width: 16px;
    height: 16px;
  }

  .work-card-preview {
    position: absolute;
    right: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 320px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .work-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .work-card:hover .work-card-preview {
    opacity: 1;
    visibility: visible;
    right: -340px;
    transform: translateY(-50%) rotate(8deg);
  }

  .work-card.garage:hover { background-color: #F54E39; }
  .work-card.bitsgap:hover { background-color: #004EF3; }
  .work-card.commas:hover { background-color: #009D90; }
  .work-card.timeweb:hover { background-color: #ED5D4E; }
  .work-card.growfood:hover { background-color: #00BD00; }

  .work-card:hover .company-desc,
  .work-card:hover .company-link {
    color: #fff;
  }

  .work-card:hover .company-link img {
    filter: brightness(0) invert(1);
  }
}

/* ========== BREAKPOINT 2: 1024px to 1440px ========== */
@media (min-width: 1024px) and (max-width: 1440px) {
  .work-section-wrapper {
    max-width: 800px;
    margin: 204px auto 0 auto;
    border-radius: 72px;
    padding: 72px 0;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .work-section {
    color: #1a3557;
    position: relative;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
  }

  .work-title {
    font-family: 'Inria Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 24px;
    line-height: 116%;
    letter-spacing: -0.01em;
    color: #333;
    text-align: center;
    padding: 24px 0 24px 0;
  }

  .work-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 488px;
    align-items: center;
    position: relative;
    margin: 0 auto;
  }

  .work-card {
    background: #ffffff;
    border-radius: 32px;
    width: 100%;
    max-width: 488px;
    margin: 0 auto 8px auto;
    padding: 32px;
    transition: background-color 0.5s ease, color 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0px 5px 32px rgba(39, 39, 39, 0.02);
  }

  .card-content {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .logo-box {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .text-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .company-desc {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #333;
  }

  .company-link {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease;
  }

  .company-link img {
    width: 16px;
    height: 16px;
  }

  .work-card-preview {
    position: absolute;
    right: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: 320px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .work-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .work-card:hover .work-card-preview {
    opacity: 1;
    visibility: visible;
    right: -340px;
    transform: translateY(-50%) rotate(8deg);
  }

  .work-card.garage:hover { background-color: #F54E39; }
  .work-card.bitsgap:hover { background-color: #004EF3; }
  .work-card.commas:hover { background-color: #009D90; }
  .work-card.timeweb:hover { background-color: #ED5D4E; }
  .work-card.growfood:hover { background-color: #00BD00; }

  .work-card:hover .company-desc,
  .work-card:hover .company-link {
    color: #fff;
  }

  .work-card:hover .company-link img {
    filter: brightness(0) invert(1);
  }
}

/* ========== BREAKPOINT 3: 800px to 1023px ========== */
@media (min-width: 1024px) and (max-width: 1440px) {
  .work-section-wrapper {
    max-width: 90vw;
    margin: 160px auto 0 auto;
    border-radius: 64px;
    padding: 64px 0;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .work-section {
    color: #1a3557;
    position: relative;
    width: 100%;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
  }

  .work-title {
    font-family: 'Inria Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 22px;
    line-height: 116%;
    letter-spacing: -0.01em;
    color: #333;
    text-align: center;
    padding: 20px 0 20px 0;
  }

  .work-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    align-items: center;
    position: relative;
    margin: 0 auto;
  }

  .work-card {
    background: #ffffff;
    border-radius: 28px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto 8px auto;
    padding: 28px;
    transition: background-color 0.5s ease, color 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0px 5px 32px rgba(39, 39, 39, 0.02);
  }

  .card-content {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .logo-box {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .text-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .company-desc {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #333;
  }

  .company-link {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease;
  }

  .company-link img {
    width: 16px;
    height: 16px;
  }

  .work-card-preview {
    position: absolute;
    right: -350px;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    height: 300px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .work-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .work-card:hover .work-card-preview {
    opacity: 1;
    visibility: visible;
    right: -300px;
    transform: translateY(-50%) rotate(8deg);
  }

  .work-card.garage:hover { background-color: #F54E39; }
  .work-card.bitsgap:hover { background-color: #004EF3; }
  .work-card.commas:hover { background-color: #009D90; }
  .work-card.timeweb:hover { background-color: #ED5D4E; }
  .work-card.growfood:hover { background-color: #00BD00; }

  .work-card:hover .company-desc,
  .work-card:hover .company-link {
    color: #fff;
  }

  .work-card:hover .company-link img {
    filter: brightness(0) invert(1);
  }
}

/* ========== BREAKPOINT 4: 600px to 799px ========== */
@media (min-width: 600px) and (max-width: 1023px) {
  .work-section-wrapper {
    max-width: 95vw;
    margin: 120px auto 0 auto;
    border-radius: 56px;
    padding: 56px 0;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .work-section {
    color: #1a3557;
    position: relative;
    width: 100%;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
  }

  .work-title {
    font-family: 'Inria Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    line-height: 116%;
    letter-spacing: -0.01em;
    color: #333;
    text-align: center;
    padding: 18px 0 18px 0;
  }

  .work-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    align-items: center;
    position: relative;
    margin: 0 auto;
  }

  .work-card {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 8px auto;
    padding: 24px;
    transition: background-color 0.5s ease, color 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0px 5px 32px rgba(39, 39, 39, 0.02);
  }

  .card-content {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .logo-box {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .text-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .company-desc {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    color: #333;
  }

  .company-link {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease;
  }

  .company-link img {
    width: 14px;
    height: 14px;
  }

  .work-card-preview {
    position: absolute;
    right: -300px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 280px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }

  .work-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .work-card:hover .work-card-preview {
    opacity: 1;
    visibility: visible;
    right: -260px;
    transform: translateY(-50%) rotate(8deg);
  }

  .work-card.garage:hover { background-color: #F54E39; }
  .work-card.bitsgap:hover { background-color: #004EF3; }
  .work-card.commas:hover { background-color: #009D90; }
  .work-card.timeweb:hover { background-color: #ED5D4E; }
  .work-card.growfood:hover { background-color: #00BD00; }

  .work-card:hover .company-desc,
  .work-card:hover .company-link {
    color: #fff;
  }

  .work-card:hover .company-link img {
    filter: brightness(0) invert(1);
  }
}

/* ========== BREAKPOINT 5: 420px to 599px ========== */
@media (min-width: 420px) and (max-width: 600px) {
  .work-section-wrapper {
    max-width: calc(100vw - 32px);
    margin: 100px 0 0 0;
    border-radius: 48px;
    padding: 48px 0px;
    box-sizing: border-box;
    position: relative;
    width: calc(100vw - 32px);
    display: flex;
    justify-content: center;
  }

  .work-section {
    color: #1a3557;
    position: relative;
    width: 100%;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
  }

  .work-title {
    font-family: 'Inria Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    line-height: 116%;
    letter-spacing: -0.01em;
    color: #333;
    text-align: center;
    padding: 16px 0 16px 0;
  }

  .work-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: calc(100vw - 32px);
    align-items: center;
    position: relative;
    margin: 0 auto;
  }

  .work-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: calc(100vw - 32px);
    margin: 0 auto 8px auto;
    padding: 20px;
    transition: background-color 0.5s ease, color 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0px 5px 32px rgba(39, 39, 39, 0.02);
  }

  .card-content {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .logo-box {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .text-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .company-desc {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    color: #333;
  }

  .company-link {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease;
  }

  .company-link img {
    width: 12px;
    height: 12px;
  }

  .work-card-preview {
    display: none;
  }

  .work-card.garage:hover { background-color: #F54E39; }
  .work-card.bitsgap:hover { background-color: #004EF3; }
  .work-card.commas:hover { background-color: #009D90; }
  .work-card.timeweb:hover { background-color: #ED5D4E; }
  .work-card.growfood:hover { background-color: #00BD00; }

  .work-card:hover .company-desc,
  .work-card:hover .company-link {
    color: #fff;
  }

  .work-card:hover .company-link img {
    filter: brightness(0) invert(1);
  }
}

/* ========== BREAKPOINT 6: 320px to 419px ========== */
@media (min-width: 320px) and (max-width: 420px) {
  .work-section-wrapper {
    max-width: calc(100vw - 32px);
    margin: 80px 0 0 0;
    border-radius: 40px;
    padding: 40px 0px;
    box-sizing: border-box;
    position: relative;
    width: calc(100vw - 32px);
    display: flex;
    justify-content: center;
  }

  .work-section {
    color: #1a3557;
    position: relative;
    width: 100%;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
  }

  .work-title {
    font-family: 'Inria Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    line-height: 116%;
    letter-spacing: -0.01em;
    color: #333;
    text-align: center;
    padding: 14px 0 14px 0;
  }

  .work-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: calc(100vw - 32px);
    align-items: center;
    position: relative;
    margin: 0 auto;
  }

  .work-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: calc(100vw - 32px);
    margin: 0 auto 8px auto;
    padding: 16px;
    transition: background-color 0.5s ease, color 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0px 5px 32px rgba(39, 39, 39, 0.02);
  }

  .card-content {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .logo-box {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .text-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .company-desc {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 11px;
    font-weight: 500;
    margin: 0;
    color: #333;
  }

  .company-link {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.015em;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #666;
    transition: color 0.2s ease;
  }

  .company-link img {
    width: 10px;
    height: 10px;
  }

  .work-card-preview {
    display: none;
  }

  .work-card.garage:hover { background-color: #F54E39; }
  .work-card.bitsgap:hover { background-color: #004EF3; }
  .work-card.commas:hover { background-color: #009D90; }
  .work-card.timeweb:hover { background-color: #ED5D4E; }
  .work-card.growfood:hover { background-color: #00BD00; }

  .work-card:hover .company-desc,
  .work-card:hover .company-link {
    color: #fff;
  }

  .work-card:hover .company-link img {
    filter: brightness(0) invert(1);
  }
} 