/* Home Page Specific Styles */

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, var(--surfaces), var(--background));
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 500;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.apple-note {
    font-size: .8rem;
}

.app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.store-btn img {
    height: 50px;
}

/* Carousel fixes */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    overflow: visible;
    border-radius: 20px;
    box-shadow: var(--shadow);
    background-color: var(--surfaces);
    z-index: 1;
}

.carousel-track {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

.carousel-controls {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
    pointer-events: auto;
}

.carousel-arrow {
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 20;
    position: relative;
    pointer-events: auto;
}

.carousel-arrow:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
    z-index: 20;
    position: relative;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.carousel-indicator.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.phone-mockup {
    width: auto;
    max-width: 90%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    max-height: 90%;
    border-radius: 16px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--background);
}

/* How to */
.how-to {
    padding: 100px 0;
    background-color: var(--surfaces);
}

.how-to-header {
    display: flex;
    margin-top: 20px;
}

/* New: How-to Order steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.step-card {
    background: var(--background);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.video-embed {
    display: flex;
    justify-content: center;
    margin: 20px auto 10px;
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background-color: var(--background);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background-color: var(--background);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--background);
}

/* Home Page Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

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

    .app-buttons {
        justify-content: center;
    }

    .carousel-track {
        height: 500px;
        width: 300px;
    }

    .carousel-container {
        margin: 40px auto 0;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .cta-btn {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

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

    .carousel-track {
        height: 450px;
    }

    .carousel-container {
        max-width: 300px;
    }

    .phone-mockup {
        max-width: 70%;
    }

    .carousel-controls {
        bottom: 10px;
    }

    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    .carousel-container {
        max-width: 280px;
        height: 500px;
        margin-top: 30px;
    }

    .carousel-track {
        height: 450px;
        width: 260px;
    }

    .carousel-slide {
        visibility: visible;
        opacity: 0;
    }

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

    .phone-mockup {
        max-height: 80%;
        max-width: 80%;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .carousel-track {
        height: 400px;
        width: 240px;
    }

    .carousel-container {
        max-width: 280px;
    }

    .phone-mockup {
        max-width: 85%;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }

    .app-buttons a {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .carousel-container {
        max-width: 240px;
        height: 400px;
    }

    .carousel-track {
        height: 350px;
        width: 250px;
    }

    .phone-mockup {
        max-height: 75%;
        max-width: 75%;
    }
}