/* ===========================================================
   WEBAWARDS SECTION — rh-webawards- prefix
   Awards & Partnerships — Web Development Page
=========================================================== */

/* ── Section ── */
.rh-webawards-section {
    background: #fff;
    padding: 80px 0 100px;
    overflow: hidden;
    position: relative;
}

/* ── Bottom glow (sea-green / blue) ── */
.rh-webawards-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -80px;
    width: 620px;
    height: 380px;
    background: radial-gradient(
        ellipse at center bottom,
        rgba(6, 182, 212, 0.32) 0%,
        rgba(20, 184, 166, 0.22) 20%,
        rgba(6, 182, 212, 0.12) 45%,
        transparent 78%
    );
    filter: blur(35px);
    pointer-events: none;
    z-index: 0;
}

.rh-webawards-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 60px;
    width: 470px;
    height: 300px;
    background: radial-gradient(
        ellipse at center bottom,
        rgba(59, 130, 246, 0.26) 0%,
        rgba(6, 182, 212, 0.16) 30%,
        transparent 72%
    );
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}

/* ===========================================================
   HEADING — Gradient Highlight Box with Rotating Text
=========================================================== */
.rh-webawards-heading-wrap {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.rh-webawards-title {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.3em;
    margin: 0;
}

.rh-webawards-title-static {
    display: inline-block;
}

/* ── Gradient highlight box — blue → cyan animated ── */
.rh-webawards-title-rotating {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    padding: 0.1em 0.4em;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    background-size: 200% 200%;
    animation: rhWebawardsGradMove 4s ease infinite;
    border-radius: 12px;
    min-width: 280px;
    height: 1.25em;
    justify-content: center;
    align-items: center;
}

.rh-webawards-rotating-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Rotating word — white shiny text ── */
.rh-webawards-rotating-word {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(120%);
    display: inline-flex;
    white-space: nowrap;
    font-weight: 800;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: linear-gradient(120deg, #fff 40%, rgba(255, 255, 255, 0.6) 50%, #fff 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: rhWebawardsShineText 2.5s linear infinite;
}

.rh-webawards-rotating-word.rh-webawards-active {
    position: relative;
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
}

.rh-webawards-rotating-word.rh-webawards-exit-up {
    transform: translate(-50%, -50%) translateY(-120%);
    opacity: 0;
}

/* ── Subtitle ── */
.rh-webawards-subtitle {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    color: #64748b;
    margin-top: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ===========================================================
   GRID — 5 columns
=========================================================== */
.rh-webawards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.rh-webawards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
    border: 1px solid transparent;
    border-image: repeating-linear-gradient(
        to right,
        transparent 0px, transparent 3px,
        rgba(100, 116, 139, 0.25) 3px, rgba(100, 116, 139, 0.25) 5px,
        transparent 5px, transparent 8px
    ) 1;
}

/* ── Cell ── */
.rh-webawards-cell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 25px;
    z-index: 1;
    gap: 6px;
}

.rh-webawards-cell-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.rh-webawards-cell-img {
    max-width: 80%;
    max-height: 55%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.rh-webawards-cell:hover .rh-webawards-cell-img {
    transform: scale(1.08);
}

.rh-webawards-cell-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    letter-spacing: 0.5px;
    margin: 4px 0 0;
    text-transform: uppercase;
    line-height: 1.3;
}

/* ===========================================================
   VERTICAL LINES — Dotted + Shine
=========================================================== */
.rh-webawards-vline {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.rh-webawards-grid .rh-webawards-vline:nth-child(1) { left: 20%; }
.rh-webawards-grid .rh-webawards-vline:nth-child(2) { left: 40%; }
.rh-webawards-grid .rh-webawards-vline:nth-child(3) { left: 60%; }
.rh-webawards-grid .rh-webawards-vline:nth-child(4) { left: 80%; }

/* Dotted line */
.rh-webawards-vline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px, transparent 3px,
        rgba(100, 116, 139, 0.25) 3px, rgba(100, 116, 139, 0.25) 5px,
        transparent 5px, transparent 8px
    );
}

