@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Poppins, Arial, sans-serif;
    background-color: grey;
    color: #eee;
    
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100vw; /* Ensure the viewport width doesn't exceed 100% */
    height: 100vh; /* Ensure the viewport height is fully covered */
}

body.home-page {
    background-image: url('image/index_image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Loader styles */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: fixed;
    width: 100%;
    background-color: white;
    z-index: 9999;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.progress-bar {
    width: 80%;
    max-width: 400px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background-color: #FF5C35;
    transition: width 0.2s;
}

.loader-text {
    font-size: 18px;
    color: #333;
}

/* Hide loader by fading out */
body.loaded .loader-container {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded .loader-container {
    display: none;
}

nav {
    position: fixed;
    height: 80px;
    width: 100%; /* Ensure it spans the full width */
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
    color: white; /* Text color */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1020; /* Ensure it’s on top */
    box-sizing: border-box;
}

/* Container for links */
.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 1020;
}

/* Navbar links */
nav a {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white; /* Link text color */
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Link hover effect */
nav a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light semi-transparent hover effect */
}

/* Home link alignment */
nav .home-link {
    margin-right: auto;
    font-size: 54px; /* Font size for the home link */
    font-weight: bold; /* Make the home link bold */
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Other links styling */
nav a:not(.home-link) {
    font-size: 27px; /* Font size for other links */
    font-weight: 500;
}

/* SVG icons */
nav svg {
    fill: white; /* Ensure SVG icons are visible */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}

/* Hidden checkbox for sidebar */
#sidebar-active {
    display: none;
}

/* Sidebar buttons (hidden by default) */
.open-sidebar-button, .close-sidebar-button {
    display: none;
}

@media(max-width: 1300px) {
    nav .home-link {
        font-size: 36px; /* Font size for the home link */
    }

}

/* Responsive styles for smaller screens */
@media(max-width: 1075px) {
    .links-container {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 1020;
        width: 300px;
        background-color: black; /* Black background for dropdown menu */
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.75s ease-out;
    }
    nav a {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
        color: white; /* White text color in dropdown */
    }
    .open-sidebar-button, .close-sidebar-button {
        padding: 20px;
        display: block;
    }
    #sidebar-active:checked ~ .links-container {
        right: 0;
    }
    #sidebar-active:checked ~ #overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1010;
    }
    nav .home-link {
        font-size: 36px; /* Font size for the home link */
    }
}

section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    height: 100vh;
    color: white;
    text-align: center; /* Center text */
}

section h1 {
    font-size: 60px;
    margin: 0;
}

@media (max-width: 800px) {
    section h1 {
        font-size: 50px;
    }
}

section h2 {
    max-width: 600px; /* Limit the width of the text */
    margin: 20px 0;
    line-height: 1.5; /* Adjust line height if needed */
    display: flex;
    flex-direction: column;
    align-items: center;
}

section h2 span {
    opacity: 0; /* Hide initially */
    animation: fadeIn 1s forwards; /* Animation properties */
}

section h2 span:nth-of-type(1) {
    animation-delay: 0.5s; /* Delay for the first word */
}

section h2 span:nth-of-type(2) {
    animation-delay: 1s; /* Delay for the second word */
}

section h2 span:nth-of-type(3) {
    animation-delay: 1.5s; /* Delay for the third word */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

section button {
    padding: 10px 20px;
    font-size: 18px;
    color: white;
    background-color: #FF5C35;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    margin-top: 160px; /* Adjust this value to increase/decrease the gap */
}

section button:hover {
    background-color: #ff3e10;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 10px;
    font-size: 14px;
    color: white;
    background-color: transparent; /* No background, to blend with the page */
    z-index: 1000; /* Make sure it's always on top */
}

.attribution {
    position: fixed;
    bottom: 0;
    right: 0;
    font-size: 14px;
    background-color: transparent; /* Keep the background transparent */
    z-index: 1000;
    padding: 10px;         /* Add 10px padding */
}

.attribution a {
    color: white;          /* Make the link text color white */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.attribution a:visited {
    color: white;          /* Ensure the visited link color remains white */
}

.attribution a:hover {
    color: #d3d3d3;        /* Change text color to light grey on hover */
}

.attribution a:active {
    color: white;          /* Keep the text white when the link is active */
}

@media (max-width: 960px) {
    
    footer {
        font-size: 8px;

    }

    /* Move attribution credit to the bottom right */
    .attribution {
        position: fixed;
        bottom: 0;
        right: 0 !important; /* Force right alignment */
        left: auto !important; /* Override left property */
        transform: none !important; /* Remove translateX transformation */
        font-size: 8px;
        background-color: transparent; /* Keep the background transparent */
        z-index: 1000;
    }
}

#contact-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure it covers the full viewport height */
    width: 100vw; /* Cover the entire viewport width */
    overflow: hidden; /* Prevent any extra scrolling */
    background: url('image/contact_image.jpg') no-repeat center center fixed;
    background-attachment: fixed; /* Fix the image to prevent shifting */
    background-size: cover;
}

#contact-page .form-box {
    position: relative;
    width: 400px;
    height: auto;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#contact-page h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
}

