:root {
    /* Enhanced color palette - richer and more sophisticated */
    --splash-purple: #8541d4;      /* Deeper, richer purple */
    --splash-blue: #1976d2;        /* Deeper royal blue */
    --splash-green: #26a69a;       /* Teal-leaning green - more elegant */
    --splash-orange: #ff6d00;      /* Less yellow, more burnt orange */
    --splash-pink: #d81b60;        /* Deeper magenta-pink */
    
    /* Secondary colors for gradients and accents */
    --deep-indigo: #303f9f;
    --rich-teal: #00796b;
    --royal-purple: #4527a0;
    --deep-magenta: #ad1457;
    --midnight-blue: #0d2240;
    
    /* Background colors */
    --bg-dark: #0c0b13;
    --bg-card: rgba(22, 21, 29, 0.7);
    --bg-elevated: rgba(28, 27, 37, 0.85);
}

/* Enhanced Background Elements */
body {
    background-color: var(--bg-dark);
    color: #f5f5f5;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 35%, rgba(69, 39, 160, 0.12) 0%, transparent 45%),
                 radial-gradient(circle at 85% 20%, rgba(0, 121, 107, 0.08) 0%, transparent 55%),
                 radial-gradient(circle at 50% 70%, rgba(173, 20, 87, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.navbar {
    background-color: rgba(12, 11, 19, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-light .navbar-toggler-icon {
    filter: invert(1);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.8) 0%, rgba(10, 10, 20, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 100px 0;
}

/* Enhanced Splash Elements */
.splash {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.65;
    z-index: 1;
    animation: pulse 8s infinite alternate;
    mix-blend-mode: soft-light;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.splash-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--splash-purple) 0%, var(--royal-purple) 70%, transparent 100%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.splash-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--splash-blue) 0%, var(--midnight-blue) 70%, transparent 100%);
    bottom: 10%;
    right: 5%;
    animation-delay: 2s;
}

.splash-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--splash-green) 0%, var(--rich-teal) 70%, transparent 100%);
    top: 30%;
    right: 20%;
    animation-delay: 4s;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    color: #fff;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--splash-purple), var(--splash-blue));
}

/* Creative heading with colored "Creativity" */
.hero-heading {
    color: #fff;
    position: relative;
    display: inline-block;
}

/* Colored letter animation */
.colored-letter {
    display: inline-block;
    transition: color 0.3s ease;
}

.color-1 { color: var(--splash-purple); }
.color-2 { color: var(--splash-blue); }
.color-3 { color: var(--splash-green); }
.color-4 { color: var(--splash-orange); }
.color-5 { color: var(--splash-pink); }

/* Click animation styles */
.click-text {
    display: inline-block;
    position: relative;
}

.click-text.pulse {
    animation: click-pulse 0.5s ease-in-out;
}

@keyframes click-pulse {
    0% { transform: scale(1); }
    50% { 
        transform: scale(1.2); 
        text-shadow: 0 0 15px rgba(255, 109, 0, 0.8);
        color: var(--splash-orange);
    }
    100% { transform: scale(1); }
}

.feature-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(28, 27, 37, 0.7);
}

.feature-icon {
    background: linear-gradient(135deg, var(--splash-purple), var(--deep-magenta));
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(133, 65, 212, 0.3);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, var(--splash-blue), var(--deep-indigo));
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.3);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, var(--splash-orange), var(--deep-magenta));
    box-shadow: 0 8px 20px rgba(255, 109, 0, 0.3);
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, var(--splash-green), var(--rich-teal));
    box-shadow: 0 8px 20px rgba(38, 166, 154, 0.3);
}

.collection-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-body {
    background-color: var(--bg-elevated);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
    color: #fff;
}

.card-text {
    color: rgba(255, 255, 255, 0.7);
}

