@import url('https://fonts.cdnfonts.com/css/ica-rubrik-black');
@import url('https://fonts.cdnfonts.com/css/beyonders');

:root {
    --width: 160px; /* Default width for desktop */
    --height: 200px; /* Default height for desktop */
    --quantity: 10; /* Number of items */
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Ensure body and HTML take full height */
html, body {
    margin: 0;
    padding: 10px;
    background-color: #e5e5e5;
    display: grid;
    flex-direction: row;
    min-height: 50vh;
}

/* HEADER: Top slider */
header.slider {
    width: 100%;
    height: var(--height);
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
}

/* FOOTER: Bottom slider */
footer.slider {
    width: 100%;
    height: var(--height);
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
    margin-top: 600px; /* Pushes footer to the bottom */
}
/* FOOTER: Social Links */
footer.social_list {
    width: 100%;
    

}
social_links

/* Main content section (Centers content) */
.content {
    text-align: center;
    padding: 10px 10px;
    flex-grow: 1;
    margin: 0;
}

/* Title text */
.content h1 {
    font-family: 'Beyonders';
    font-size: 6vh;
    color: #25283B;
    position: relative;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Author details */
.content .author {
    font-family: 'Beyonders';
    font-size: 04vh;
    color: #25283B;
    position: top;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.content .author h2 {
    font-size: 8rem;
    margin-top: 01px;
    border-bottom-style: dotted;
}

.content .author p {
    font-size: 4rem;
    color: #666;
}

/* Background image in content 
.model {
    background-image: url(images/suhbtillsvg.svg);
    width: 60%;
    height: 50vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    /*z-index: 1;}*/


.model {
    background-image: url(images/suhbtillsvg.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    width: 30%;
    height: 40vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Common slider styles */
.slider .list {
    display: flex;
    border: 1px solid black;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
    
}

/* Top slider animation */
.slider-top .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc((10s / var(--quantity)) * (var(--position) - 1) - 10s) !important;
}

/* Bottom slider reverse animation */
.slider-bottom .list .item {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: calc(var(--width) * -1);
    animation: reversePlay 10s linear infinite;
    transition: filter 0.5s;
    filter: grayscale(1);
    animation-delay: calc((10s / var(--quantity)) * (var(--position) - 1) - 10s) !important;
}
.slider .list .item img{
    width: 100%;
}


/* Animations */
@keyframes autoRun {
    from {
        left: 100%;
    }
    to {
        left: calc(var(--width) * -1);
    }
}

@keyframes reversePlay {
    from {
        left: calc(var(--width) * -1);
    }
    to {
        left: 100%;
    }
}

/* Pause animation on hover */
.slider:hover .item {
    animation-play-state: paused !important;
    filter: grayscale(1);
}

.slider .item:hover {
    filter: grayscale(0);
}

/* RESPONSIVE DESIGN */


/* Tablet (768px and below) */
@media screen and (max-width: 1024px) {
    :root {
        --width: 160px; /* Smaller images */
        --height: 200px;
        
    }
    
    .content h1 {
        font-size: 6rem;
    }
    
    .content .author h2 {
        font-size: 2.5rem;
    }
    
    .content .author p {
        font-size: 1rem;
    }
}

/* Mobile (767px and below) */
@media screen and (max-width: 767px) {
    :root {
        --width: 100px;
        --height: 120px;
    }
    
    header.slider, footer.slider {
        height: var(--height);
    }
    
    .content {
        padding: 30px 15px;
    }
    
    .content h1 {
        font-size: 4rem;
    }
    
    .content .author h2 {
        font-size: 2rem;
    }
    
    .content .author p {
        font-size: 0.9rem;
    }
    
    .model {
        height: 40vh;
    }
}

/* Very Small Screens (480px and below) */
@media screen and (max-width: 480px) {
    :root {
        --width: 80px;
        --height: 100px;
    }
    
    .content {
        padding: 20px 10px;
    }
    
    .content h1 {
        font-size: 3rem;
    }
    
    .content .author h2 {
        font-size: 1.8rem;
    }
    
    .content .author p {
        font-size: 0.8rem;
    }
    
    .model {
        height: 35vh;
    }
}