/* Shine orb */
.rh-webawards-vline::after {
    content: '';
    position: absolute;
    top: -80px;
    left: -6px;
    width: 14px;
    height: 80px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(59, 130, 246, 0.6) 20%,
        rgba(6, 182, 212, 1) 50%,
        rgba(59, 130, 246, 0.6) 80%,
        transparent 100%
    );
    filter: blur(4px);
    animation: rhWebawardsShineV 4s ease-in-out infinite;
    border-radius: 50%;
}

.rh-webawards-grid .rh-webawards-vline:nth-child(1)::after { animation-delay: 0s; }
.rh-webawards-grid .rh-webawards-vline:nth-child(2)::after { animation-delay: 0.7s; }
.rh-webawards-grid .rh-webawards-vline:nth-child(3)::after { animation-delay: 1.4s; }
.rh-webawards-grid .rh-webawards-vline:nth-child(4)::after { animation-delay: 2.1s; }

/* ===========================================================
   KEYFRAMES
=========================================================== */
@keyframes rhWebawardsGradMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rhWebawardsShineText {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes rhWebawardsShineV {
    0%   { top: -80px; opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 100%;  opacity: 0; }
}

/* ===========================================================
   RESPONSIVE — Tablet (≤ 1024px)
=========================================================== */
@media (max-width: 1024px) {
    .rh-webawards-section {
        padding: 60px 0 80px;
    }

    .rh-webawards-cell {
        padding: 20px;
    }

    .rh-webawards-title-rotating {
        min-width: 240px;
    }
}

/* ===========================================================
   RESPONSIVE — Mobile (≤ 768px)
=========================================================== */
@media (max-width: 768px) {
    .rh-webawards-section {
        padding: 50px 0 70px;
    }

    .rh-webawards-heading-wrap {
        margin-bottom: 40px;
    }

    .rh-webawards-title {
        flex-direction: column;
        gap: 8px;
    }

    .rh-webawards-title-rotating {
        min-width: 260px;
    }

    .rh-webawards-container {
        padding: 0 16px;
    }

    .rh-webawards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Keep only center vline on 2-col layout */
    .rh-webawards-grid .rh-webawards-vline:nth-child(1) {
        left: 50%;
    }

    .rh-webawards-grid .rh-webawards-vline:nth-child(2),
    .rh-webawards-grid .rh-webawards-vline:nth-child(3),
    .rh-webawards-grid .rh-webawards-vline:nth-child(4) {
        display: none;
    }

    .rh-webawards-cell {
        padding: 20px 15px;
        aspect-ratio: auto;
        min-height: 130px;
    }

    .rh-webawards-cell-img {
        max-width: 70%;
        max-height: 48px;
    }

    .rh-webawards-section::before {
        width: 440px;
        height: 270px;
        bottom: 0;
        left: -60px;
    }

    .rh-webawards-section::after {
        width: 340px;
        height: 210px;
        bottom: 0;
        left: 20px;
    }
}

/* ===========================================================
   RESPONSIVE — Small mobile (≤ 480px)
=========================================================== */
@media (max-width: 480px) {
    .rh-webawards-title-rotating {
        min-width: 220px;
    }

    .rh-webawards-cell {
        padding: 16px 12px;
        min-height: 110px;
    }

    .rh-webawards-cell-img {
        max-width: 65%;
        max-height: 40px;
    }

    .rh-webawards-cell-label {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
}

/* ===========================================================
   RESPONSIVE — Tiny mobile (≤ 360px)
=========================================================== */
@media (max-width: 360px) {
    .rh-webawards-title-rotating {
        min-width: 190px;
    }

    .rh-webawards-cell-img {
        max-width: 60%;
        max-height: 34px;
    }
}

/* ===========================================================
   REDUCED MOTION
=========================================================== */
@media (prefers-reduced-motion: reduce) {
    .rh-webawards-grid .rh-webawards-vline::after {
        animation: none !important;
        opacity: 0 !important;
    }

    .rh-webawards-rotating-word {
        transition: none !important;
    }

    .rh-webawards-title-rotating {
        animation: none !important;
    }

    .rh-webawards-rotating-word {
        animation: none !important;
    }
}