/* Update Testimonials Section to blend with the rest of the page */
.testimonials-section {
    position: relative;
    padding: 4rem 0;
    /* Remove distinct dark background */
    background: transparent; 
    overflow: hidden;
    /* Remove borders */
    border-top: none;
    border-bottom: none;
    /* Reduce excessive margins */
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Remove the star background effect to match main page */
.testimonials-section::before {
    display: none;
}

/* Keep the subtle nebula effect but make it match the main page */
.testimonials-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(69, 39, 160, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 70%, rgba(173, 20, 87, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Update container to match page styling but keep its glow effect */
.testimonials-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(133, 65, 212, 0.25),
                0 0 70px rgba(216, 27, 96, 0.2);
    border-radius: 20px;
    padding: 0.75rem;
    /* Use more transparent background to blend better */
    background: rgba(22, 21, 29, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    z-index: 2;
}

/* Match testimonial card style to feature cards for consistency */
.testimonial {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem 2rem; /* Reduced padding to control height */
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    height: auto; /* Let content determine height but with constraints */
    min-height: 200px; /* Minimum height to avoid jumps */
    max-height: 300px; /* Maximum height to prevent excessive tall containers */
    will-change: opacity, transform;
}

/* Keep the hover effect consistent with feature cards */
.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.testimonial.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    animation: testimonial-glow 3s infinite alternate;
}

.testimonial:hover {
    /* Remove 3D perspective effect on hover */
    transform: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7); /* Even darker shadow on hover */
}

/* Refined night sky gradient */
.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
                rgba(7, 6, 15, 0.99) 0%, 
                rgba(6, 6, 13, 0.99) 100%); /* Darker gradient */
    z-index: -1;
}

/* Elegant subtle rim lighting */
.testimonial::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
                rgba(133, 65, 212, 0.02) 0%, 
                rgba(25, 118, 210, 0.01) 50%,
                transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* Remove testimonial avatar and related styles */
.testimonial-avatar {
    display: none;
}

.testimonial-author {
    font-weight: 600;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.testimonial-author {
    font-weight: 700;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.6px;
    position: relative;
    padding-top: 15px;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(133, 65, 212, 0.7), transparent);
}

.testimonial-author span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: normal;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.testimonial-author span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: normal;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

.testimonial-content {
    position: relative;
    z-index: 5;
    position: relative;
    z-index: 2; /* Higher z-index than content */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.testimonial-content p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.7;
    font-size: 1.2rem; /* Slightly larger text */
    color: rgba(255, 255, 255, 0.9); /* Brighter text */
    letter-spacing: 0.3px;
    font-style: italic;
    margin-bottom: 1rem; /* Reduced bottom margin */
    position: relative;
    max-width: 90%; /* Ensure text doesn't get too wide */
    margin: 0 auto 1.5rem; /* Center text and reduce bottom space */
}

/* Add beautiful quote marks */
.testimonial-content p::before {
    content: '"';
    position: absolute;
    top: -50px;
    left: -5px;
    font-size: 8rem;
    opacity: 0.08;
    font-family: Georgia, serif;
    color: var(--splash-purple);
    text-shadow: 0 0 15px rgba(133, 65, 212, 0.3);
    z-index: 2;
    opacity: 0.1; /* Lower opacity for better visibility */
    z-index: 1; /* Between stars and content */
}

.testimonial-content p::after {
    content: '"';
    bottom: -100px;
    right: -5px;
    font-size: 8rem;
    opacity: 0.08;
    font-family: Georgia, serif;
    color: var(--splash-purple);
    text-shadow: 0 0 15px rgba(133, 65, 212, 0.3);
    opacity: 0.1; /* Lower opacity for better visibility */
    z-index: 1; /* Between stars and content */
}

/* Remove testimonial dots CSS */
.testimonial-dots {
    display: none;
}

.testimonial-dot {
    display: none;
}

/* Testimonial navigation arrows - adjust position */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.testimonial-nav:hover {
    background-color: rgba(133, 65, 212, 0.6);
    opacity: 1;
}

.testimonial-prev {
    left: -50px; /* Move further out */
}

