/* Reviews Page Styles */
/*
 * Colour palette
 *
 * Bring the client reviews page in line with the refreshed look of the
 * portfolio site.  A set of custom properties define the core colours
 * used throughout this stylesheet.  Should the page be embedded into a
 * larger site with its own variables these definitions will still
 * provide sensible defaults.
 */

/*
 * Base page styling
 */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}
/* ================== */
/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* horizontal gradient rather than a solid colour */
    background: linear-gradient(90deg, var(--dark), var(--primary));
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-btn {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-btn {
    /* vibrant gradient call‑to‑action */
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #ffffff;
    font-weight: 600;
    border: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.contact-btn:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    transform: translateY(-3px) scale(1.03);
}

/* Base Section Styling */
.reviews-section {
    padding: 8.5rem 1.5rem 5rem;
    /* light page background consistent with the primary site */
    background: var(--light);
    position: relative;
    scroll-margin-top: 6rem; /* For anchor positioning */
    min-height: 100vh;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin: -0.5rem auto 3.5rem;
    font-size: 1.4rem;
    max-width: 800px;
    padding: 0 1rem;
}

/* Reviews Grid Layout */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Review Card Styling */
.review-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    /* softer shadow and slight gradient overlay for depth */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

/* Staggered Animation Delays */
.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }
.review-card:nth-child(7) { animation-delay: 0.7s; }
.review-card:nth-child(8) { animation-delay: 0.8s; }
.review-card:nth-child(9) { animation-delay: 0.9s; }
.review-card:nth-child(10) { animation-delay: 1.0s; }
.review-card:nth-child(11) { animation-delay: 1.1s; }
.review-card:nth-child(12) { animation-delay: 1.2s; }
.review-card:nth-child(13) { animation-delay: 1.3s; }
.review-card:nth-child(14) { animation-delay: 1.4s; }
.review-card:nth-child(15) { animation-delay: 1.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(108, 99, 255, 0.1);
}

.review-card:hover .review-img {
    transform: scale(1.03);
}

/* Platform Badges */
.platform-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 4rem auto 0;
    flex-wrap: wrap;
    max-width: 1200px;
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: #1A1A1A;
    border-radius: 50px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.platform-badge:hover {
    background: rgba(108, 99, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.1);
}

.badge-img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.platform-badge:hover .badge-img {
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox .close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox .close:hover {
    color: var(--accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-section {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .platform-badges {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2.5rem;
    }
    
    .platform-badge {
        padding: 0.8rem 1.5rem;
    }
    
    .badge-img {
        height: 35px;
    }
}

/* Ensure consistent section spacing globally */
section {
    scroll-margin-top: 6rem;
    padding-top: 8.5rem;
}