@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --primary: #42D9C8;
    --background: #121212;
    --surface: #1E1E1E;
    --text: #FFFFFF;
    --text-muted: #B3B3B3;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

.hero-section {
    min-height: 100vh;
    background: radial-gradient(circle, var(--surface) 0%, var(--background) 70%);
    padding-top: 80px;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

.screenshots-container {
    margin: 4rem 0;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
    /* Increased padding to prevent button clipping */
    overflow: hidden;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.carousel-slide {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease-in-out;
    opacity: 0;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-image {
    width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.carousel-image:hover {
    transform: scale(1.05);
}

.slide-caption {
    text-align: center;
    max-width: 500px;
}

.slide-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.slide-caption p {
    color: var(--text-muted);
    line-height: 1.6;
}

.carousel-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(30, 30, 30, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

.carousel-nav:hover {
    background: rgba(66, 217, 200, 0.3) !important;
    border-color: var(--primary) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.prev-btn {
    left: 20px !important;
    /* Moved further from edge */
}

.next-btn {
    right: 20px !important;
    /* Moved further from edge */
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

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

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.download-section {
    margin-top: 4rem;
}

.qr-codes-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-placeholder {
    width: 12rem;
    height: 12rem;
    background-color: var(--surface);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-placeholder::after {
    content: 'QR Code';
}

header {
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0) 100%);
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 60px;
    }

    .hero-section h1 {
        font-size: 3rem !important;
        line-height: 1.2 !important;
    }

    .hero-section p {
        font-size: 1.25rem !important;
    }

    .carousel-container {
        padding: 0 80px !important;
        /* Increased padding for button space */
        max-width: 100% !important;
    }

    .carousel-image {
        width: 280px !important;
    }

    .carousel-nav {
        width: 44px !important;
        height: 44px !important;
    }

    .prev-btn {
        left: 15px !important;
        /* Ensures button is fully visible */
    }

    .next-btn {
        right: 15px !important;
        /* Ensures button is fully visible */
    }

    .qr-codes-container {
        gap: 2rem;
    }

    .qr-placeholder {
        width: 10rem;
        height: 10rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding-top: 40px;
    }

    .hero-section h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    .hero-section p {
        font-size: 1.125rem !important;
    }

    .carousel-container {
        padding: 0 70px !important;
        /* Increased padding for button space */
    }

    .carousel-image {
        width: 220px !important;
    }

    .carousel-nav {
        width: 40px !important;
        height: 40px !important;
    }

    .prev-btn {
        left: 10px !important;
        /* Ensures button is fully visible */
    }

    .next-btn {
        right: 10px !important;
        /* Ensures button is fully visible */
    }

    .carousel-dots {
        margin-top: 1.5rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .qr-placeholder {
        width: 8rem;
        height: 8rem;
    }
}

@media (max-width: 360px) {
    .hero-section {
        padding-top: 30px;
    }

    .hero-section h1 {
        font-size: 2rem !important;
        line-height: 1.1 !important;
    }

    .hero-section p {
        font-size: 1rem !important;
    }

    .carousel-container {
        padding: 0 60px !important;
        /* Increased padding for button space */
    }

    .carousel-image {
        width: 180px !important;
    }

    .carousel-nav {
        width: 36px !important;
        height: 36px !important;
    }

    .prev-btn {
        left: 5px !important;
        /* Ensures button is fully visible */
    }

    .next-btn {
        right: 5px !important;
        /* Ensures button is fully visible */
    }
}

/* Hide scrollbar for cleaner look */
body {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, and Opera */
}