/* Home Section */
#home {
    background-color: var(--home-bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    margin-top: 0;
}

#home h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-primary);
}

#home h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

#home img {
    max-width: 400px;
    border-radius: 90px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
    #home img {
        max-width: 90%;
        border-radius: 50px;
        margin-bottom: 20px;
    }
}

.chevron {
    font-size: 2rem;
    color: var(--link-color);
}

#chevron-bounce {
    position: relative;
    animation: bounce 2s infinite;
}


@keyframes bounce {
    0%   { top: 0; }
    50%  { top: 20px; }
    100% { top: 0; }
  }

.blinking-cursor {
    font-weight: bold;
    font-size: inherit;
    /* Adjust the margin if needed */
    margin-left: 2px;
    display: inline-block;
    /* The animation effect */
    animation: blink 1s infinite;
  }
  
  @keyframes blink {
    0%, 50% {
      opacity: 1;
    }
    50.1%, 100% {
      opacity: 0;
    }
  }

/* End of Home Section */
/* About Section */

#about .card {
    background-color: var(--body-bg);
    color: var(--text-primary);
    border: none;
    min-height: 100vh;
}

/* About Images */

#about-images img {
    width: auto;
    height: 600px;
    border-radius: 25px;
}

@media screen and (max-width: 768px) {
    #about-images img {
        width: 75%;
        height: auto;
    }
}

#about-images .img-1 {
    top: 50px;
    left: 0;
    z-index: 1;
    object-fit: cover;
}

/* End of About Section */
/* Skills section */
#skills .card {
    background-color: var(--body-bg);
    color: var(--text-primary);
    border: none;
    min-height: 70vh; /* 100 for 3 cards */
}

#skills #graduate-card {
    background-color: var(--card-secondary-bg);
    border-radius: 15px;
    height: auto;
}

#skills #graduate-card-content {
    min-height: 30vh;
    border-radius: 10px;
}

#skills #graduate-card-content li {
    background-color: var(--body-bg);
    padding-top: 5px;
    padding-bottom: 5px;
    border: none;
}
/* End of Skills section */
/* Projects Section */
/* General container settings */
#projects .carousel-container {
    width: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

#projects .carousel-viewport {
    overflow: hidden;
    width: 100%;
}

#projects .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: calc(350px * 5); /* Adjust the width based on number of cards (5 cards * 350px width) */
}

/* Each card styling */
#projects .card {
    background-color: var(--card-secondary-bg);
    color: var(--text-primary);
    border: none;
    height: 450px;
    width: 350px; /* Fix card width to 350px */
    border-radius: 15px;
    margin: 0 15px;
}

#projects .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

#projects .card button {
    background-color: var(--button-bg) !important;
    color: var(--bg-primary) !important;
}

/* Chevron controls */
#projects .chevron {
    cursor: pointer;
    font-size: 2rem;
}

#projects .carousel-control-left, .carousel-control-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    cursor: pointer;
}

#projects .carousel-control-left {
    left: 0;
}

#projects .carousel-control-right {
    right: 0;
}

#projects .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    width: max-content; /* Let JS override this */
}

#projects .card {
    flex: 0 0 auto; /* Prevent shrinking */
    margin: 0 15px;
}

#projects .carousel-container:hover .chevron {
    opacity: 0.7;
    transition: opacity 0.3s;
}

/* End of Projects Section */
/* Contact Section */
#contact img {
    width: 400px;
    height: 500px;
    border-radius: 10%;
}

#contact .g-recaptcha {
    margin-top: 15px;
}

@media screen and (max-width: 768px) {
    #contact img {
        padding-top: 20px;
        width: 75%;
        height: auto;
    }
}

#successModal {
    color: black;
}
/* End of Contact Section */
/* Footer Section */
#footer {
    background-color: var(--home-bg);
    color: var(--text-primary);
    height: auto; /* Ensure the height adjusts to the content */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: flex-start; /* Align content at the top */
    padding: 20px; /* Add some padding for spacing */
}

#footer .row {
    margin-bottom: 20px; /* Add spacing between rows */
}

#footer a {
    color: var(--link-color);
}

#footer ul {
    list-style-type: none;
    padding: 0; /* Remove default padding */
}

#footer .fs-4 {
    font-size: 1.5rem;
}

#footer .btn-floating {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s;
}

#footer .btn-floating:hover {
    background-color: #e91e63;
    transform: scale(1.1);
}

#footer #map {
    height: 300px;
    width: 300px;
    border-radius: 10%;
}

#footer #map a {
    color: gray;
}

#footer #issue-link {
    text-decoration: underline;
}

#footer #issue-link:hover {
    color: #dcdcdc;
}