/* Home Page Styles */
/* Rohi Prathana Bhawan - Index.php CSS */

/* NOTE: Universal styles, header, and footer styles are in separate files */

/* Page Background - Home page only */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* Home page par header ke neeche thoda kam gap */
    padding-top: 60px;
}

/* Container */
.container {
    width: 100%;
    margin: 0;
    padding: 0 60px;
}

/* Hero Section - Built from Scratch */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #667eea 100%);
    color: white;
    padding: 20px 0;
    text-align: center;
    min-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

/* Home page ke liye special hero (header ke bilkul neeche, extra gap nahi) */
.home-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
    align-items: flex-start;
    min-height: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    margin-top: -0.6rem;
    background: linear-gradient(45deg, #ffffff, #ffd700, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out 0.2s both;
    line-height: 1.3;
    padding-top: 0.3rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
    font-weight: 600;
    animation: slideInUp 1s ease-out 0.4s both;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 1s ease-out 0.6s both;
}

.hero-text-slider {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    min-height: 5.5rem;
}

.hero-text-line {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0;
    color: #e5e7eb;
    position: absolute;
    left: 0;
    right: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-text-line.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-hindi-text {
    font-family: 'Noto Sans Devanagari', 'Baloo 2', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.8s both;
}

.hero-buttons .btn {
    min-width: 220px;
    width: 220px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@keyframes slideInUp {
    from {
opacity: 0;
transform: translateY(30px);
    }
    to {
opacity: 1;
transform: translateY(0);
    }
}

/* Custom Mobile Menu Button */
.custom-mobile-menu {
    display: none !important;
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #667eea, #764ba2);
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 
0 8px 20px rgba(102, 126, 234, 0.3),
inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.custom-nav-menu {
    display: none !important;
}

.custom-mobile-menu::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-mobile-menu:hover::before {
    opacity: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.custom-mobile-menu:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
0 15px 35px rgba(102, 126, 234, 0.4),
inset 0 1px 0 rgba(255,255,255,0.3);
}

.custom-mobile-menu:active {
    transform: translateY(-1px) scale(0.98);
}

/* Hamburger Lines */
.hamburger-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 18px;
    z-index: 2;
}

.hamburger-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hamburger-line:nth-child(1) {
    top: 0;
    transform-origin: center;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.hamburger-line:nth-child(3) {
    bottom: 0;
    transform-origin: center;
}

/* Active State Animation */
.custom-mobile-menu.active {
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    transform: rotate(180deg);
}

.custom-mobile-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.custom-mobile-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scale(0);
}

.custom-mobile-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Styles */
@media (max-width: 576px) {
    .custom-mobile-menu {
display: block !important;
    }

    .custom-nav-menu {
display: none;
    }

    .custom-nav-menu.active {
display: flex !important;
    }

    /* Custom Mobile Navigation Menu */
    .custom-nav-menu {
position: absolute;
top: 100%;
right: 0;
width: 320px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
border-radius: 25px;
padding: 2rem 0;
box-shadow: 
    0 25px 60px rgba(0,0,0,0.4),
    0 10px 30px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
transform: translateX(100%) translateY(-10px) scale(0.95);
transform-origin: top right;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
z-index: 9999;
display: flex;
flex-direction: column;
visibility: visible;
opacity: 0;
backdrop-filter: blur(25px);
border: 2px solid rgba(255,255,255,0.2);
overflow: hidden;
pointer-events: none;
    }

    .custom-nav-menu::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
opacity: 0.6;
z-index: 1;
    }

    .custom-nav-menu.active {
transform: translateX(0) translateY(0) scale(1);
opacity: 1;
pointer-events: auto;
box-shadow: 
    0 30px 70px rgba(0,0,0,0.5),
    0 15px 40px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
    }

    /* Custom Navigation Links */
    .custom-nav-link {
display: flex;
align-items: center;
padding: 1.2rem 2rem;
margin: 0.3rem 1.5rem;
color: white;
text-decoration: none;
border-radius: 15px;
background: rgba(255,255,255,0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.2);
transform: translateX(30px) translateY(10px);
opacity: 0;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
position: relative;
z-index: 2;
overflow: hidden;
font-weight: 500;
font-size: 1rem;
pointer-events: none;
    }

    .custom-nav-link::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.5s;
    }

    .custom-nav-link:hover::before {
left: 100%;
    }

    .custom-nav-link:hover {
background: rgba(255,255,255,0.2);
transform: translateX(10px) scale(1.02);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .custom-nav-link i {
margin-right: 0.8rem;
font-size: 1.1rem;
width: 20px;
text-align: center;
    }

    .custom-nav-menu.active .custom-nav-link {
transform: translateX(0) translateY(0);
opacity: 1;
pointer-events: auto;
    }

    /* Stagger animation for mobile links */
    .custom-nav-menu.active .custom-nav-link:nth-child(1) { transition-delay: 0.05s; }
    .custom-nav-menu.active .custom-nav-link:nth-child(2) { transition-delay: 0.1s; }
    .custom-nav-menu.active .custom-nav-link:nth-child(3) { transition-delay: 0.15s; }
    .custom-nav-menu.active .custom-nav-link:nth-child(4) { transition-delay: 0.2s; }
    .custom-nav-menu.active .custom-nav-link:nth-child(5) { transition-delay: 0.25s; }
    .custom-nav-menu.active .custom-nav-link:nth-child(6) { transition-delay: 0.3s; }

    .container {
padding: 0 20px;
    }

    .hero h1 {
font-size: 2.5rem;
    }

    .hero-container {
padding: 0 20px;
    }
}

/* Logout Alert */
.logout-alert {
    position: fixed;
    top: 100px;
    right: 20px;
    /* Green success gradient instead of blue/purple */
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 15px;
}

@keyframes slideInRight {
    from {
transform: translateX(100%);
opacity: 0;
    }
    to {
transform: translateX(0);
opacity: 1;
    }
}

/* Testimonial Card Styles */
.testimonial-card {
    flex: 0 0 320px;
    width: 320px;
    min-height: 360px;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.2), 0 8px 20px rgba(0,0,0,0.15);
    border-color: rgba(106, 17, 203, 0.2);
}