#contact-page .inputbox {
    position: relative;
    margin: 20px 0;
    width: 310px;
    border-bottom: 2px solid #fff;
}

#contact-page .inputbox label {
    position: absolute;
    top: 10px;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1em;
    pointer-events: none;
    transition: 0.5s;
}

#contact-page input:focus ~ label,
#contact-page input:valid ~ label,
#contact-page textarea:focus ~ label,
#contact-page textarea:valid ~ label {
    top: -5px;
}



#contact-page .inputbox input,
#contact-page .inputbox textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 0 35px 0 5px;
    color: #fff;
}

/* Adjusting the gap between the label and the message textarea */
#contact-page .inputbox textarea#message {
    font-size: 1.2em; /* Increase the text size */
    padding: 10px 35px 10px 5px; /* Adjust padding to ensure enough space */
    resize: vertical; /* Restrict resizing to vertical only */
    line-height: 1.4em; /* Adjust line height for better readability */
}

/* Creating space between the label and the message textarea */
#contact-page .inputbox textarea#message ~ label {
    top: 0px; /* Adjust label positioning */
    margin-bottom: 5px; /* Add space between the label and textarea */
}

#contact-page .inputbox ion-icon {
    position: absolute;
    right: 8px;
    color: #fff;
    font-size: 1.2em;
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust to true center */
}

#contact-page .inputbox .message-icon {
    top: 0px; /* Aligns the icon with the top */
    right: 5px; /* Adjust as needed */
    transform: translateY(0); /* Removes centering */
}



#contact-page button {
    width: 100%;
    height: 40px;
    border-radius: 40px;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}

#contact-page .submitbutton:hover {
    background: rgb(236, 234, 234);
}

#contact-page .submitbutton:active {
    transform: scale(0.98);
}


/* Scope about page styles with .about-page class to avoid conflicts */
.about-page {
    background-image: url('image/about_image.jpg'); /* Updated background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.about-page .about-wrapper {
    display: flex;
    height: 100%; /* Full height of the viewport */
    width: 100%; /* Full width of the viewport */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center horizontally */
}

.about-page .about-img,
.about-page .about-text {
    flex: 1; /* Each takes up 50% of the width */
    /*padding: 10px;  Add some padding for spacing */
    margin-top: 5%;
}

.about-page .about-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-page .about-img img {
    width: 60%;
    height: auto;
    max-height: 100vh; /* Restrict the image height to 100% of the viewport height */
    object-fit: contain; /* Ensure the image fits within the container without excessive cropping */
    border-radius: 20px; /* Optional: Add some rounded corners to the image */
}

.about-page .about-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text vertically */
    text-align: left; /* Align text to the left */
    margin-right: 3%;
}

.about-page .about-text h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.about-page .about-text p {
    font-size: 18px;
    line-height: 1.6;
}

/* Increase image size screen percentage + decrease text size for screens smaller than 960px */
@media (max-width: 960px) {
    .about-page .about-img img {
        width: 90%;

    }
    .about-page .about-text h1 {
        font-size: 20px;
    }
    .about-page .about-text p {
        font-size: 14px;
    }

}

/* Stack image and text vertically on mobile */
@media (max-width: 680px) {
    .about-page .about-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .about-page .about-img,
    .about-page .about-text {
        flex: none;
        width: 90%;
        margin-top: 0;
    }

    .about-text {
        width: 70% !important;
    }
    
    .about-page .about-img {
        margin-bottom: 20px;
    }
    
    .about-page .about-img img {
        width: 70%;
        max-width: 300px;
    }
    
    .about-page .about-text {
        margin-right: 0;
        padding: 0 20px;

        text-align: center;
        margin-bottom: 80px;

    }
    
    .about-page .about-text h1 {
        font-size: 24px;
    }
    
    .about-page .about-text p {
        font-size: 16px;
    }
}


/* Existing styles */
svg {
    width: 25px;
}

header {
    width: 1200px;
    max-width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    grid-template-rows: 50px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
}

header .logo {
    font-weight: bold;
}

header .menu {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: 500;
}

