/* General Styles */
* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #000e17;
    color: #d9d9d9;
}

h1, h2, h3 {
    color: #38b6ff;
    text-align: center;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.801); /* Darker semi-transparent background */
    backdrop-filter: blur(10px); /* Increased blur for a futuristic effect */
    border-bottom: 2px solid #38b6ff;
    border-radius: 15px; /* More rounded borders */
    position: fixed; /* Fix the header position */
    top: 10px; /* Offset from the top */
    left: 10px; /* Offset from the left */
    right: 10px; /* Offset from the right */
    z-index: 1000; /* Ensure the header stays on top */
    box-shadow: 0 4px 20px rgba(56, 182, 255, 0.5); /* Neon glow effect */
    transition: all 0.3s ease; /* Smooth transitions for hover effects */
}

header:hover {
    box-shadow: 0 4px 30px rgba(56, 182, 255, 0.8); /* Enhanced glow on hover */
}

header .logo img {
    width: 15rem;
    margin-right: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 153, 241, 0.904)); /* Neon glow for the logo */
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Increased gap for better spacing */
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #38b6ff;
    font-size: 1.1em;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #38b6ff;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links li a:hover {
    color: #d9d9d9;
    text-shadow: 0 0 10px rgba(56, 182, 255, 0.7); /* Neon glow on hover */
}

.nav-links li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #38b6ff;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(56, 182, 255, 0.7); /* Neon glow for bars */
}

/* Get Started Button */
.btn-get-started {
    display: inline-block;
    background-color: #38b6ff; /* Button background color */
    color: #ffffff; /* Text color */
    font-size: 1.2em; /* Font size */
    font-weight: bold; /* Make the text bold */
    padding: 12px 24px; /* Padding for a comfortable button size */
    border: 2px solid #38b6ff; /* Add a border to the button */
    border-radius: 30px; /* Rounded corners for a modern look */
    text-decoration: none; /* Remove underline */
    text-align: center; /* Center-align text */
    transition: all 0.3s ease; /* Smooth hover animation */
    box-shadow: 0 0 15px rgba(56, 182, 255, 0.7); /* Neon glow for the button */
}

.btn-get-started:hover,
.btn-get-started:focus {
    background-color: #ffffff; /* Change background on hover */
    color: #38b6ff; /* Change text color */
    box-shadow: 0 0 25px rgba(56, 182, 255, 1); /* Enhanced glow on hover */
    transform: translateY(-3px); /* Slight lift on hover */
    border-color: #ffffff; /* Match the border to the background color */
}

.btn-get-started:active {
    transform: translateY(0); /* Reset lift when clicked */
    box-shadow: 0 0 15px rgba(56, 182, 255, 0.7); /* Reduce glow */
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    header {
        flex-wrap: wrap; /* Allow header elements to wrap */
        padding:0px; /* Reduce padding */
        top: 5px; /* Adjust offset */
        left: 5px;
        right: 5px;
    }

    header .logo img {
        position: relative;
        width: 180px; /* Reduce logo size */
        height: auto; /* Maintain aspect ratio */
        margin-right: auto; /* Push logo to the left */
    }

    .hamburger {
        display: flex; /* Show hamburger menu */
        margin-right:12px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hide off-screen */
        height: 100vh;
        width: 70%; /* Full-screen overlay width */
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: 0 0 20px rgba(56, 182, 255, 0.5); /* Neon glow for the overlay */
    }

    .nav-links.active {
        right: 0; /* Slide in from the right */
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .btn-get-started {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 10px; /* Reduce padding further */
    }

    header .logo img {
        width: 150px; /* Adjust logo size */
        height: auto; /* Maintain aspect ratio */
    }
    
    .nav-links li a {
        font-size: 1.2em; /* Increase font size for better readability */
    }

    .btn-get-started {
        font-size: 1em; /* Adjust button size */
        padding: 10px 20px; /* Adjust padding */
    }
}

/* Hero Section */
#hero-section {
    text-align: center;
    padding: 150px 20px 100px; /* Increased top padding to account for the header */
    background: linear-gradient(to bottom right, #38b6ff, #000e17); /* Gradient background */
    color: #000e17; /* Text color */
    margin-top:0; /* Small margin for spacing below the fixed header */
    position: relative; /* Ensure proper stacking context */
    z-index: 1; /* Ensures it appears correctly with respect to the header */
    height: 100vh; /* Full viewport height */
}

#hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the entire hero section */
    z-index: -1; /* Places the video behind the content */
}