.testimonial-profile {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.testimonial-user-info {
    flex: 1;
}

.testimonial-user-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.testimonial-location {
    font-size: 0.85rem;
    color: #666;
}

.testimonial-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.98rem;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 140px;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-rating-label {
    font-size: 0.9rem;
    color: #666;
}

.testimonial-stars {
    color: #ffc107;
}

.testimonial-stars i {
    font-size: 1rem;
}


/* Leaderboard and Featured Quiz Sections */
/* Leaderboard Section */
.leaderboard-section {
    padding: 80px 0;
    background: #D3D3D3;
    position: relative;
    overflow: hidden;
}

.leaderboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="leaderboard-pattern" width="25" height="25" patternUnits="userSpaceOnUse"><polygon points="12.5,2 18,10 25,10 20,16 22,24 12.5,20 3,24 5,16 0,10 7,10" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23leaderboard-pattern)"/></svg>');
    opacity: 0.6;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3), 0 8px 25px rgba(0,0,0,0.2), 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1c4ca4;
    margin-bottom: 1rem;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.section-title p {
    color: #666666;
    font-size: 1.1rem;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.leaderboard-table {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3), 0 8px 25px rgba(0,0,0,0.2), 0 4px 15px rgba(0,0,0,0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    z-index: 2;
}

.leaderboard-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-heading {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leaderboard-scroll {
    max-height: 600px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.rank-icon {
    font-size: 1.2rem;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

.user-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
    color: #666;
}

/* Featured Section */
.featured-section {
    padding: 6rem 60px;
    background: #D3D3D3;
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="featured-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="5" cy="25" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="25" cy="5" r="1" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23featured-pattern)"/></svg>');
    opacity: 0.7;
}

.featured-section .container {
    padding: 0;
    background: transparent;
    max-width: 100%;
    margin: 0;
    position: relative;
    z-index: 2;
}

.featured-section .section-title {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3), 0 8px 25px rgba(0,0,0,0.2), 0 4px 15px rgba(0,0,0,0.15);
}

.testament-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.featured-section .section-title h2 {
    color: #1c4ca4;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.featured-section .section-title p {
    color: #666666;
    font-size: 1.1rem;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.testament-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 
        0 15px 50px rgba(0,0,0,0.3), 
        0 8px 25px rgba(0,0,0,0.2), 
        0 4px 15px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.testament-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.4), 
        0 15px 35px rgba(0,0,0,0.3), 
        0 8px 20px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.testament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px 20px 0 0;
}

.testament-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.testament-card:hover::after {
    left: 100%;
}

.testament-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.testament-card:hover .testament-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.testament-card h3 {
    color: #1e3a8a;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.testament-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.testament-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.2rem 0;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stat-item {
    text-align: center;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.2rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}
.testament-action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
}