/* CSS Slider */
.slider {
    height: 100vh; /* Ensure the slider takes the full height of the viewport */
    margin: 0; /* Ensure no margin at the top or bottom */
    position: relative;
    display: flex; /* Use flexbox for easier alignment */
    flex-direction: column; /* Ensure children stack vertically */
}

.slider .list .item {
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider .list .item::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(
        to top, #000 20%, transparent
    );
}

.slider .list .item .content {
    position: absolute;
    left: 10%;
    top: 20%;
    width: 500px;
    max-width: 80%;
    z-index: 1;
    /* Subtle text enhancement without visible box */
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 960px) {
    .slider .list .item .content {
        top: 10% !important;
    }

}

.slider .list .item .content p:nth-child(1) {
    text-transform: uppercase;
    letter-spacing: 10px;
    font-weight: 500;
    opacity: 0.95;
}

.slider .list .item .content h2 {
    font-size: 100px;
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.slider .list .item .content p:nth-child(3) {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 450px;
}

.slider .list .item.active {
    opacity: 1;
    z-index: 10;
}

@keyframes showContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.slider .list .item.active p:nth-child(1),
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(3) {
    transform: translateY(30px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s .7s ease-in-out 1 forwards;
}

.slider .list .item.active h2 {
    animation-delay: 0.5s;
}

.slider .list .item.active p:nth-child(3) {
    animation-duration: 0.7s;
}

.arrows {
    display: none; /* Arrows replaced by dot indicators */
}

.arrows button {
    background-color: #eee5;
    border: none;
    font-family: monospace;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    font-size: x-large;
    color: #eee;
    transition: .5s;
}

.arrows button:hover {
    background-color: #eee;
    color: black;
}

/* Dot Indicators */
.dots {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.dot {
    width: 16px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background-color: #fff;
    border-color: #FF5C35;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 92, 53, 0.6);
}

/* Portfolio Page Styles */

/* Reduce h2 text size for screens smaller than 960px */
@media (max-width: 960px) {
    .slider .content h2 {
        font-size: 50%; /* Reduce h2 text to half its size */
    }
    
    /* Move image credit to the bottom right */
    .image-credit {
        position: fixed;
        bottom: 0;
        right: 0 !important; /* Force right alignment */
        left: auto !important; /* Override left property */
        transform: none !important; /* Remove translateX transformation */
        font-size: 10px !important; 
        background-color: transparent; /* Keep the background transparent */
        z-index: 1000;
        margin: 0px;
        padding-right: 10px;
    }
}

/* Hide button arrows for screens smaller than 680px */
@media (max-width: 680px) {
    .arrows {
        display: none; /* Hide button arrows */
    }
    
    .dots {
        top: auto;
        /* Thumbnails: bottom 10px + height 250px = 260px, plus 20px gap */
        bottom: calc(10px + 250px + 20px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 14px;
    }
    
    .dot {
        width: 18px;
        height: 18px;
    }
    
    .dot.active {
        transform: scale(1.2);
    }
}

/* Adjust dots for screens where thumbnail moves to 10% from bottom */
@media (max-width: 960px) and (min-width: 681px) {
    .dots {
        /* Thumbnails at 10% + height 250px + gap */
        bottom: calc(10% + 250px + 20px);
    }
}

@media (max-width: 680px) and (max-width: 960px) {
    .dots {
        /* Thumbnails at 10% from bottom + height 250px + gap */
        bottom: calc(10% + 250px + 20px);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .dots {
        gap: 10px;
    }
    
    .dot {
        width: 14px;
        height: 14px;
    }
}

.thumbnail {
    position: absolute;
    bottom: 10px;
    z-index: 11;
    display: flex;
    gap: 10px;
    width: 100%;
    height: 250px;
    padding: 0 50px;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: center;
    scroll-behavior: smooth;
}
@media (max-width: 960px) {
    .thumbnail {
        bottom: 10% !important;
    }

}
.thumbnail::-webkit-scrollbar {
    width: 0;
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    filter: brightness(.5);
    transition: .5s;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.thumbnail .item.active {
    filter: brightness(1);
    box-shadow: 0 0 10px rgba(255, 92, 53, 0.6);
}

.thumbnail .item .content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 30px 10px 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
}

@media screen and (max-width: 678px) {
    .thumbnail {
        justify-content: start;
    }

    .slider .list .item .content h2 {
        font-size: 60px;
    }

    .arrows {
        top: 10%;
    }
}


.image-credit {
    position: fixed;
    bottom: 0;
    right: 0;
    font-size: 14px;
    background-color: transparent; /* Keep the background transparent */
    z-index: 1000;
    margin: 0px;
    padding-right: 10px;
}

.image-credit-text {
    margin: 0px 0px 0px;
}