.testimonial-next {
    right: -50px; /* Move further out */
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1/1;
    height: 180px;
    width: 100%;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

footer {
    background-color: rgba(18, 18, 18, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Enhanced Footer Styling with elegant midnight black */
footer {
    position: relative;
    background: #050508 !important; /* True midnight black */
    border-top: 1px solid rgba(133, 65, 212, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 4rem;
    padding-bottom: 2rem;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

/* Subtle star-like accents in footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, rgba(133, 65, 212, 0.4) 100%, transparent),
        radial-gradient(1px 1px at 30% 50%, rgba(25, 118, 210, 0.3) 100%, transparent),
        radial-gradient(1px 1px at 60% 30%, rgba(216, 27, 96, 0.3) 100%, transparent),
        radial-gradient(1px 1px at 80% 70%, rgba(133, 65, 212, 0.4) 100%, transparent);
    background-repeat: repeat;
    background-size: 350px 350px, 300px 300px, 400px 400px, 350px 350px;
    opacity: 0.07;
    pointer-events: none;
    z-index: -1;
}

/* Remove the previous gradient background effect */
footer::after {
    display: none;
}

/* Enhanced heading style */
footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(133, 65, 212, 0.4);
}

/* Elegant underline for footer headings */
footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--splash-purple), rgba(133, 65, 212, 0.2));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* More visible separator line */
footer hr {
    background-color: rgba(133, 65, 212, 0.1) !important;
    margin: 2rem 0;
    opacity: 0.5;
    height: 1px;
}

/* Enhanced social icons with elegant glow */
footer .social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(133, 65, 212, 0.2);
}

footer .social-icons a:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(133, 65, 212, 0.15), rgba(25, 118, 210, 0.1));
    border-color: rgba(133, 65, 212, 0.5);
    box-shadow: 0 5px 15px rgba(133, 65, 212, 0.15);
}

footer .social-icons i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

footer .social-icons a:hover i {
    color: white;
    text-shadow: 0 0 8px rgba(133, 65, 212, 0.7);
}

/* Improved footer brand text */
footer .footer-brand-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-left: 0.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(133, 65, 212, 0.3);
}

/* Elegant link hover effect */
footer a:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(133, 65, 212, 0.4);
}

footer a::after {
    background: linear-gradient(90deg, rgba(133, 65, 212, 0.5), transparent);
}

/* Bottom copyright and tagline */
footer .copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Enhanced Footer Styling with better contrast */
footer {
    position: relative;
    background: linear-gradient(to bottom, rgba(22, 21, 29, 0.99), rgba(16, 15, 26, 0.99)) !important;
    border-top: 1px solid rgba(133, 65, 212, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 4rem;
    padding-bottom: 2rem;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer cosmic background effect - increased contrast */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(133, 65, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 25%, rgba(25, 118, 210, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 60%, rgba(216, 27, 96, 0.11) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Make footer titles stand out more */
footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(133, 65, 212, 0.5);
}

/* More visible underline for footer headings */
footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--splash-purple), var(--splash-pink));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Increased contrast for footer links */
footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 3px 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

footer a:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(133, 65, 212, 0.7);
}

/* More visible separator line */
footer hr {
    background-color: rgba(133, 65, 212, 0.2) !important;
    margin: 2rem 0;
    opacity: 1;
    height: 1px;
}

/* Improved contrast for copyright text */
footer .copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Enhanced social icons with more contrast */
footer .social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

footer .social-icons a:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--splash-purple), var(--deep-indigo));
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(133, 65, 212, 0.3);
}

/* Remove the newsletter section CSS */
.footer-newsletter {
    display: none;
}

footer .footer-brand-section {
    margin-bottom: 2rem;
}

footer .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

footer .footer-logo img {
    height: 40px;
    margin-right: 10px;
}

footer .footer-brand-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-left: 0.5rem;
    letter-spacing: 0.5px;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 3px 0;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: var(--splash-blue);
    transform: translateX(5px);
}

footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--splash-blue), transparent);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

footer .social-icons {
    margin-top: 1.5rem;
}

footer .social-icons a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

footer .social-icons a:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--splash-purple), var(--splash-blue));
    border-color: transparent;
}

footer .social-icons a:hover i {
    color: white;
}

footer .social-icons i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

footer hr {
    background-color: rgba(255, 255, 255, 0.05) !important;
    margin: 2rem 0;
    opacity: 1;
}

footer .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Newsletter form styling */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.footer-newsletter h5 {
    margin-bottom: 1rem;
}

.newsletter-form {
    position: relative;
}

.newsletter-form input[type="email"] {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    width: 100%;
    color: white;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(133, 65, 212, 0.15);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(90deg, var(--splash-purple), var(--splash-pink));
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateX(-3px);
    box-shadow: 0 0 15px rgba(133, 65, 212, 0.3);
}