.testament-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .testament-stats {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 1.5rem;
        width: 100%;
    }
    
    .testament-card {
        padding: 1.5rem 1rem;
        max-width: 100%;
        margin: 0 auto;
        width: 98%;
    }
    
    .quiz-section-container {
        padding: 1px !important;
        width: 100% !important;
    }
    
    .quiz-cards-wrapper {
        padding: 5px !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 15px !important;
    }
    
    .testament-stats-container {
        width: 100% !important;
        padding: 0 !important;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.5rem;
    }
}

/* ==========================================
   TESTIMONIALS SECTION - Clean & Organized
   ========================================== */

.testimonials-section {
    background: #D3D3D3;
    color: #333;
    padding: 80px 20px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.testimonials-container {
    max-width: 1400px;
    width: 100%;
    padding: 20px;
}

.testimonials-title {
    text-align: center;
}

.testimonials-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
}

.testimonials-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.testimonials-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
}

.testimonials-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #6a11cb;
}

.testimonials-btn:hover {
    background: #6a11cb;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(106, 17, 203, 0.4);
}

.testimonials-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonials-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-dot.active {
    background: #6a11cb;
    width: 30px;
    border-radius: 5px;
}

.testimonials-actions {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.share-testimonials-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-testimonials-btn:hover {
    background: linear-gradient(135deg, #5a0db8 0%, #1e5ae0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(106, 17, 203, 0.5);
}

/* ==========================================
   TESTIMONIAL POPUP - BRAND NEW MODERN DESIGN
   Scratch se banaya gaya - Fully Responsive
   ========================================== */

/* Popup Overlay */
.testimonial-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 99999;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 20px 20px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
}

/* Active State */
.testimonial-popup.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.95) 0%, rgba(37, 117, 252, 0.90) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    animation: overlayFadeIn 0.5s ease-out;
}

@keyframes overlayFadeIn {
    0% {
        opacity: 0;
        background: transparent;
    }
    100% {
        opacity: 1;
        background: linear-gradient(135deg, rgba(106, 17, 203, 0.95) 0%, rgba(37, 117, 252, 0.90) 100%);
    }
}

/* ==========================================
   POPUP CONTENT - NEW MODERN DESIGN
   ========================================== */
.popup-content {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 750px;
    width: 90%;
    max-height: fit-content;
    overflow: hidden;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 20px 50px rgba(106, 17, 203, 0.5),
        inset 0 0 0 2px rgba(255, 255, 255, 0.9);
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    animation: modalPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPop {
    0% {
        transform: scale(0.7) translateY(-50px) rotateX(20deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0) rotateX(0);
        opacity: 1;
    }
}

/* Popup Header Section */
.popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: headerShine 8s linear infinite;
}

@keyframes headerShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.popup-header h2 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.popup-header h2 i {
    color: #fbbf24;
    margin-right: 5px;
    font-size: 1rem;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Close Button - Modern Floating */
.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6b7280;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-close:hover {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    transform: rotate(180deg) scale(1.15);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
}

.popup-close:active {
    transform: rotate(180deg) scale(0.9);
}

/* Form Container */
.popup-form-wrapper {
    padding: 0.6rem 1.2rem 0.8rem;
    overflow-y: visible;
    max-height: none;
}

.popup-form-wrapper::-webkit-scrollbar {
    width: 6px;
}

.popup-form-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.popup-form-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.popup-form-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a0db8, #6a11cb);
}

/* Success Popup Specific */
.success-popup .popup-content {
    max-width: 340px;
    text-align: center;
}

.success-popup .popup-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 40px rgba(16, 185, 129, 0.4),
        inset 0 4px 8px rgba(255, 255, 255, 0.3);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 50px rgba(16, 185, 129, 0.6);
    }
}

.success-popup .popup-icon i {
    font-size: 2.5rem;
    color: white;
    animation: checkBounce 0.8s ease-out;
}

@keyframes checkBounce {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.success-popup .success-message {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.2rem;
    text-align: center;
}

.success-popup .popup-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.success-popup .popup-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.success-popup .popup-btn:hover::before {
    width: 400px;
    height: 400px;
}

.success-popup .popup-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
}