/* Fallback background image */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/Hero-image.png') no-repeat center center/cover;
    z-index: -2; /* Places the fallback image behind the video */
}

/* Hide the fallback image if the video is playing */
#hero-section video.is-playing + .hero-content + ::before {
    display: none;
}

#hero-section .hero-content {
   position: relative; /* Ensure proper stacking context */
   top:25%; /* Adjust position for better centering */
}

#hero-section .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #38b6ff;
}

#hero-section .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #a9bcd0;
}

#hero-section .cta-button {
    background-color: #38b6ff;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(56, 182, 255, 0.7);
}

#hero-section .cta-button:hover {
    background-color: #ffffff;
    color: #38b6ff;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(56, 182, 255, 1);
}

/* Meet the Team Section */
#meet-the-team {
    padding: 60px 20px;
    background-color: #001524;
    color: #d9d9d9;
    font-family: 'Roboto', sans-serif;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.team-text {
    margin-left: auto;
    max-width: 600px;
}

.team-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #38b6ff;
    text-shadow: 0 0 10px #38b6ff;
}

.team-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #a9bcd0;
}

.team-text a.linkedin-link {
    color: #38b6ff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.team-text a.linkedin-link:hover {
    color: #ffffff;
}

.team-text .cta-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #38b6ff;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(56, 182, 255, 0.7);
}

.team-text .cta-button:hover {
    background-color: #ffffff;
    color: #38b6ff;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(56, 182, 255, 1);
}

.team-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(56, 182, 255, 0.7);
}

/* Projects Section */
#projects-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #001524;
    color: #d9d9d9;
}

#projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 0 0 10px #38b6ff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: #0d1b2a;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(56, 182, 255, 0.6);
}

.project-card i {
    font-size: 3rem;
    color: #38b6ff;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.5rem;
    color: #d9d9d9;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 1rem;
    color: #a9bcd0;
}

/* Testimonials Section */
#testimonials-section {
    padding: 100px 20px;
    background-color: #000e17;
    text-align: center;
    color: #d9d9d9;
    position: relative;
    overflow: hidden;
}

#testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(56, 182, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(56, 182, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

#testimonials-section h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    text-shadow: 0 0 15px rgba(56, 182, 255, 0.7);
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
    display: inline-block;
}

#testimonials-section h2::before, 
#testimonials-section h2::after {
    content: '';
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38b6ff, transparent);
    width: 150px;
    top: 50%;
}

#testimonials-section h2::before {
    right: 100%;
    margin-right: 20px;
}

#testimonials-section h2::after {
    left: 100%;
    margin-left: 20px;
}

.testimonial-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 10px 40px;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #38b6ff #001524; /* For Firefox */
    position: relative;
    z-index: 2;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.testimonial-carousel::-webkit-scrollbar {
    height: 6px;
}

.testimonial-carousel::-webkit-scrollbar-track {
    background: rgba(0, 21, 36, 0.2);
    border-radius: 10px;
}

.testimonial-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #005b80, #38b6ff, #005b80);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(56, 182, 255, 0.7);
}

.testimonial {
    flex: 0 0 350px;
    background-color: rgba(13, 27, 42, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    scroll-snap-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 3px rgba(56, 182, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 182, 255, 0.2);
}

.testimonial::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 182, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #38b6ff, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.testimonial:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 182, 255, 0.5), inset 0 0 10px rgba(56, 182, 255, 0.2);
    background-color: rgba(20, 40, 60, 0.8);
    border-color: rgba(56, 182, 255, 0.5);
}

.testimonial:hover::after {
    opacity: 1;
}

.testimonial:hover::before {
    transform: scaleX(1);
}

