/* Modern Recipe Finder Styles */
:root {
    --red: #E63946;
    --green: #4CAF50;
    --beige: #FFF3E0;
    --white: #FFFFFF;
    --dark: #2C3E50;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --glass-bg: rgba(44, 62, 80, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --items-count: 9;
    --duration: 8s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--white);
    min-height: 100vh;
}

/* Global smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Sticky Header Styles */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    /* box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); */
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--red);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 45px;
    width: 45px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Navigation and Dropdown Styles */
.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-list li a:hover {
    color: var(--red);
}

.nav-list li a.active {
    color: var(--red);
    font-weight: 600;
}

.nav-list li a.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, #E63946 0%, #FF6B6B 100%);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.nav-list li a.btn-primary:hover {
    color: var(--white);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    padding: 1rem 0;
    border-radius: 15px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-menu li {
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.dropdown-menu li:hover {
    background: rgba(230, 57, 70, 0.1);
}

.dropdown-menu li a {
    color: var(--dark);
    font-weight: 400;
    font-size: 0.95rem;
    display: block;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    color: var(--red);
    transform: translateX(5px);
}

.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(-180deg);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 90%;
    max-width: 1400px;
    margin: 120px auto 2rem;
    height: calc(100vh - 180px);
    min-height: 600px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('./bg.png') center/cover no-repeat;
    border-radius: 30px;
    z-index: -1;
    transform: translateZ(-1px) scale(1.3);
    transition: transform 0.3s ease;
    filter: brightness(0.9);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(230, 57, 70, 0.3) 100%);
    border-radius: 30px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding: 4rem;
    margin: 0;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: float 6s ease-in-out infinite;
}

.hero-tagline {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #ddd;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -1px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #FFE0B2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Enhanced button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:hover::after {
    transform: translateX(100%) rotate(45deg);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #E63946 0%, #FF6B6B 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background: rgba(255, 243, 224, 0.9);
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--beige);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.features-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.feature-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(230, 57, 70, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(230, 57, 70, 0.05) 100%);
    color: var(--red);
    font-size: 2rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2) 0%, rgba(230, 57, 70, 0.1) 100%);
}

.feature-card h3 {
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--red);
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-container {
        grid-template-columns: 1fr;
        width: 95%;
        padding: 1rem 0;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features {
        grid-template-columns: 1fr;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
        padding: 0.5rem 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu li {
        padding: 0.5rem 1rem;
    }
}

/* Existing styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    background-color: var(--white);
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--green);
}

.search-button {
    background-color: var(--green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #3d8b40;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.recipe-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-title {
    color: var(--red);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.recipe-info {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.recipe-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--beige);
    color: var(--red);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .hero {
        width: 95%;
        margin: 100px auto 1rem;
        height: calc(100vh - 140px);
    }

    .hero-content {
        padding: 2.5rem;
        width: 95%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}

/* Add smooth scrollbar for touch devices */
@media (hover: none) {
    .carousel-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        -webkit-overflow-scrolling: touch;
        padding: 1rem;
    }

    .carousel-track::-webkit-scrollbar {
        display: none;
    }

    .carousel-slide {
        scroll-snap-align: center;
        min-width: calc(100% - 2rem);
    }

    .carousel-button {
        display: none;
    }
}

/* Add these animation keyframes at the end of the file */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Pause animation on hover */
.carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* Add these classes to enable animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in {
    animation: slideInDown 0.5s ease-out forwards;
}

.nav-menu .dropdown-menu {
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu .dropdown:hover .dropdown-menu {
    transform: translateY(0);
}

/* Footer Styles */
.footer {
    background: linear-gradient(to bottom, #f8f9fa, #fff);
    padding: 2rem 0;
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.copyright:hover {
    color: var(--red);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .carousel-slide {
        min-width: calc(25% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .carousel-section {
        padding: 1.5rem 0;
    }

    .carousel-container {
        width: 95%;
    }

    .carousel-slide {
        min-width: calc(33.333% - 0.67rem);
        height: 150px;
    }

    .hero-content {
        padding: 2rem;
    }

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

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        min-width: calc(50% - 0.5rem);
        height: 140px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }
}


/* Image Slider */

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 10px));
    }
}

.logos {
    overflow: hidden;
    padding: 60px 0;
    white-space: nowrap;
    position: relative;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 30px;
}

.logos:before,
.logos:after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 2;
}

.logos:before {
    left: 0;
    /* background: linear-gradient(to left, rgba(255, 255, 255, 0), white); */
}

.logos:after {
    right: 0;
    /* background: linear-gradient(to right, rgba(255, 255, 255, 0), white); */
}

.logos:hover .logos-slide {
    animation-play-state: paused;
}

.logos-slide {
    display: inline-block;
    animation: 10s slide infinite linear;
}

.logos-slide img {
    height: 250px;
    margin: 0 10px;
    border-radius: 15px;
    /* box-shadow: var(--shadow); */
}






/* Developer Credit - Footer */

.developer-credit {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.dev-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #2c3e50;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 5px 10px;
}

.dev-link:hover {
    opacity: 1;
}

.dev-text {
    font-size: 0.9rem;
}

.dev-name {
    font-weight: 600;
    background: linear-gradient(90deg, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    background-size: 200% auto;
    animation: nameGradient 6s linear infinite;
}

@keyframes nameGradient {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.dev-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff8c00, #ff4500);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.dev-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Updated Responsive Overlay Styles */
.responsive-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    perspective: 1000px;
}

.overlay-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    animation: overlayFloat 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.overlay-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: rotate(30deg);
    pointer-events: none;
}

.overlay-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    transform: translateZ(20px);
}

.overlay-logo img {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    animation: logoPulse 2s ease-in-out infinite;
}

.overlay-logo span {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #E63946 0%, #FF6B6B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.overlay-content h2 {
    color: #2C3E50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    transform: translateZ(15px);
    position: relative;
}

.overlay-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #E63946, #FF6B6B);
    border-radius: 3px;
}

.progress-container {
    margin: 2rem 0;
    transform: translateZ(10px);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, #E63946, #FF6B6B);
    border-radius: 5px;
    animation: progressAnimation 2s ease-in-out infinite;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #E63946;
    border-radius: 50%;
    opacity: 0.3;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

.overlay-message {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    transform: translateZ(5px);
}

.thank-you-container {
    margin-top: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border-radius: 15px;
    transform: translateZ(15px);
    position: relative;
    overflow: hidden;
}

.thank-you-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: thankYouShimmer 3s infinite;
}

.thank-you-text {
    color: #E63946;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.overlay-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(255, 107, 107, 0.1));
    animation: decorationFloat 8s ease-in-out infinite;
}

.decoration-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.decoration-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: -40px;
    right: -40px;
    animation-delay: 1s;
}

.decoration-circle:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20px;
    left: 20px;
    animation-delay: 2s;
}

@keyframes overlayFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes progressAnimation {
    0% {
        width: 0%;
        opacity: 0.5;
    }
    50% {
        width: 60%;
        opacity: 1;
    }
    100% {
        width: 0%;
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes thankYouShimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes decorationFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(10px, 10px) rotate(180deg);
    }
}

/* Media query for the overlay */
@media screen and (max-width: 767px) {
    .responsive-overlay {
        display: flex;
    }
    
    body {
        overflow: hidden;
    }

    .overlay-content {
        padding: 2rem;
        width: 85%;
    }

    .overlay-logo span {
        font-size: 1.4rem;
    }

    .overlay-content h2 {
        font-size: 1.5rem;
    }
}