@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #6750A4; /* Brand Purple */
    --secondary-color: #1a1a1a;
    --accent-color: #FFA500; /* Brand Orange */
    --text-color: #f4f4f4;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

.navbar {
    background-color: rgba(103, 80, 164, 0.8) !important; /* Purple with transparency */
    backdrop-filter: blur(10px);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(360deg);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    height: auto;
    padding: 4rem 1rem 2rem 1rem; /* Adjust padding for mobile */
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    position: relative; /* For positioning the scroll arrow */
}

.hero-content {
    order: 1; /* Content first */
    text-align: center;
    max-width: 100%;
    padding: 2rem;
}

.hero-logo {
    width: 60px; /* Reduced size */
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.8rem; /* Reduced size */
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.1rem; /* Reduced size */
}

.hero-image-container {
    order: 2; /* Image second */
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -24em;
}

.hero-screenshot {
    max-width: 90%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: rotate(0deg) scale(0.5,0.5) !important; /* Reset for mobile */
    transition: transform 0.3s ease-in-out;
    z-index: 1;
}

.hero-screenshot:hover {
    transform: rotate(0deg) scale(1.0, 1.0) !important;
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    display: none; /* Hide on mobile */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

#features {
    font-family: 'Montserrat', sans-serif;
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

section {
    padding: 60px 20px;
    margin: 40px 0;
}

#features h3 {
    color: var(--accent-color);
    font-weight: 600;
}

#cpl-promo {
    background: linear-gradient(45deg, var(--accent-color), #00c4ff);
    color: var(--primary-color);
    border: none;
}

#cpl-promo h2 {
    font-weight: 700;
}

.slideshow-container {
    height: 300px;
    width: 100%; /* Use full width of the parent */
    max-width: 1200px; /* Increase max-width for carousel view */
    margin: auto;
    overflow: hidden; /* This is crucial for the carousel effect */
    display: flex; /* Align items for the carousel */
    align-items: center; /* Center slides vertically */
}

.slideshow-container .screenshot {
    position: absolute;
    height: 80%; /* Make center slide larger */
    width: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.5s ease-in-out;
    filter: blur(5px); /* Blur slides by default */
    transform: scale(0.8); /* Scale down non-active slides */
}

.slideshow-container .screenshot.active {
    filter: blur(0);
    transform: scale(1);
    z-index: 10;
}

.slideshow-container .screenshot.prev,
.slideshow-container .screenshot.next {
    z-index: 5;
}

#download .btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 1rem;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

#download .btn:hover {
    background-color: var(--text-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 255, 133, 0.2);
}

footer {
    background-color: var(--primary-color) !important;
    padding: 20px;
}

footer p {
    margin-top: 1rem; /* Add some space above the copyright text */
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* --- Tablet and Larger --- */
@media (min-width: 768px) {
    .hero {
        height: 900px;
        padding: 2rem;
    }

    .slideshow-container {
        height: 400px;
    }

    .download-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    #download .btn {
        width: auto; /* Allow buttons to size to their content */
    }
}

/* --- Laptop and Larger --- */
@media (min-width: 992px) {
    .hero {
        flex-direction: row;
    }

    .hero-content {
        order: 1;
        text-align: left;
        max-width: 500px;
    }

    .hero-image-container {
        order: 2;
    }

    .hero-screenshot {
        transform: rotate(3deg) scale(0.6, 0.6) !important;
    }

    .hero-screenshot:hover {
        transform: rotate(0deg) scale(1.0, 1.0) !important;
    }

    .scroll-down {
        display: block;
    }
}