.testimonial-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hologram-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(56, 182, 255, 0.03) 0px,
        rgba(56, 182, 255, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.testimonial:hover .hologram-effect {
    opacity: 1;
}

.company-logo-container {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.company-logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(80%) brightness(0.8);
    transition: all 0.5s ease;
    border: 2px solid rgba(56, 182, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.logo-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 182, 255, 0.5) 0%, transparent 70%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.testimonial:hover .company-logo {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.05);
    border-color: rgba(56, 182, 255, 0.8);
    box-shadow: 0 0 20px rgba(56, 182, 255, 0.5);
}

.testimonial:hover .logo-glow {
    opacity: 0.8;
}

.testimonial p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #a9bcd0;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    transition: color 0.3s ease;
    text-shadow: 0 0 1px rgba(169, 188, 208, 0.3);
    flex-grow: 1;
}

.testimonial:hover p {
    color: #d9d9d9;
}

.testimonial p::before,
.testimonial p::after {
    content: '"';
    font-size: 2.5rem;
    color: rgba(56, 182, 255, 0.3);
    position: absolute;
    transition: color 0.3s ease;
}

.testimonial p::before {
    top: -20px;
    left: -10px;
}

.testimonial p::after {
    bottom: -40px;
    right: -10px;
}

.testimonial:hover p::before,
.testimonial:hover p::after {
    color: rgba(56, 182, 255, 0.7);
}

.testimonial span {
    font-size: 1rem;
    color: #38b6ff;
    font-weight: bold;
    display: block;
    margin-top: 20px;
    text-align: right;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.testimonial:hover span {
    opacity: 1;
    text-shadow: 0 0 10px rgba(56, 182, 255, 0.7);
}

.testimonial-pulse {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 8px;
    height: 8px;
    background-color: #38b6ff;
    border-radius: 50%;
    z-index: 2;
}

.testimonial-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(56, 182, 255, 0.5);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Holographic scanline animation */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.scanline {
    position: absolute;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(56, 182, 255, 0.1) 10%, 
        rgba(56, 182, 255, 0.3) 50%, 
        rgba(56, 182, 255, 0.1) 90%, 
        transparent 100%);
    z-index: 3;
    opacity: 0;
    top: 0;
    left: 0;
    pointer-events: none;
}

.testimonial:hover .scanline {
    opacity: 1;
    animation: scanline 2s linear infinite;
}

/* Visual data points */
.data-points {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.data-point {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: rgba(56, 182, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial:hover .data-point {
    opacity: 1;
}

/* Stats Section */
#stats-section {
    padding: 60px 20px;
    background-color: #0d1b2a;
    text-align: center;
    color: #d9d9d9;
}

#stats-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 0 0 10px #38b6ff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat {
    background-color: #001524;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(56, 182, 255, 0.6);
}

.stat h3 {
    font-size: 2rem;
    color: #38b6ff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #38b6ff;
}

.stat p {
    font-size: 1rem;
    color: #a9bcd0;
}

/* Footer Section - Using styles.css for footer styling */
footer {
    position: relative;
    width: 100%;
    padding-top: 90px; /* Space for wave animation */
    background-color: #000e17;
    color: #d9d9d9;
}

/* Let styles.css handle all footer styling */

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .team-grid {
        flex-direction: column;
        align-items: center;
    }

    .team-image img {
        width: 90%;
        height: auto;
    }
}

.testimonial-corner {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: rgba(56, 182, 255, 0.7);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    z-index: 3;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial:hover .testimonial-corner {
    opacity: 1;
}

/* Add a holographic grid pattern to the background of the section */
#testimonials-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, rgba(56, 182, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 182, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
    pointer-events: none;
}

/* Tech-inspired background elements */
.testimonial-bg-element {
    position: absolute;
    background: radial-gradient(circle, rgba(56, 182, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 1;
    opacity: 0.3;
    animation: float 10s infinite ease-in-out;
}

.bg-element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-element-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 15%;
    animation-delay: -3s;
}

.bg-element-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 30%;
    animation-delay: -6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(15px);
    }
    50% {
        transform: translateY(0) translateX(30px);
    }
    75% {
        transform: translateY(15px) translateX(15px);
    }
}

