/* --- CSS Variables & Global Styles --- */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #3b30a9;
    --background-color: #0b1220;
    --card-background: #1f2937;
    --text-color: #e5e7eb;
    --muted-text: #9ca3af;
    --border-color: #374151;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --font-sans: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* General Reset and Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* --- Canvas & Animations --- */
#particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- HEADER (Consistent) --- */
header {
    background-color: rgba(31, 41, 55, 0.9); backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo img { width: 40px; height: 40px; }
.site-name { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); }
.tagline { font-size: 0.75rem; color: var(--muted-text); }
nav a {
    text-decoration: none; color: var(--text-color); font-weight: 500;
    padding: 10px 15px; border-radius: 8px; transition: background-color 0.3s, color 0.3s;
}
nav a:hover { background-color: var(--border-color); color: var(--text-color); }
nav a.active { background-color: var(--primary-color); color: #fff; }

/* --- Main Content --- */
main { position: relative; z-index: 1; }

/* --- Reviews Hero Section --- */
.reviews-hero {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: auto;
}
.reviews-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 15px;
}
.reviews-hero .subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
}

/* --- Reviews Grid --- */
.reviews-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}
.review-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}
.rating {
    font-size: 1.2rem;
    color: #f59e0b; /* Amber/Gold color for stars */
}
.review-text {
    font-style: italic;
    color: var(--text-color);
    flex-grow: 1;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}
.review-author h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}
.review-author span {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* --- CTA Section --- */
.cta-section {
    text-align: center;
    background-color: var(--card-background);
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.cta-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.cta-section p {
    color: var(--muted-text);
    margin-bottom: 25px;
}
.cta-primary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: #fff;
}
.cta-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* --- FOOTER (Consistent) --- */
footer { background-color: var(--card-background); padding: 60px 20px; border-top: 1px solid var(--border-color); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-about p { color: var(--muted-text); max-width: 400px; margin-top: 15px; }
.social-links { margin-top: 20px; display: flex; gap: 15px; }
.social-links svg { width: 24px; height: 24px; color: var(--muted-text); transition: color 0.3s, transform 0.3s; }
.social-links a:hover svg { color: var(--primary-color); transform: translateY(-3px); }
.footer-links h3, .footer-contact h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--text-color); }
.footer-links ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a { text-decoration: none; color: var(--muted-text); transition: color 0.3s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary-color); }
.footer-contact p { color: var(--muted-text); margin-bottom: 10px; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--muted-text); }

@media (max-width: 768px) {
    header, .footer-grid { flex-direction: column; text-align: center; }
    nav { margin-top: 15px; justify-content: center; flex-wrap: wrap; }
    .reviews-hero h1 { font-size: 2.5rem; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-about, .footer-links, .footer-contact { align-items: center; }
}