/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #ffffff;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

body.is-scrolled {
    background-color: #faf8f0;
}

@media (max-width: 768px) {
    .testimonials-header {
        margin-top: 3rem;
        margin-bottom: 30px !important;
    }

    .brand-logo__image {
        width: 45px !important;
        height: 45px !important;
    }

    .testimonials-header__subtitle-container{
        gap: 1rem !important;
    }
}

.brand-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

.brand-logo__image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.brand-logo__image:hover {
    transform: scale(1.1);
}

.montserrat-text {
    font-family: 'Montserrat', sans-serif;
} 

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Testimonials Header */
.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-header__title {
    color: #333333;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.testimonials-header__subtitle-container {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
    
.testimonials-header__subtitle {
    color: #536471;
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
}

.customer-profiles {
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem; 
}

@media (max-width: 768px) {
    .customer-profiles {
        flex-direction: column !important;
        gap: 1.5rem;
    }

    .customer-profiles__text {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

.customer-profiles__photos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}


.customer-profiles__photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-left: -0.75rem;
    transition: transform 0.2s;
}

.customer-profiles__photo:first-child {
    margin-left: 0;
}

.customer-profiles__photo:hover {
    transform: translateY(-2px);
    z-index: 1;
}

.customer-profiles__text {
    margin: 0;
    color: #536471;
    font-size: 1.125rem;
    padding: 0.2rem 0.5rem;
}

.customer-profiles__text-highlight {
    background-color: #ffff7678;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    width: fit-content;
    margin: 0;
}

/* Testimonials Grid */
.testimonials-grid {
    columns: auto 300px;
    column-gap: 30px;
}

/* Add this to handle the individual cards */
.testimonials-grid > * {
    break-inside: avoid;
    margin-bottom: 30px;
    transition: transform 0.2s ease-out;
    transform-origin: center;
    will-change: transform;
}

.testimonials-grid > *:hover {
    transform: scale(1.02) rotate(-1deg);
}

/* Remove the last card's bottom margin */
.testimonials-grid > *:last-child {
    margin-bottom: 0;
}

/* Optional: Add a subtle shadow enhancement on hover */
.twitter-card {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.twitter-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Floating elements animations */
.balloon {
    position: fixed;
    bottom: -100px;
    width: 40px;
    height: 50px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: float linear forwards;
    transform-origin: bottom center;
    animation-timing-function: ease-in-out;
}

.balloon-string {
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 1px;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
}

.heart {
    position: fixed;
    bottom: -100px;
    width: 30px;
    height: 30px;
    clip-path: path('M15,8 C15,4 10,0 5,0 C0,0 0,4 0,4 C0,8 5,12 15,20 C25,12 30,8 30,4 C30,4 30,0 25,0 C20,0 15,4 15,8 Z');
    animation: float linear forwards;
    animation-timing-function: ease-in-out;
}

@keyframes float {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-120vh);
    }
}

.twitter-logo-bg svg {
    width: 20px;
    height: 20px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    background-color: #fcd00b;
    color: ;
    font-size: 18px;
}

.action-btn:hover {
    background-color: #ffe066;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: #9ca3af;
    transition: fill 0.2s ease;
}

.social-link:hover svg {
    fill: #000000;
}

.social-links-container{
    margin-top: 2rem;
}

.social-links-header {
    text-align: center;
    margin-bottom: 1rem;
}

.social-links-header .montserrat-text {
    font-weight: 600;  /* semi-bold */
    font-size: 1.2rem;
    color: #374151;  /* dark gray */
}

.twitter-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.12);
    border: 1px solid #cfd9de;
    transition: background-color 0.2s ease;
    max-height: 80vh;
    height: fit-content;
    min-height: min-content;
    overflow-y: auto;
}

.twitter-card:hover {
    background-color: #f7f7f7;
    border-color: #bbc7cd;
    box-shadow: 0 8px 16px -6px rgba(0,0,0,0.16);
}

.twitter-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.twitter-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
}

.twitter-card__info {
    flex-grow: 1;
}

.twitter-card__name {
    color: #0f1419;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 2px;
}

.twitter-card__username {
    color: #536471;
    font-size: 14px;
}

.twitter-card__x-link {
    color: #0f1419;
    margin-left: auto;
}

.twitter-card__content {
    color: #0f1419;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
    height: fit-content;
}

.twitter-card__content.has-photos {
    background-color: #ffff7678;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 4px 16px;
    border-radius: 4px;
}

.twitter-card__content img {
    width: 15px;
}

.twitter-card__timestamp {
    color: #536471;
    font-size: 14px;
    margin-top: 4px;
}

.twitter-card__actions {
    display: flex;
    gap: 20px;
    color: #0f1419;
    font-size: 14px;
}

.twitter-card__actions span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.twitter-card__photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin-bottom: 12px;
    width: 100%;
    aspect-ratio: 16/9;
    margin-top: 12px;
    height: fit-content;
}

/* Twitter uses different layouts based on number of images */
.twitter-card__photo-grid:has(.twitter-card__photo-wrapper:nth-child(2)) {
    grid-template-columns: repeat(2, 1fr);
}

.twitter-card__photo-grid:has(.twitter-card__photo-wrapper:nth-child(3)) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.twitter-card__photo-grid:has(.twitter-card__photo-wrapper:nth-child(3)) .twitter-card__photo-wrapper:first-child {
    grid-row: span 2;
}

.twitter-card__photo-grid:has(.twitter-card__photo-wrapper:nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    aspect-ratio: auto;
}

.twitter-card__photo-grid:empty {
    display: none;
    margin: 0;
    height: 0 !important;
    min-height: 0;
    max-height: 0;
    aspect-ratio: unset;
    padding: 0;
    border: 0;
    overflow: hidden;
}

.twitter-card__content:empty {
    display: none;
    margin-bottom: 0;
}

.twitter-card__content:empty + .twitter-card__photo-grid {
    margin-top: 0;
}

.twitter-card__photo-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

.twitter-card__photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.twitter-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.twitter-card__action-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.twitter-card__action-btn:hover {
    color: #1d9bf0;
}

.twitter-card__profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.twitter-card__profile-link:hover .twitter-card__name {
    text-decoration: underline;
}

.twitter-card__action-btn.like-button {
    color: #0f1419;
}

.twitter-card__action-btn.like-button svg {
    color: #536471;
}

.twitter-card__action-btn.like-button:hover {
    color: #f91880;
}

.twitter-card__action-btn.like-button:hover svg {
    color: #f91880;
}

.twitter-card__action-btn.comment-button {
    color: #0f1419;
}

.twitter-card__action-btn.comment-button svg {
    color: #536471;
}

.twitter-card__action-btn.comment-button:hover {
    color: #1d9bf0;
}

.twitter-card__action-btn.comment-button:hover svg {
    color: #1d9bf0;
}

.twitter-card__verified-badge {
    vertical-align: middle;
    margin-left: 4px;
} 