/* ============================================
   HOORAN TESTIMONIALS — Liquid Glass Edition
   File: testimonials.css
   ============================================ */

.ht-section,
.ht-section *,
.ht-section *::before,
.ht-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ht-section {
    position: relative;
    width: 100%;
    padding: clamp(64px, 10vw, 112px) clamp(24px, 6vw, 80px) clamp(72px, 11vw, 120px);
    background: radial-gradient(135% 100% at 50% 0%, #1c1409 0%, #0c0a08 55%, #050404 100%);
    overflow: hidden;
    direction: rtl;
    font-family: 'IRANSans', 'Vazirmatn', Tahoma, sans-serif;
    isolation: isolate;
}

/* ---- ambient layer ---- */
.ht-beam {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201,169,110,.6) 30%,
        rgba(230,195,140,.9) 50%,
        rgba(201,169,110,.6) 70%,
        transparent 100%
    );
    filter: blur(1px);
    pointer-events: none;
    animation: ht-beam-pulse 4s ease-in-out infinite;
}

@keyframes ht-beam-pulse {
    0%, 100% { opacity: .4; }
    50%       { opacity: 1;  }
}

.ht-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
    will-change: transform;
}

.ht-orb--1 { width: 380px; height: 380px; background: rgba(201,169,110,.13); top: -80px; left: -80px; animation: ht-floatA 22s ease-in-out 0s infinite; }
.ht-orb--2 { width: 280px; height: 280px; background: rgba(212,185,150,.09); top: 50%; right: -60px; animation: ht-floatB 26s ease-in-out -7s infinite; }
.ht-orb--3 { width: 220px; height: 220px; background: rgba(168,139,82,.10); bottom: -50px; left: 38%; animation: ht-floatA 30s ease-in-out -13s infinite; }

@keyframes ht-floatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(28px, -22px) scale(1.05); }
    66%      { transform: translate(-18px, 18px) scale(0.96); }
}
@keyframes ht-floatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(-32px, 20px) scale(0.97); }
    75%      { transform: translate(22px, -28px) scale(1.04); }
}

.ht-sparkle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(212,185,150,.8);
    box-shadow: 0 0 6px rgba(201,169,110,.9);
    animation: ht-twinkle linear infinite;
}

@keyframes ht-twinkle {
    0%, 100% { opacity: .15; transform: scale(.6); }
    50%       { opacity: .9;  transform: scale(1.3); }
}

/* ---- heading ---- */
.ht-heading {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
    opacity: 0;
    animation: ht-rise .9s cubic-bezier(.22, 1, .36, 1) .1s forwards;
}

@keyframes ht-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.ht-heading__label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .28em;
    color: rgba(201,169,110,.7);
    margin-bottom: 14px;
    font-family: 'IRANSans', 'Vazirmatn', sans-serif;
}

.ht-heading__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #f4ead9;
    line-height: 1.1;
    text-shadow: 0 0 40px rgba(201,169,110,.25);
    direction: ltr;
    display: block;
}

.ht-heading__line {
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,110,.7), transparent);
    margin: 18px auto 0;
    transform: scaleX(0);
    animation: ht-line-grow 1.2s ease .5s forwards;
    transform-origin: center;
}

@keyframes ht-line-grow {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

/* ---- grid ---- */
.ht-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 2vw, 24px);
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* ---- card ---- */
.ht-card {
    position: relative;
    border-radius: 24px;
    padding: clamp(20px, 2.5vw, 30px) clamp(18px, 2vw, 26px);
    background: linear-gradient(145deg,
        rgba(255,255,255,.055) 0%,
        rgba(255,255,255,.018) 100%
    );
    border: 1px solid rgba(201,169,110,.16);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.04) inset,
        0 1px 0 rgba(255,255,255,.09) inset,
        0 32px 64px -24px rgba(0,0,0,.7),
        0 0 60px -20px rgba(201,169,110,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity .6s cubic-bezier(.22,1,.36,1),
        transform .6s cubic-bezier(.22,1,.36,1),
        box-shadow .4s ease,
        border-color .4s ease;
    will-change: transform, opacity;
}

