body{
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
}



header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #111;
    color: white;
}
header img{
    height: 150px;
    margin-bottom: 15px;
}
header h1{
    font-size: 1.8rem;
    font-weight: 700;
}



nav{
    display: flex;
    gap: 20px;
}
nav a{
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

button{
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    background: #0078ff;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}
button:hover{
    background: #0056b3;
}



@media(max-width: 600px){
    header{
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    nav{
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header .logo{
        font-size: 1.4rem;
    }

    nav a{
        font-size: 0.9rem;
    }
}



footer{
    background: #111;
    color: white;
    padding: 40px 20px;
    text-align: center;
}
footer img{
    height: 10vh;
    margin-bottom: 15px;
}
footer p{
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}



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

.hero-right{
    flex: 1;
    max-width: 50vw;
}

.hero-left{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.hero-image{
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}
.hero-image:hover{
    transform: scale(1.03);
}

.hero-mission{
    line-height: 1.6;
    font-size: 1.1rem;
}

.hero-list{
    margin: 20px 0;
    padding-left: 20px;
    line-height: 1.5;
    font-weight: bold;
}

.hero-btn{
    display: inline-block;
    margin-top: 10px;
    padding: 14px 40px;
    min-width: 220px;
    background: #0077ff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease;

}
.hero-btn:hover{
    background: #005fcc;
    transform: translateY(-2px);

}

.hero-end{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px;
    gap: 10px;
}
.hero-end p{
    margin: 0;
    margin-top: 20px;
    font-style: italic;
}

@media(max-width: 800px){
    .hero{
        flex-direction: column;
    }

    .hero-left{
        max-width: 100%;
    }

    .hero-image{
        width: 80%;
        margin-top: 20px;
    }
}



.carousel{
    padding: 20px;
    background: #f0f0f0;
    text-align: center;
}
.carousel h2{
    margin-bottom: 20px;
}

.carousel-inner-wrapper{
    position: relative;
    margin: 0 20px;
    overflow: hidden;
}

.carousel-track{
    display: flex;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.6s ease;
}
.carousel-track.fade-out{
    opacity: 0;
}
.carousel-track img{
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
    padding: 10px 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.carousel-track img:hover{
    transform: scale(1.05);
    z-index: 2;
}
/* Applies the square grid look strictly to the Example Prints carousel */
[data-mode="multi"] .carousel-track img{
    height: 30vh;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
/* Allows the Printing Devices images to display fully with natural proportions */
[data-mode="single"] .carousel-track img{
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

/* Scales up the single-mode carousel container framework */
#devices-carousel .carousel-inner-wrapper{
    width: 100%;
    max-width: 700px; /* Increase this value (e.g., 550px or 600px) to make the image even larger */
    margin: 0 auto;   /* Keeps the upscaled container perfectly centered in the gray area */
}



/* Buttons */
.carousel-btn{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    border-radius: 4px;
}
.carousel-btn:hover{
    opacity: 1;
}

/* Ensure the wrapper cuts off out-of-bounds slider elements safely */
.carousel-container{
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* For your single-mode carousel layout, make the images adapt to the parent width */
[data-mode="single"] .carousel-track img{
    width: 100%;
    height: auto;
}


.prev{
    left: 10px;
}

.next{
    right: 10px;
}

/* Responsive: fewer images on small screens */
@media(max-width: 800px){
    .carousel-track img{
        width: 50%; /* 2 images per view */
    }
}

@media(max-width: 500px){
    .carousel-track img{
        width: 100%; /* 1 image per view */
    }
}



.lightbox{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.3s ease;
}
.lightbox img{
    width: min(65vw, 65vh);
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255,255,255,0.2);

    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.lightbox.hidden{
    opacity: 0;
    pointer-events: none;
}
.lightbox:not(.hidden) img{
    transform: scale(1);
    opacity: 1;
}



.hero-title{
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(
        90deg,
        #0077ff,
        #00d4ff,
        #0077ff
    );
    background-size: 200%;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    animation: gradientMove 4s ease-in-out infinite alternate;
    margin: 0;
}
.hero-title::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 5px;
    width: 0;
    background: #0077ff;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.hero-title:hover::after{
    width: 40%;
}
.hero-title.subtitle{
    font-size: 2rem;
}

@keyframes gradientMove{
    0%{
        background-position: 0% 50%;
    }
    100%{
        background-position: 100% 50%;
    }
}