@media (max-width: 991.98px) {
    footer .footer-col {
        margin-bottom: 2rem;
    }
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

footer a:hover {
    color: var(--splash-blue);
}

.btn-primary {
    background: linear-gradient(135deg, var(--splash-purple), var(--deep-indigo));
    border: none;
    box-shadow: 0 4px 15px rgba(133, 65, 212, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--royal-purple), var(--splash-purple));
    box-shadow: 0 6px 20px rgba(133, 65, 212, 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid transparent;
    background: linear-gradient(#0c0b13, #0c0b13) padding-box,
                linear-gradient(135deg, var(--splash-purple), var(--deep-indigo)) border-box;
    color: var(--splash-purple);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--royal-purple), var(--splash-purple)) border-box;
    color: #fff;
    box-shadow: 0 6px 20px rgba(133, 65, 212, 0.3);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.user-dashboard {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.credits-box .card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.credit-count {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--splash-green);
}

.book-preview {
    position: relative;
    perspective: 1200px;
    margin: 20px 0;
    text-align: center;
}

.book-cover {
    width: 100%;
    max-width: 500px; /* Increased from 400px */
    margin: 0 auto;
    transform: rotateY(10deg);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.5); /* Enhanced shadow */
    transition: transform 0.5s ease;
    border-radius: 5px;
}

.book-cover:hover {
    transform: rotateY(0);
}

.book-banner {
    position: relative;
    background-color: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.book-banner:before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--splash-purple) 0%, var(--royal-purple) 70%, transparent 100%);
    filter: blur(100px);
    opacity: 0.6;
    top: -100px;
    left: 10%;
    z-index: 0;
    /* Remove animation */
}

.book-banner:after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--splash-pink) 0%, var(--deep-magenta) 70%, transparent 100%);
    filter: blur(100px);
    opacity: 0.5;
    bottom: -100px;
    right: 10%;
    z-index: 0;
    /* Remove animation and animation-delay */
}

/* Remove float animation as it's no longer needed for book banner */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-20px, 15px);
    }
    100% {
        transform: translate(20px, -15px);
    }
}

@media (min-width: 992px) {
    .book-banner {
        padding: 3rem 0;
    }
    
    .book-cover {
        max-width: 550px; /* Even larger on bigger screens */
    }
}

.category-badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.age-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--splash-purple), var(--deep-indigo));
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(133, 65, 212, 0.3);
}

/* New classes for Call to Action section */
.cta-gradient {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: rgba(22, 21, 29, 0.7); /* Restore original background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    padding: 3rem 1rem;
    z-index: 1;
}

/* Fixed spotlight effects that don't break the container */
.cta-spotlight {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.spotlight-purple {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(133, 65, 212, 0.5) 0%, rgba(69, 39, 160, 0.3) 40%, transparent 70%);
    filter: blur(60px);
    top: -250px;
    right: -100px;
}

.spotlight-pink {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(216, 27, 96, 0.5) 0%, rgba(173, 20, 87, 0.3) 40%, transparent 70%);
    filter: blur(50px);
    bottom: -200px;
    left: -80px;
}

/* Update CTA text styles */
.cta-gradient h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(133, 65, 212, 0.5);
    position: relative;
    z-index: 2;
}

.cta-gradient .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.cta-gradient .cta-buttons {
    position: relative;
    z-index: 2;
}

/* Remove previous pseudo-elements that were breaking things */
.cta-gradient::before,
.cta-gradient::after {
    display: none;
}

/* Remove the splash elements that aren't needed */
.cta-gradient .splash-top-right,
.cta-gradient .splash-bottom-left {
    display: none;
}

/* Brand Text in Header */
/* 
 * Option 1: Current MaryKate (handwritten, playful)
 * Option 2: Pacifico (rounded, friendly script)
 * Option 3: Fredoka One (bold, bubbly, fun)
 * Option 4: Comfortaa (rounded, modern)
 * Option 5: Quicksand (clean, friendly geometry)
 */