/* Perfect Rating Card Enhancement */
.perfect-rating {
    position: relative;
    overflow: hidden;
    z-index: 2;
    transition: transform 0.3s ease;
    border: 2px solid rgba(56, 182, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.perfect-rating:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 182, 255, 0.5);
}

.perfect-rating h3 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(56, 182, 255, 0.8), 0 0 20px rgba(56, 182, 255, 0.5);
    z-index: 3;
    position: relative;
}

.perfect-rating p {
    font-size: 1.2rem;
    color: #ffffff;
    z-index: 3;
    position: relative;
    text-shadow: 0 0 5px rgba(56, 182, 255, 0.7);
}

.flame-container {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
    z-index: 1;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    filter: blur(1px);
    pointer-events: none;
}

.perfect-rating:hover .flame-container {
    opacity: 1;
    filter: blur(0);
}

.flame-base {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, 
        rgba(0, 102, 255, 0.7) 0%, 
        rgba(56, 182, 255, 0.8) 60%, 
        rgba(173, 216, 230, 0.5) 100%);
    border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
    animation: flicker 3s ease-in-out infinite alternate;
    transform-origin: center bottom;
    box-shadow: 0 0 80px 20px rgba(56, 182, 255, 0.5);
}

@keyframes flicker {
    0%, 100% {
        transform: scaleX(1) scaleY(1);
        opacity: 0.8;
        box-shadow: 0 0 80px 20px rgba(56, 182, 255, 0.5);
    }
    25% {
        transform: scaleX(1.05) scaleY(0.95);
        opacity: 0.7;
        box-shadow: 0 0 70px 30px rgba(56, 182, 255, 0.45);
    }
    50% {
        transform: scaleX(0.95) scaleY(1.05);
        opacity: 0.9;
        box-shadow: 0 0 90px 15px rgba(56, 182, 255, 0.6);
    }
    75% {
        transform: scaleX(1.05) scaleY(0.95);
        opacity: 0.8;
        box-shadow: 0 0 60px 25px rgba(56, 182, 255, 0.55);
    }
}

.flame-particle-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
}

.flame-particle {
    position: absolute;
    background-color: rgba(135, 206, 250, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(56, 182, 255, 0.7);
    opacity: 0;
    animation: float-up 3s ease-out forwards;
}

@keyframes float-up {
    0% {
        opacity: 0.7;
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(-150px) translateX(var(--tx)) scale(0.5);
    }
}

.rating-stars {
    margin-top: 10px;
    z-index: 3;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.rating-stars i {
    color: #ffbf00;
    font-size: 1.2rem;
    text-shadow: 0 0 8px rgba(255, 191, 0, 0.7);
    animation: star-pulse 2s infinite;
}

.rating-stars i:nth-child(1) { animation-delay: 0s; }
.rating-stars i:nth-child(2) { animation-delay: 0.4s; }
.rating-stars i:nth-child(3) { animation-delay: 0.8s; }
.rating-stars i:nth-child(4) { animation-delay: 1.2s; }
.rating-stars i:nth-child(5) { animation-delay: 1.6s; }

@keyframes star-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
        color: #fff;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(56, 182, 255, 0.8);
    }
}

/* Enhancement for desktop/larger screens */
@media screen and (min-width: 769px) {
    .perfect-rating {
        position: relative;
        transition: transform 0.3s ease;
    }
    
    .perfect-rating::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #0088ff, transparent, #38b6ff, transparent, #00aaff);
        background-size: 400%;
        z-index: -1;
        filter: blur(5px);
        opacity: 0;
        transition: opacity 0.3s;
        animation: glowing 20s linear infinite;
        border-radius: inherit;
    }
    
    .perfect-rating:hover::before {
        opacity: 1;
    }
    
    @keyframes glowing {
        0% { background-position: 0 0; }
        50% { background-position: 400% 0; }
        100% { background-position: 0 0; }
    }
}