/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Transition Overlay Styles */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background-color: #6200ea;
    z-index: 2000;
    transition: left 0.5s ease-out;
}

.slide-in {
    left: 0;
}

/* Navbar Styles */
.navbar {
    background-color: #1f1f1f;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 600;
    margin-left: 30px; /* Increased left margin to avoid cornering */
}

.navbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    margin-right: 30px; /* Increased right margin to avoid cornering */
}

.navbar-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px; /* Added padding for better spacing */
    transition: color 0.3s;
}

.navbar-link:hover {
    color: #6200ea;
}


/* Container Styles */
.container {
    text-align: center;
    width: 80%;
    max-width: 800px;
    margin-top: 100px; /* Space for the navbar */
    padding: 20px 0;
    min-height: calc(100vh - 130px); /* Full height minus navbar and some padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
}

/* Heading Styles */
h1 {
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 600;
}

/* Project List Styles */
.project-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
}

.project-item {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the content horizontally */
    margin-bottom: 20px;
    background-color: #1f1f1f;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center; /* Center text inside project-item */
    transition: transform 0.2s;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    overflow: hidden; /* Hide overflowing content */
    word-wrap: break-word; /* Break long words to prevent overflow */
}

.project-image {
    width: 100px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
    margin-right: 20px; /* Space between image and content */
    border-radius: 8px;
    flex-shrink: 0;
}

.project-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-item:hover {
    transform: translateY(-5px);
}

/* Ensure text content doesn't overflow */
.project-content h2,
.project-content p,
.project-content a {
    margin: 10px 0; /* Add spacing between elements */
    word-wrap: break-word; /* Break long words to prevent overflow */
    overflow-wrap: break-word; /* Ensure long words are broken */
}

/* Button Styles */
.animated-button {
    background-color: #6200ea;
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.animated-button:hover {
    background-color: #3700b3;
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.animated-button:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Footer Styles */
footer {
    align-items: center;
    justify-content: center; /* Center the content horizontally */
    text-align: center;
    padding: 10px 30px;
    width: 100%;
    position: relative; /* Ensure it does not cause horizontal scrolling */
    margin-top: 20px;
    overflow-x: hidden; /* Prevent any horizontal scrolling */
    word-wrap: break-word; /* Break long words to prevent overflow */
}

/* Footer Text Styles */
footer h2,
footer p {
    margin: 10px 0; /* Add spacing between elements */
}

/* Footer Bar Styles */
.footer-bar {
    background-color: #1f1f1f;
    color: #ffffff;
    text-align: center;
    padding: 10px 20px;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}


html {
    scroll-behavior: smooth;
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's above all other content */
    transition: opacity 0.5s ease-out;
}

/* Spinner Styles */
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #6200ea;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

  .carousel-wrapper {
    --width: 100px;
    --gap: 0;
    --num-items: 10;
    --ani-offset: 
    calc(var(--width) * 
    var(--num-items) * -1);
    --ani-speed: 10s;
    width: 400px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    margin-top: 110px;
    z-index: 5;
    margin-bottom: -100px;
  }

  .carousel-wrapper::before,
  .carousel-wrapper::after {
    content: '';
    position: absolute;
    width: 20%;
    height: 100%;
    z-index: 1;
    top: 0;
  }
  .carousel-wrapper::before {
    left: 0;
    background-image: 
    linear-gradient(to 
    right, var(--bg-clr) 
    0%, transparent 50%);
  }

  .carousel-wrapper::after {
    right: 0;
    background-image: 
    linear-gradient(to left,
     var(--bg-clr) 0%, 
     transparent 50%);
  }

.carousel {
    display: flex;
    align-items: center;
    animation: slide var(--ani-speed) linear infinite;
}

.item {
    flex: 1 0 var(--width);
    text-align: center;
    padding: 1rem;
}

.item>img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@keyframes slide {
    100% {
        transform: translateX(var(--ani-offset));
    }
}