.brand-text {
    /* Option 1: MaryKate (current) */
    /* font-family: 'MaryKate', cursive; */
    
    /* Option 2: Pacifico - Uncomment to use */
    /* font-family: 'Pacifico', cursive; */
    
    /* Option 3: Fredoka One - Uncomment to use */
    /* font-family: 'Fredoka One', cursive; */
    
    /* Option 4: Comfortaa - Uncomment to use */
    /* font-family: 'Comfortaa', sans-serif; */
    
    /* Option 5: Quicksand - Uncomment to use */
    font-family: 'Quicksand', sans-serif;
    
    font-size: 1.8rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(133, 65, 212, 0.6);
    font-weight: 700;
}

@media (max-width: 576px) {
    .brand-text {
        font-size: 1.4rem;
    }
}

/* Add animated subtle rim glow to testimonial */
@keyframes testimonial-glow {
     0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                    0 0 15px rgba(133, 65, 212, 0.2);
    }
    50% {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2),
                    0 0 25px rgba(216, 27, 96, 0.3);
    }
}

/* Add colorful transition effects */
@keyframes colorful-border-pulse {
    0% { 
        border-image: linear-gradient(135deg, 
            rgba(133, 65, 212, 0.7) 0%, 
            rgba(216, 27, 96, 0.5) 50%, 
            rgba(69, 39, 160, 0.3) 100%) 1;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                   inset 0 0 30px rgba(10, 9, 15, 0.8),
                   0 0 15px rgba(133, 65, 212, 0.4);
    }
    50% { 
        border-image: linear-gradient(135deg, 
            rgba(216, 27, 96, 0.7) 0%, 
            rgba(69, 39, 160, 0.5) 50%, 
            rgba(133, 65, 212, 0.3) 100%) 1;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                   inset 0 0 30px rgba(10, 9, 15, 0.8),
                   0 0 20px rgba(216, 27, 96, 0.5);
    }
    100% { 
        border-image: linear-gradient(135deg, 
            rgba(69, 39, 160, 0.7) 0%, 
            rgba(133, 65, 212, 0.5) 50%, 
            rgba(216, 27, 96, 0.3) 100%) 1; 
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
                   inset 0 0 30px rgba(10, 9, 15, 0.8),
                   0 0 15px rgba(69, 39, 160, 0.4);
    }
}

@keyframes rainbow-glow {
    0% { box-shadow: 0 0 30px rgba(133, 65, 212, 0.5); }
    25% { box-shadow: 0 0 30px rgba(216, 27, 96, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 109, 0, 0.5); }
    75% { box-shadow: 0 0 30px rgba(38, 166, 154, 0.5); }
    100% { box-shadow: 0 0 30px rgba(25, 118, 210, 0.5); }
}

.testimonial.transition {
    animation: colorful-border-pulse 1s ease-in-out;
}

.testimonials-container.transition {
    animation: rainbow-glow 1.5s ease-in-out;
}

/* Enhanced Community Text styling */
.community-heading {
    background: linear-gradient(90deg, 
        var(--splash-purple) 0%,
        var(--splash-pink) 50%, 
        var(--splash-blue) 100%);
    background-size: 200% auto; /* Larger background for animation */
    -webkit-background-clip: text;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    white-space: nowrap; /* Prevent text from wrapping */
    width: auto; /* Let content determine width */
}

/* Add animation class */
.animated-heading {
    animation: shine 3s linear infinite;
}

/* Text gradient animation - simplified to prevent layout shifts */
@keyframes shine {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.community-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--splash-purple) 0%,
        var(--splash-pink) 50%, 
        var(--splash-blue) 100%);
    border-radius: 3px;
    /* Separate animation that doesn't affect layout */
    animation: pulse-width-stable 2s ease-in-out infinite;
}

/* Width pulsing animation that doesn't affect parent element */
@keyframes pulse-width-stable {
    0%, 100% {
        width: 30%;
    }
    50% {
        width: 60%;
    }
}

/* Add responsive handling for mobile devices */
@media (max-width: 576px) {
    .community-heading {
        font-size: 1.8rem; /* Smaller font on mobile */
        white-space: normal; /* Allow wrapping on very small screens */
    }
}

