/* ===========================
   TESTIMONIALS HERO REDESIGN
   Modern Professional Layout
   =========================== */

/* Hero Section Container */
.testimonials-hero-redesign {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.88) 0%, rgba(0, 61, 122, 0.82) 50%, rgba(0, 102, 204, 0.85) 100%),
                url('../images/pool%203.jpg') center center / cover no-repeat;
    background-attachment: fixed;
}

/* Animated Background */
.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 31, 63, 0.4) 0%, 
        rgba(0, 212, 255, 0.15) 25%, 
        rgba(0, 153, 255, 0.2) 50%, 
        rgba(0, 102, 204, 0.3) 75%, 
        rgba(0, 61, 122, 0.4) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    mix-blend-mode: overlay;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Grid Overlay for Depth */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    opacity: 0.6;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.08);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.3),
                inset 0 0 40px rgba(0, 212, 255, 0.1);
    -webkit-backdrop-filter: blur(50px);
    backdrop-filter: blur(50px);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
    animation: float 18s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation: float 15s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 15%;
    animation: float 22s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 20%;
    animation-delay: 3s;
}

.particle:nth-child(3) {
    top: 40%;
    right: 15%;
    animation-delay: 6s;
}

.particle:nth-child(4) {
    bottom: 30%;
    right: 25%;
    animation-delay: 9s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 50%;
    animation-delay: 12s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(50px, -50px) scale(1.5);
        opacity: 0.8;
    }
}

/* Hero Wrapper */
.hero-redesign-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Left Content */
.hero-main-content {
    color: #0a1929;
}

/* Badge Group */
.hero-badge-group {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-badge i {
    color: #00d4ff;
    font-size: 14px;
}

.hero-title-redesign {
    font-size: 62px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #0a1929;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.highlight-text {
    display: block;
    background: linear-gradient(135deg, #00aaff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00aaff 0%, #00ff88 100%);
    border-radius: 2px;
}

.hero-subtitle-redesign {
    font-size: 18px;
    line-height: 1.7;
    color: #1a2332;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    max-width: 540px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Inline Stats */
.hero-stats-inline {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    border-radius: 12px;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 32px;
    font-weight: 900;
    color: #0a1929;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.stat-label {
    font-size: 12px;
    color: #2d3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-divider {
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.5), transparent);
    align-self: stretch;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 24px;
    margin-top: 30px;
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #2d3748;
    font-weight: 500;
}

.trust-item i {
    color: #00ff88;
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0, 255, 136, 0.4));
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    border: 2px solid transparent;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 170, 255, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Featured Card */
.hero-featured-card {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s backwards;
}

.featured-card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease;
}

.featured-card-inner:hover {
    transform: translateY(-8px);
}

.featured-card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00aaff, #0066cc, #00ff88);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.featured-card-inner:hover .featured-card-glow {
    opacity: 1;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #333;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.card-badge i {
    font-size: 14px;
}

/* Featured Quote */
.featured-quote {
    position: relative;
    padding: 20px 0;
    margin-bottom: 24px;
}

.quote-icon-left,
.quote-icon-right {
    position: absolute;
    font-size: 40px;
    color: rgba(0, 102, 204, 0.15);
}

.quote-icon-left {
    top: -10px;
    left: -10px;
}

.quote-icon-right {
    bottom: -10px;
    right: -10px;
}

.featured-quote p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    font-style: italic;
    margin: 0;
    padding: 0 20px;
}

/* Featured Rating */
.featured-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
}

.rating-stars-featured {
    display: flex;
    gap: 4px;
}

.rating-stars-featured i {
    color: #ffd700;
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.rating-text-featured {
    font-size: 15px;
    font-weight: 700;
    color: #0066cc;
}

/* Featured Author */
.featured-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc 0%, #00aaff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 4px 0;
}

.author-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.verified-checkmark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00cc66 0%, #009944 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

/* Card Decoration */
.card-decoration-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.card-decoration-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.featured-card-inner:hover .card-decoration-dots span {
    background: #0066cc;
}

.card-decoration-dots span:nth-child(2) {
    animation: dot-bounce 1.5s ease-in-out infinite;
}

@keyframes dot-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeIn 1s ease-out 1.5s backwards;
}

.scroll-mouse {
    width: 28px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-animation 2s ease-in-out infinite;
}

@keyframes scroll-animation {
    0%, 100% {
        top: 8px;
        opacity: 1;
    }
    50% {
        top: 20px;
        opacity: 0.5;
    }
}

.scroll-indicator span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-redesign-wrapper {
        gap: 60px;
    }
    
    .hero-title-redesign {
        font-size: 52px;
    }
}

@media (max-width: 992px) {
    .testimonials-hero-redesign {
        min-height: 70vh;
        padding: 120px 0 80px;
    }
    
    .hero-redesign-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-title-redesign {
        font-size: 48px;
    }
    
    .hero-stats-inline {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .testimonials-hero-redesign {
        padding: 100px 0 60px;
    }
    
    .hero-title-redesign {
        font-size: 38px;
    }
    
    .hero-subtitle-redesign {
        font-size: 16px;
    }
    
    .hero-stats-inline {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item {
        text-align: left;
    }
    
    .stat-stars {
        justify-content: flex-start;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .featured-card-inner {
        padding: 32px 24px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title-redesign {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 16px 28px;
        font-size: 15px;
    }
    
    .featured-quote p {
        font-size: 15px;
        padding: 0 10px;
    }
}
