* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 15px;
}

nav {
    background: linear-gradient(90deg, rgb(58, 49, 226) 0%, rgba(209, 0, 255, 1) 100%);
    width: 100%;
    border: 2px solid white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.main-nav ul {
    display: flex;
    list-style-type: none;
    justify-content: space-between;
    align-items: stretch;
    height: 60px;
}

.main-nav li {
    font-size: 15px;
    font-weight: bold;
    color: white;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-right: 2px solid white;
    transition: background 0.3s ease;
}

.main-nav li:first-child {
    background: linear-gradient(90deg, rgba(255, 0, 0, 1) 0%, rgb(192, 84, 84) 100%);
}

.main-nav li:last-child {
    background: linear-gradient(90deg, rgba(0, 128, 0, 1) 0%, rgba(0, 255, 0, 1) 100%);
    border-right: none;
}

.home-icon {
    font-size: 25px;
    color: white;
}

.marque {
    font-size: 12px;
    padding: 8px;
    color: white;
    background-color: darkred;
    letter-spacing: 2px;
}

.navbar-link {
    color: white;
    text-decoration: none;
}

/* Specific iPhone Responsive Breakpoints */
/* iPhone SE / Smaller Devices */
@media screen and (max-width: 375px) {
    .main-nav ul {
        flex-direction: column;
        height: auto;
    }
    
    .main-nav li {
        font-size: 14px;
        padding: 12px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .home-icon {
        font-size: 20px;
    }
}

/* iPhone 8 / iPhone X / iPhone 11 / iPhone 12 */
@media screen and (min-width: 376px) and (max-width: 812px) {
    .main-nav ul {
        flex-direction: row;
        height: 50px;
    }
    
    .main-nav li {
        font-size: 14px;
        padding: 10px;
    }
    
    .home-icon {
        font-size: 22px;
    }
}

/* iPhone 12 Pro Max / iPhone 13 Pro Max / Larger Devices */
@media screen and (min-width: 813px) and (max-width: 1024px) {
    .main-nav ul {
        height: auto;
    }
    
    .main-nav li {
        font-size: 15px;
        padding: 12px;
    }
    
    .home-icon {
        font-size: 15px;
    }
}

/* Hover effects for desktop */
@media (hover: hover) {
    .main-nav li:hover {
        opacity: 0.9;
        cursor: pointer;
    }
}

/* Ensure tap targets are large enough on mobile */
@media screen and (max-width: 1024px) {
    .main-nav li {
        min-height: 44px; /* Recommended minimum tap target size */
    }
}