.ht-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.ht-card:nth-child(1) { transition-delay: .1s; }
.ht-card:nth-child(2) { transition-delay: .22s; margin-top: -10px; }
.ht-card:nth-child(3) { transition-delay: .34s; }

.ht-card:hover {
    border-color: rgba(201,169,110,.34);
    box-shadow:
        0 0 0 1px rgba(255,255,255,.07) inset,
        0 1px 0 rgba(255,255,255,.13) inset,
        0 40px 80px -24px rgba(0,0,0,.75),
        0 0 80px -16px rgba(201,169,110,.18);
}

/* shimmer sweep on hover */
.ht-card__shimmer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg,
        transparent 30%,
        rgba(255,255,255,.055) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
    pointer-events: none;
    transition: background-position .65s ease;
}
.ht-card:hover .ht-card__shimmer { background-position: 200% 0; }

/* bottom glow on hover */
.ht-card__glow {
    position: absolute;
    bottom: -30px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 60px;
    background: rgba(201,169,110,.14);
    filter: blur(24px);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s ease;
}
.ht-card:hover .ht-card__glow { opacity: 1; }

/* ---- card internals ---- */
.ht-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.ht-quote {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(201,169,110,.1);
    border: 1px solid rgba(201,169,110,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ht-quote svg {
    width: 16px; height: 16px;
    fill: rgba(201,169,110,.8);
}

.ht-stars {
    display: flex;
    gap: 3px;
    direction: ltr;
}

.ht-star {
    width: 13px; height: 13px;
    fill: #C9A96E;
    filter: drop-shadow(0 0 4px rgba(201,169,110,.6));
    opacity: 0;
    transform: scale(0) rotate(-20deg);
    animation: ht-star-pop .4s cubic-bezier(.34,1.56,.64,1) forwards;
}
.ht-card.is-visible .ht-star { animation-play-state: running; }
.ht-star:nth-child(1) { animation-delay: .5s; }
.ht-star:nth-child(2) { animation-delay: .58s; }
.ht-star:nth-child(3) { animation-delay: .66s; }
.ht-star:nth-child(4) { animation-delay: .74s; }
.ht-star:nth-child(5) { animation-delay: .82s; }

@keyframes ht-star-pop {
    from { transform: scale(0) rotate(-20deg); opacity: 0; }
    to   { transform: scale(1) rotate(0);      opacity: 1; }
}

.ht-text {
    font-size: clamp(12.5px, 1.1vw, 14px);
    line-height: 2;
    color: rgba(230,218,198,.82);
    font-weight: 300;
    flex: 1;
    margin-bottom: 22px;
}

.ht-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(201,169,110,.2),
        transparent
    );
    margin-bottom: 18px;
}

.ht-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ht-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(201,169,110,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.ht-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 60%);
    border-radius: 50%;
}

.ht-avatar--1 { background: linear-gradient(135deg, #2a1f0e, #3d2d14); color: #D4B996; }
.ht-avatar--2 { background: linear-gradient(135deg, #1a1a2a, #2a2040); color: #b8a8e0; }
.ht-avatar--3 { background: linear-gradient(135deg, #0f2218, #1a3525); color: #90c8a0; }

.ht-author__info { flex: 1; }

.ht-author__name {
    font-size: 13px;
    font-weight: 500;
    color: #e6dac6;
    display: block;
    margin-bottom: 2px;
}

.ht-author__role {
    font-size: 11px;
    color: rgba(201,169,110,.6);
    letter-spacing: .06em;
    display: block;
}

.ht-verified {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(201,169,110,.1);
    border: 1px solid rgba(201,169,110,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ht-verified svg {
    width: 10px; height: 10px;
    stroke: #C9A96E;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
    .ht-grid { grid-template-columns: 1fr 1fr; }
    .ht-card:nth-child(2) { margin-top: 0; }
    .ht-card:nth-child(3) { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 560px) {
    .ht-grid { grid-template-columns: 1fr; }
    .ht-card:nth-child(3) { grid-column: auto; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ht-section *,
    .ht-section *::before,
    .ht-section *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .ht-card { opacity: 1; transform: none; }
    .ht-star { opacity: 1; transform: none; }
}