/* Enhanced Elegant Footer Styling */
footer {
    position: relative;
    background: linear-gradient(to bottom, #050508, #030306) !important;
    border-top: 1px solid rgba(133, 65, 212, 0.2);
    color: rgba(255, 255, 255, 0.85);
    padding: 5rem 0 3rem;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Nunito', sans-serif;
    letter-spacing: 0.2px;
}

/* Refined background effect */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 15% 10%, rgba(133, 65, 212, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 85% 15%, rgba(25, 118, 210, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 70%, rgba(216, 27, 96, 0.06) 0%, transparent 70%);
    opacity: 1;
    pointer-events: none;
    z-index: -1;
}

/* More elegant heading style */
footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    position: relative;
    display: inline-block;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding-bottom: 10px;
}

/* Refined underline for footer headings */
footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--splash-purple), rgba(133, 65, 212, 0.2));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Separator line with gradient */
footer hr {
    background: linear-gradient(to right, transparent, rgba(133, 65, 212, 0.15), transparent) !important;
    margin: 2.5rem 0;
    opacity: 1;
    height: 1px;
    border: none;
}

/* More elegant footer description */
footer .footer-brand-section p {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1.7;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    max-width: 95%;
}

/* Enhanced footer links */
footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 4px 0;
    margin-bottom: 0.6rem;
    font-weight: 400;
    font-size: 0.95rem;
}

/* More subtle link hover effect */
footer a:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(133, 65, 212, 0.4);
}

/* Refined link underline effect */
footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(133, 65, 212, 0.7), transparent);
    opacity: 0.7;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Social icons with more elegance */
footer .social-icons {
    margin-top: 1.5rem;
    display: flex;
}

footer .social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(133, 65, 212, 0.15);
}

footer .social-icons a:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(133, 65, 212, 0.1), rgba(25, 118, 210, 0.05));
    border-color: rgba(133, 65, 212, 0.4);
    box-shadow: 0 5px 15px rgba(133, 65, 212, 0.2);
}

/* Refined social icon hover effect */
footer .social-icons i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

footer .social-icons a:hover i {
    color: white;
    text-shadow: 0 0 10px rgba(133, 65, 212, 0.7);
}

/* Elegant footer brand */
footer .footer-brand-section {
    margin-bottom: 2rem;
}

footer .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

footer .footer-logo img {
    height: 45px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

footer .footer-brand-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-left: 0.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(133, 65, 212, 0.3);
}

/* Copyright section with more elegance */
footer .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Elegant tagline */
footer .text-muted {
    font-style: italic;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Add some distance between columns on mobile */
@media (max-width: 991.98px) {
    footer .footer-col {
        margin-bottom: 2.5rem;
    }
    
    footer h5 {
        margin-bottom: 1.2rem;
    }
}

/* Welcome Notification styling */
.welcome-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    max-width: 350px;
    z-index: 1000;
    transform: translateX(400px);
    animation: slideInNotification 0.6s forwards, fadeOutNotification 0.6s 8s forwards;
}

.welcome-notification-content {
    background: rgba(35, 18, 66, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid var(--splash-purple);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(133, 65, 212, 0.25);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.welcome-notification-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(156, 39, 176, 0.1) 0%, 
        rgba(33, 150, 243, 0.05) 100%);
    z-index: -1;
}

.notification-icon {
    color: var(--splash-purple);
    font-size: 1.4rem;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(156, 39, 176, 0.5));
}

.notification-text {
    flex: 1;
}

.notification-text h5 {
    color: #fff;
    margin-bottom: 3px;
    font-size: 1.1rem;
    font-weight: 600;
}

.notification-text p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.notification-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #fff;
    transform: scale(1.2);
}

@keyframes slideInNotification {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutNotification {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ===== TESTIMONIAL SECTION - COMPLETELY REWRITTEN WITH SIMPLIFIED ANIMATIONS ===== */

/* Testimonials container */
.testimonials-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    border-radius: 16px;
    padding: 0.5rem;
    background: rgba(22, 21, 29, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly brighter border */
    overflow: hidden;
    z-index: 2;
    height: 300px; /* Fixed height */
    
    /* Static box shadow with no animation - CPU/GPU friendly */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(133, 65, 212, 0.4);
    
    /* Removed pulsing glow animation */
}

/* Simple testimonial cards with reliable transitions */
.testimonial {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none; /* Hidden by default */
    opacity: 0; /* Start transparent */
    transform: translateY(40px); /* Start below */
    
    /* Very simple transition for reliability */
    transition: 
        opacity 0.8s ease-out,
        transform 0.8s ease-out;
}

/* Only two states: active and exiting - no other classes needed */
.testimonial.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                0 0 15px rgba(133, 65, 212, 0.2);
}

.testimonial.exiting {
    opacity: 0;
    transform: translateY(-40px);
}

/* Content centered vertically and horizontally */
.testimonial-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px; /* Fixed height for content */
    overflow: hidden;
}

