.review {
    background: #f8fafc;
    min-height: 100vh;
    padding: 30px 20px 10px;
    line-height: 1.6;
}

.review-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(218, 213, 213, 0.521);
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 0;
    overflow: hidden;
    position: relative;
}

.profile-section {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #f8fafc;
}

.profile-image {
    width: 100%;
    height: 700px;
    object-fit: cover;
    object-position: center top;
    transition: none;
    will-change: unset;
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
    transform: scale(0.95);
}

/* .profile-section:hover .profile-image {
    transform: none;
    filter: brightness(0.95) contrast(1.05) saturate(1.1);
} */

.profile-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    /* backdrop-filter: blur(10px); Removed for scroll performance */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-title {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    position: relative;
    padding-left: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(29, 78, 216, 0.8));
    padding: 6px 12px 6px 32px;
    border-radius: 20px;
    display: inline-block;
    /* backdrop-filter: blur(10px); Removed for scroll performance */
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
}

.profile-title::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: white;
}

.review-section {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.review-header {
    font-size: 42px;
    font-weight: 800;
    color: #052d4a;
    margin-bottom: 40px;
    letter-spacing: -1px;
    line-height: 1.1;
    position: relative;
}

.review-header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #052d4a);
    border-radius: 2px;
}

.review-content {
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 56px;
    box-sizing: border-box;
}

.review-item {
    opacity: 1;
    transform: none;
    pointer-events: none;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    will-change: unset;
    position: relative;
    background: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-item.active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: block;
    position: relative;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
    margin-top: 0;
    justify-content: flex-start;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #b1124a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    flex-shrink: 0;
}

.google-g-badge {
    position: absolute;
    bottom: -4px;
    left: 22px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.reviewer-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reviewer-verified {
    color: #052d4a;
    font-size: 16px;
    margin-left: 2px;
}

.review-date {
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 2px;
}

.stars {
    display: flex;
    gap: 2px;
    margin-bottom: 0;
    margin-top: 2px;
}

.stars .star {
    width: 20px;
    height: 20px;
    background: none;
    display: inline-block;
}

.stars .star svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: #fbbc05;
}

.review-text {
    font-size: 20px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.review-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 48px;
    color: #3b82f6;
    font-weight: 600;
    line-height: 1;
}

.review-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-text.expanded {
    display: block;
    white-space: pre-line;
}

.expand-toggle {
    display: inline;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #2563eb;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 0;
    margin-bottom: 10px;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transition: none;
}

.expand-toggle:hover,
.expand-toggle:focus {
    text-decoration: underline;
    color: #1d4ed8;
    background: none;
    border: none;
    box-shadow: none;
}

.expand-icon {
    margin-left: 2px;
    width: 12px;
    height: 12px;
    vertical-align: middle;
    transition: none;
}

.expand-toggle.expanded .expand-icon {
    transform: rotate(180deg);
}

.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
}

.google-info {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 36px;
    background: #fff;
    border-radius: 28px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(66, 133, 244, 0.10);
    transition: box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    min-width: 320px;
}

.google-info:hover {
    box-shadow: 0 8px 32px rgba(66, 133, 244, 0.18);
    border-color: #4285f4;
    background: #f3f8fd;
}

.google-logo-full {
    height: 38px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.google-review-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.google-stars-row {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 2px;
    margin-left: 15px;
}

.google-star {
    width: 22px;
    height: 22px;
    display: inline-block;
    background: none;
}

.rating-info {
    font-size: 18px;
    color: #052d4a;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.read-reviews-label {
    font-size: 15px;
    color: #fbbc05;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    margin-left: 1px;
}

.navigation {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 25px;
    /* backdrop-filter: blur(10px); Removed for scroll performance */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.nav-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.nav-dot.active {
    background: #052d4a;
    transform: scale(1.3);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.floating-elements {
    display: none;
}

.floating-element {
    animation: none;
    will-change: unset;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 80%;
    animation-delay: -2s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 85%;
    animation-delay: -4s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 90%;
    animation-delay: -1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.review-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.review-carousel-arrow:hover {
    border-color: #4285f4;
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.12);
}

.review-carousel-arrow.left {
    left: 0;
}

.review-carousel-arrow.right {
    right: 0;
}

@media (max-width: 1024px) {
    .review-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }

    .profile-section {
        height: 400px;
    }

    .profile-image {
        height: 500px;
        object-position: center 20%;
        transform: scale(0.9);
    }

    .profile-section:hover .profile-image {
        transform: scale(0.95);
    }

    .review-section {
        padding: 40px 30px;
    }

    .review-header {
        font-size: 36px;
        text-align: center;
    }

    .review-text {
        font-size: 18px;
        padding-left: 25px;
    }

    .review-footer {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .review-carousel-arrow {
        width: 32px;
        height: 32px;
        top: 8px;
    }

    .review-content {
        padding: 0 36px;
    }
}

@media (max-width: 640px) {
    .review-container {
        margin: 20px 10px;
    }

    .profile-section {
        height: 480px;
    }

    .profile-image {
        height: 520px;
        object-position: center 35%;
        transform: scale(1);
    }

    .profile-section:hover .profile-image {
        transform: scale(1.02);
    }

    .profile-overlay {
        bottom: 25px;
        left: 25px;
        right: 25px;
    }

    .profile-name {
        font-size: 22px;
        padding: 6px 12px;
    }

    .profile-title {
        font-size: 11px;
        padding: 4px 8px 4px 24px;
        margin-top: 6px;
    }

    .profile-title::before {
        width: 8px;
        left: 8px;
    }

    .review-section {
        padding: 25px 18px;
    }

    .review-header {
        font-size: 24px;
        margin-bottom: 30px;
        text-align: left;
    }

    .review-text {
        font-size: 15px;
        padding-left: 18px;
        line-height: 1.7;
    }

    .review-text::before {
        font-size: 30px;
        top: -8px;
    }

    .expand-toggle {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 15px;
    }

    .review-meta {
        margin-bottom: 15px;
    }

    .reviewer-name {
        font-size: 14px;
    }

    .star {
        width: 16px;
        height: 16px;
    }

    .google-info {
        padding: 10px 8px;
        border-radius: 16px;
        min-width: 0;
        gap: 10px;
    }

    .google-logo-full {
        height: 24px;
    }

    .google-star {
        width: 14px;
        height: 14px;
    }

    .rating-info {
        font-size: 13px;
    }

    .read-reviews-label {
        font-size: 11px;
    }

    .navigation {
        display: none;
    }

    .nav-dot {
        width: 10px;
        height: 10px;
    }

    .review-carousel-arrow {
        width: 28px;
        height: 28px;
        top: 50% !important;
        transform: translateY(-50%);
    }

    .review-carousel-arrow.left {
        left: -10px;
    }

    .review-carousel-arrow.right {
        right: -10px;
    }

    .review-content {
        min-height: 200px;
        padding: 0 18px;
    }
}

@media (max-width: 900px) and (orientation: landscape) {

    .profile-section,
    .profile-image {
        height: 60vh !important;
        max-height: 100vw;
        object-fit: cover;
    }
}