@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html,
body {
    height: 100%;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    width: 1000px;
    max-width: 100vw;
}

/* NAVBAR */
nav {
    background: #fff;
    border-radius: 9px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 90%;
    max-width: 700px;
}

.nav-inner {
    position: relative;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav ul li {
    margin: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

}

nav ul li a {
    text-decoration: none;
    color: inherit;
    font-size: 2rem;
    position: relative;
    padding: 0 10px;
}

/* Animated underline */
nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 3px;
    background: #2192ff;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    pointer-events: none;
}

/* On hover and active */
nav ul li a:hover::after {
    transform: scaleX(1);
}

nav ul li.active a::after {
    transform: scaleX(1);
}



/* IMAGE SLIDER*/
.background-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;

}

.background-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 20s infinite;
    transition: opacity 1s ease-in-out;
}

.background-slider .slide:nth-child(1) {
    animation-delay: 0s;
}

.background-slider .slide:nth-child(2) {
    animation-delay: 5s;
}

.background-slider .slide:nth-child(3) {
    animation-delay: 10s;
}

.background-slider .slide:nth-child(4) {
    animation-delay: 15s;
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* HOME WELCOME SECTION */
.welcome-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    /* background-color: rgba(0, 0, 0, 0.4); */
    padding: 40px;
    border-radius: 10px;
    text-shadow: -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000;
}

.welcome-section .logo {
    width: 900px;
    max-width: 100vw;
    margin-bottom: 20px;
}

.welcome-section h1 {
    font-size: 5rem;
    font-weight: 500;
    margin: 0;
    max-width: 90vw;
}

/* FOOTER */
.footer {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px 40px;
    text-align: center;
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4); */
    font-size: 2rem;
    color: #ffffff;
    /* background-color: rgba(255, 255, 255); */
    border-radius: 10px;
    z-index: 10;
    text-shadow: -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000;
}


.footer h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer .icon {
    margin-right: 10px;
    margin-bottom: 5px;
    font-size: 1.8rem;
    vertical-align: middle;
    color: inherit;
}

.footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #2192ff;
}

.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    z-index: 100;
    pointer-events: none;
}

.footer-bar p {
    margin: 0;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
    pointer-events: auto;
}

.footer-right .dev-name {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.footer-right .dev-name:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #2192ff;
    transition: width 0.3s ease;
}

.footer-right .dev-name:hover {
    color: #2192ff;
}

.footer-right .dev-name:hover::after {
    width: 100%;
}

/* MOBILE READABILITY*/
@media (max-width: 768px) {

    body {
        /* padding-bottom: 60px; */
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .container {
        flex: 1;
        padding-bottom:70px;
    }

    nav {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        padding: 15px 20px;
        max-width: none;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 5px 10px;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 0 5px;
    }

    .welcome-section {
        padding: 10px;
        position: fixed;
    }

    .welcome-section .logo {
        width: 120%;
        max-width: 120%;

    }

    .welcome-section h1 {
        font-size: 1.5rem;
    }

    .footer {
        font-size: 1rem;
        padding: 30px 0;
        /* font-weight:bold; */
    }

    .footer h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .footer .icon {
        font-size: 1.5rem;
    }

    .footer-bar {
        /* flex-direction: column;
        text-align: center;
        gap: 5px;
        position: static;
        background: #000000;
        margin-top: auto;
        background-color:transparent ;
        padding:10px 15px; */
        position: fixed;
        /* flex-direction:column; */
        bottom: 0;
        left: 0;
        width: 100%;
        display:flex;
        background-color: #000000;
        /* or your preferred background */
        padding: 10px 15px;
        text-align: center;
        z-index: 1000;
        /* ensure it's on top */
        flex-direction: row;
        /* or column if you want column layout */
        gap: 5px;
    }


    .footer-bar p {
        font-size: 0.9rem;
    }

    .product-content {
        flex-direction: column;
        text-align: center;
    }

    .product-description {
        padding-left: 0;
    }
}

.menu-toggle {
    display: none;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 20;
    position: absolute;
    right: 20px;
    top: 10px;
}

/* MODEL CARD DESIGN */
.products {
    margin-top: 150px;
    padding: 40px 20px;
}

.product-model {
    margin-bottom: 80px;
    background-color: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.product-model:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-model .model-name {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: #000000;
}

.product-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.product-image {
    width: 400px;
    max-width: 100%;
    border-radius: 10px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); */
}

.product-description {
    flex: 1;
    list-style-type: disc;
    padding-left: 20px;
    font-size: 1.2rem;
    color: #000000;
}