.success-popup .popup-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.popup-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.popup-icon i {
    font-size: 2rem;
    color: white;
}

.success-message {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0.5rem 0 1rem;
}

.popup-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.popup-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Form Styles - Modern & Clean */
.testimonial-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    align-items: start;
}

/* Make message and rating full width */
.testimonial-form .form-group:nth-child(3),
.testimonial-form .form-group:nth-child(4) {
    grid-column: 1 / -1;
}

/* Submit button full width */
.form-submit {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.2rem;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.78rem;
}

.form-label i {
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    color: #667eea;
    font-size: 0.8rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.5rem 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.78rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-input:hover,
.form-textarea:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.1);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #faf5ff;
    box-shadow: 0 0 0 5px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 55px;
    line-height: 1.3;
}

/* Rating Stars - Enhanced */
.rating-stars {
    display: flex;
    gap: 6px;
    font-size: 1.4rem;
    cursor: pointer;
    justify-content: center;
    padding: 5px 0;
    background: linear-gradient(to bottom, #fef3c7 0%, #fff 100%);
    border-radius: 8px;
    margin: 2px 0;
}

.rating-stars i {
    color: #e5e7eb;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
    cursor: pointer;
}

.rating-stars i:hover {
    color: #fbbf24;
    transform: scale(1.35) rotate(-15deg);
    filter: drop-shadow(0 6px 12px rgba(251, 191, 36, 0.5));
}

.rating-stars i.active {
    color: #f59e0b;
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.6));
    animation: starBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes starBounce {
    0% { 
        transform: scale(0.5) rotate(0deg); 
        opacity: 0;
    }
    50% { 
        transform: scale(1.4) rotate(20deg); 
    }
    100% { 
        transform: scale(1.2) rotate(0deg); 
        opacity: 1;
    }
}

.rating-hint {
    color: #6b7280;
    font-size: 0.72rem;
    text-align: center;
    margin-top: 0.15rem;
    font-style: italic;
}

/* Submit Button - Premium Design */
.form-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 0.3rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.8s ease, height 0.8s ease;
}

.form-submit:hover::before {
    width: 500px;
    height: 500px;
}

.form-submit:hover {
    background: linear-gradient(135deg, #5a0db8 0%, #6a11cb 100%);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.form-submit:active {
    transform: translateY(-2px) scale(0.98);
}

.form-submit i {
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 15px;
    }
    
    .testimonials-slider-wrapper {
        padding: 20px 15px;
    }
    
    .testimonials-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .share-testimonials-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .testimonial-card {
        flex: 0 0 280px;
        width: 280px;
        min-height: 300px;
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        max-height: 120px;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    /* Popup Mobile Responsive */
    .popup-content {
        max-width: 95%;
        width: 95%;
        border-radius: 18px;
        max-height: fit-content;
    }
    
    /* Revert to vertical layout on mobile */
    .testimonial-form {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .testimonial-form .form-group:nth-child(3),
    .testimonial-form .form-group:nth-child(4) {
        grid-column: auto;
    }
    
    .form-submit {
        grid-column: auto;
    }
    
    .popup-header {
        padding: 0.6rem 0.9rem;
    }
    
    .popup-header h2 {
        font-size: 1rem;
    }
    
    .popup-header h2 i {
        font-size: 1rem;
        margin-right: 5px;
    }
    
    .popup-close {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
        top: 6px;
        right: 6px;
    }
    
    .popup-form-wrapper {
        padding: 0.7rem 1rem 0.8rem;
        max-height: none;
    }
    
    .testimonial-form {
        gap: 0.4rem;
    }
    
    .form-label {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .form-textarea {
        min-height: 50px;
    }
    
    .rating-stars {
        font-size: 1.3rem;
        gap: 5px;
        padding: 5px 0;
    }
    
    .form-submit {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        border-radius: 6px;
        margin-top: 0.3rem;
        justify-self: center;
        align-self: center;
    }
    
    .success-popup .popup-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }
    
    .success-popup .popup-icon i {
        font-size: 1.8rem;
    }
    
    .success-popup .success-message {
        font-size: 0.9rem;
        margin: 0 0 1rem;
    }
    
    .success-popup .popup-btn {
        padding: 0.75rem 1.6rem;
        font-size: 0.85rem;
    }
}