/* Quote text */
.testimonial-content p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.7;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    font-style: italic;
    position: relative;
    max-width: 90%;
    margin: 0 auto;
}

/* Author section */
.testimonial-author {
    font-weight: 700;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.6px;
    position: relative;
    padding-top: 15px;
    bottom: 0;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(133, 65, 212, 0.7), transparent);
}

.testimonial-author span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: normal;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* Quote marks */
.testimonial-content p::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: -10px;
    font-size: 6rem;
    opacity: 0.1;
    font-family: Georgia, serif;
    color: var(--splash-purple);
    z-index: 1;
}

.testimonial-content p::after {
    content: '"';
    position: absolute;
    bottom: -80px;
    right: -10px;
    font-size: 6rem;
    opacity: 0.1;
    font-family: Georgia, serif;
    color: var(--splash-purple);
    z-index: 1;
}

/* Navigation arrows */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.testimonial-nav:hover {
    background-color: rgba(133, 65, 212, 0.6);
    opacity: 1;
}

.testimonial-prev {
    left: -50px;
}

.testimonial-next {
    right: -50px;
}

/* Support reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .testimonial {
        transition: opacity 0.3s ease !important;
        transform: none !important;
    }
    
    .testimonial.active {
        transform: none !important;
    }
    
    .testimonial.exiting {
        transform: none !important;
    }
}

/* Enhanced Testimonials Container with reduced animations */
.testimonials-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    border-radius: 16px;
    padding: 0.5rem;
    background: rgba(22, 21, 29, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly brighter border */
    overflow: hidden;
    z-index: 2;
    height: 300px; /* Fixed height */
    
    /* Static box shadow with no animation - CPU/GPU friendly */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(133, 65, 212, 0.4);
    
    /* Removed pulsing glow animation */
}

/* Removed container glow pulsing keyframes */

/* REMOVED: Animated subtle rim glow to testimonial */
@keyframes testimonial-glow {
    /* This animation has been removed to reduce GPU usage */
}

/* REMOVED: Colorful transition effects */
@keyframes colorful-border-pulse {
    /* This animation has been removed to reduce GPU usage */
}

@keyframes rainbow-glow {
    /* This animation has been removed to reduce GPU usage */
}

/* Removed animation classes */
.testimonial.transition {
    animation: none;
}

.testimonials-container.transition {
    animation: none;
}

/* Enhanced Community Text styling - simplified */
.community-heading {
    background: linear-gradient(90deg, 
        var(--splash-purple) 0%,
        var(--splash-pink) 50%, 
        var(--splash-blue) 100%);
    background-size: 200% auto; /* Larger background for animation */
    -webkit-background-clip: text;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    white-space: nowrap; /* Prevent text from wrapping */
    width: auto; /* Let content determine width */
}

/* Add animation class */
.animated-heading {
    animation: shine 3s linear infinite;
}

/* Text gradient animation - simplified to prevent layout shifts */
@keyframes shine {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.community-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--splash-purple) 0%,
        var(--splash-pink) 50%, 
        var(--splash-blue) 100%);
    border-radius: 3px;
    /* Separate animation that doesn't affect layout */
    animation: pulse-width-stable 2s ease-in-out infinite;
}

/* Width pulsing animation that doesn't affect parent element */
@keyframes pulse-width-stable {
    0%, 100% {
        width: 30%;
    }
    50% {
        width: 60%;
    }
}

/* Add responsive handling for mobile devices */
@media (max-width: 576px) {
    .community-heading {
        font-size: 1.8rem; /* Smaller font on mobile */
        white-space: normal; /* Allow wrapping on very small screens */
    }
}
