
/* Base styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f7f8fa;
    color: #2a2a2a;
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
/*
 * Navigation bar
 *
 * The navigation bar stays fixed to the top of the screen and casts a
 * gentle shadow when scrolling. Links have an underline on hover for
 * better accessibility feedback.
 */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    top: 0;
    z-index: 100;
    /* Ensure dropdown nav can position relative to header */
    position: sticky;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}
.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4c51bf;
    text-decoration: none;
    white-space: nowrap;
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #4c51bf;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    /* Show hamburger on small screens */
    .nav-toggle {
        display: block;
    }
    /* Stack nav list vertically and hide by default */
    .nav-list {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        border-top: 1px solid #e5e7eb;
        flex-direction: column;
        padding: 0;
        margin: 0;
        display: none;
    }
    /* Show nav list when open */
    .nav-list.open {
        display: flex;
    }
    .nav-list li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid #f3f4f6;
    }
    .nav-list li:last-child {
        border-bottom: none;
    }
}
.nav-list a {
    text-decoration: none;
    color: #2a2a2a;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.2s ease;
}
/* Underline effect on hover/focus */
.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #4c51bf;
    transition: width 0.2s ease;
}
.nav-list a:hover,
.nav-list a:focus {
    color: #4c51bf;
}
.nav-list a:hover::after,
.nav-list a:focus::after {
    width: 100%;
}

/* Hero section */
/*
 * Hero section
 *
 * The hero uses a soft gradient to give a modern feel while keeping the
 * content easy to read. We bump up the font sizes slightly on larger
 * screens and ensure that the hero image scales gracefully. The
 * container is centered on small screens and split into text and
 * image columns on medium/large screens.
 */
.hero {
    /* A lighter, more inviting gradient for the hero background */
    background: linear-gradient(135deg, #8e9aff 0%, #a1c4fd 50%, #c2e9fb 100%);
    color: #ffffff;
    padding: 6rem 0;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    text-align: center;
}
.hero-text {
    max-width: 600px;
}
.hero-text h1 {
    font-size: 3.25rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}
.hero-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    /* Fade and lift transitions for slider and hover states */
    transition: transform 0.5s ease, opacity 0.5s ease;
    /* Set default opacity so fades trigger correctly */
    opacity: 1;
}

/* Position the slider arrows relative to the hero image */
.hero-image {
    position: relative;
}

/* Slider arrows for manual navigation */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    color: #4c51bf;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.slider-arrow.left {
    left: 5px;
}
.slider-arrow.right {
    right: 5px;
}
.slider-arrow:hover,
.slider-arrow:focus {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 480px) {
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}
/* Subtle hover effect on the phone mockup to add interactivity */
.hero-image img:hover {
    transform: translateY(-5px);
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    .hero-text {
        flex: 1;
    }
    .hero-image {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.button-primary {
    background-color: #4c51bf;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}
.button-primary:hover,
.button-primary:focus {
    background-color: #4338ca;
}

/* Features section */
/*
 * Features section
 *
 * Cards highlight the benefits of the app. We use a subtle shadow and
 * rounded corners for each card, and animate a gentle lift on hover
 * for a tactile feel.
 */
.features {
    padding: 4rem 0;
    text-align: center;
}
.features h2 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: #4c51bf;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.feature-item {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Lift effect on hover */
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.feature-icon {
    width: 44px;
    height: 44px;
    color: #4c51bf;
    margin-bottom: 1rem;
}
.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}
.feature-item p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.4;
}

/* Gallery section */
.gallery {
    padding: 4rem 0;
    background-color: #ffffff;
}
.gallery h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #4c51bf;
    text-align: center;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for gallery images */
.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    padding: 2rem 0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.footer-nav {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
}
.footer-nav a {
    text-decoration: none;
    color: #4c51bf;
    font-weight: 500;
}
.footer-nav a:hover,
.footer-nav a:focus {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

