/* CSS */
body {
    /*background-color: rgb(16, 21, 46) !important;*/
    margin: 0;
    height: 100vh;
    background: linear-gradient(-45deg, #10152e, #001f3f, #003f3f, #013220);
    background-size: 5000% 5000%;
    animation: gradient 30s ease infinite;
    font-family: "Inter", serif !important;
}

/* Gradient Animation */

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.nameTitle {
    font-size: 50px;
}

a {
    text-decoration: none !important;
    color: inherit !important;
}

a:visited,
a:hover,
a:active {
    text-decoration: none !important;
    color: inherit !important;
}

.ctn-main {
    margin-top: 150px;
}



.fixed {
    top: 0;
    /* Initial top position */
    position: sticky;
    /* Start as relative to allow transition to fixed */
    overflow-y: auto;
    color: white;
    transition: top 0.5s ease, position 0.5s ease;
}

.fixed.active {
    position: fixed;
    overflow-y: auto;
    width: 38% !important;
    height: 100vh;
    color: white;
    top: 150px;
}

.page-title {
    color: white;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #4CAF50;
    margin: 0.5rem auto;
}


.offset {
    /*margin-left: 50%;*/
    color: white;
}

.offset.active {
    margin-left: 50%;
    color: white;
}

        /* Sidebar styling */
        .sidebar {
            position: sticky;
            top: 120px;
            color: white;
        }

        .sidebar h1 {
            color: #4CAF50;
        }

        .sidebar .nav-link {
            color: #ccc !important;
            padding: 0.5rem 0;
            border: none;
        }

        .sidebar .nav-link:hover {
            color: white !important;
        }

               /* Enhanced Bootstrap card styling for projects */
        .project-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.project-img-container {
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px; /* Add padding for logos that need space */
}

.project-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Use 'contain' instead of 'cover' for logos */
  transition: transform 0.3s ease;
  filter: brightness(1.1); /* Brighten logos slightly */
}

.project-card:hover .project-img-container img {
  transform: scale(1.05);
}

        .project-title {
            color: white;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .project-description {
            color: rgb(200, 200, 200);
            line-height: 1.5;
        }

/*RESPONSIVE*/
@media (max-width: 768px) {
    .fixed {
        position: relative;
        width: 100vw;
        height: auto;
    }

    .offset {
        margin-left: 0;
        width: 100vw;
    }
    .project-img-container {
    height: 180px; /* Slightly taller on mobile */
  }
  
  /* Make non-logo images bigger on mobile */
  .project-img-container img:not([src*="logo"]):not([src*="dpoysalaslogo"]) {
    object-fit: cover;
    transform: scale(1.1); /* Slightly larger for better visibility */
  }
  
  /* Keep logo handling the same */
  .project-img-container img[src*="logo"],
  .project-img-container img[src*="dpoysalaslogo"] {
    object-fit: contain;
    padding: 10px;
  }
}

.ctn-delay {
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

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

/*NAVBAR SECTION*/

.navbar-custom {
    position: fixed !important;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 15px;
    background-color: rgba(16, 21, 46, 0.8);
    width: 60%;
    /* Make it wider by default */
    max-width: 800px;
    /* Set a max-width for larger screens */
    z-index: 500;
    transition: background-color 0.3s ease, width 0.3s ease;
    padding: 10px 45px !important;
}

.navbar-custom .nav-link {
    color: rgb(238, 227, 227) !important;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.navbar-custom .nav-link:hover {
    background-color: rgba(19, 204, 201, 0.2);
}

.navbar-transparent {
    background-color: transparent;
}


.navbar-nav a {
    font-weight: 800;
    font-size: 20px;
}

.navbar-toggler {
    border-color: white !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: white !important;
}

.logo {
    width: 80px;
    height: 80px;
}

@media (max-width: 768px) {
    .navbar-custom {
        width: 60% !important;
        /* Make navbar take up most of the screen */
        padding: 10px !important;
    }

    .navbar-nav {
        gap: 10px !important;
        /* Reduce gap between nav items */
        background-color: rgba(16, 21, 46);
    }

    .navbar-brand {
        margin-right: auto;
        /* Push brand to the left */
    }
}

/*Social Media Links for Fixed Div*/

.footer-links {
    /*text-align: center;*/
    margin-top: 10rem !important;
}

.footer-links a {
    margin: 0 10px;
    text-decoration: none;
}

.footer-links img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.footer-links img:hover {
    transform: scale(1.1);
}


/*Social Media Links for Name Presentation*/

.social-links {
    /*text-align: center;*/
    margin-top: 1rem !important;
}

.social-links a {
    margin: 0 10px;
    text-decoration: none;
}

.social-links img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}

.toc {
    margin-top: 5rem !important;
}

.toc a {
    color: grey !important;
    text-decoration: none;
    display: block;
    padding: 0.5em;
    transition: transform 0.1 ease;
}

.toc a .symb {
    font-size: 1.5em;
    display: inline-block;
    transition: transform 0.2s ease;
    margin-right: 10px;
}

.toc a.active .symb {
    transform: scale(1.5);
}

.toc a.active {
    color: white !important;
    font-weight: bold;
    border-radius: 5px;
    transform: translate(20px, 0px);
    font-size: large;
}

/* About text */
.about-text {
    color: rgb(220, 220, 220);
    line-height: 1.7;
}

.about-text strong {
    color: #4CAF50;
    font-weight: 600 !important;
}

/* Experience cards with Bootstrap */
.experience-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-left: 4px solid #4CAF50 !important;
    color: white;
    border-radius: 10px !important;
}

.experience-period {
    color: #4CAF50 !important;
    font-weight: 600;
    
}

.card-text {
    line-height: 1.6;
}

.skill-tag {
    background: rgba(76, 175, 80, 0.2) !important;
    color: #4CAF50 !important;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
}

/* Section titles */
.section-title {
    color: white;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #4CAF50;
    margin: 0.5rem auto;
}

.exp-text {
    color: grey;
}

.pjt-section {
    display: flex;
    align-items: center;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pjt-section:hover {
    cursor: pointer;
    background-color: rgba(127, 127, 127, 0.256);
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

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

.exp-text {
    font-size: 1rem;
    color: rgb(213, 211, 211);
}

.project-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;

}

a.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.project-link:hover {
    background-color: rgba(154, 154, 154, 0.847);
}

.ctn-picture {
    position: relative;
    z-index: 1;
    padding: 80px;
    width: 100%;
    color: white;
    background-color: rgba(66, 16, 52, 0.333);
    height: 100vh;
    width: 100% !important;
    animation: fadeInZoom 2s ease-in-out forwards;
}

.pfp-name {
    margin-left: 300px !important;
}

@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: scale(0.5);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
}

.ctn-picture .pfp-middle img {
    margin-right: 150px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 50%;
    border: rgb(255, 255, 255);
}

.ctn-picture .pfp-middle img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}





.ctn-picture h1,
.ctn-picture h3,
.ctn-picture a {
    position: relative;
    animation: slideIn 2s ease-in-out forwards;
}

@keyframes slideIn {
    0% {
        left: -100%;
        opacity: 0;
    }

    100% {
        left: 0;
        opacity: 1;
    }
}

.top-right {
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
    text-align: right;
    z-index: 2;
}

.middle-bottom {
    position: absolute;
    bottom: 0;
    left: 49%;
    transform: translateX(-50%);
    margin: 10px;
    text-align: center;
    cursor: pointer;
}


.flag-icon {
    width: 80px;
    height: 80px;
    margin-right: 25px;
}

.social-links .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    /* Green background */
    color: white;
    /* White text */
    text-align: center;
    text-decoration: none;
    /* No underline */
    border-radius: 5px;
    /* Rounded corners */
    font-size: 16px;
    /* Adjust font size */
}

.social-links .button:hover {
    background-color: #45a049;
    /* Darker green on hover */
}

.footer-links .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    /* Green background */
    color: white;
    /* White text */
    text-align: center;
    text-decoration: none;
    /* No underline */
    border-radius: 5px;
    /* Rounded corners */
    font-size: 16px;
    /* Adjust font size */
}

.footer-links .button:hover {
    background-color: #45a049;
    /* Darker green on hover */
}

.language-button {
    appearance: none;
    background-color: #FFFFFF;
    border-radius: 1em;
    border-style: none;
    box-shadow: #ADCFFF 0 -12px 6px inset;
    box-sizing: border-box;
    color: #000000;
    cursor: pointer;
    display: inline-block;
    font-family: -apple-system, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.24px;
    margin: 0;
    outline: none;
    padding: 0.5rem 1rem;
    quotes: auto;
    text-align: center;
    text-decoration: none;
    transition: all .15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.language-button:hover {
    background-color: #29fbff;
    box-shadow: #14d8ff 0 -6px 8px inset;
    transform: scale(1.125);
}

.language-button:active {
    transform: scale(1.025);
}

.language-button:disabled {
    background-color: #c6c6c698;
    box-shadow: #9c9c9c76 0 -6px 8px inset;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 40px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.toggle-option.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.toggle-option img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
}

.option-card {
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.option-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.demo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    margin-bottom: 20px;
}

/* Top-left positioning */
/* Top-left language card */
/* Positioning language card in top-right */
#languageCard {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    border-radius: 12px;
    padding: 8px 14px;
}

/* Optional: subtle shadow */
#languageCard .toggle-switch {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive fix for small devices */
@media (max-width: 760px) {
    #languageCard {
        top: 60px;
        /* lower to avoid navbar */
        right: 10px;
        padding: 5px 5px;
    }

    .toggle-option {
        padding: 10px 10px;
        font-size: 13px;
        flex-direction: column;
        text-align: center;
    }

    .toggle-switch {
        flex-direction: column;
    }
}



@media (max-width: 768px) {
    .language-button {
        font-size: 1.5rem;
        padding: .75rem 2rem;
    }

    .flag-icon {
        width: 30px;
        /* Smaller flags for smaller screens */
    }

    .language-button {
        font-size: 12px;
        /* Smaller font size for buttons */
        padding: 4px 8px;
        /* Smaller padding for buttons */
    }

}

/* Code to put side to side the flags and buttons
.flag-button-group {
    display: flex;
    text-align: center;
    margin: 0 10px; 
}


.flag-icon {
    display: block; 
    margin: 0 auto; 
}

.language-button {
    display: block; 
    margin: 5px auto 0; 
}
*/




@media (max-width: 768px) {
    .ctn-picture {
        height: midd;
        /* Allow the section to grow with content */
        padding: 20px;
        /* Add padding for better spacing */
    }

    .pfp-name {
        flex-direction: column;
        /* Stack profile picture and text vertically */
        align-items: center;
        /* Center align content */
        margin-left: 0 !important;
        /* Remove left margin */
    }

    .pfp-middle img {
        margin-right: 0 !important;
        /* Remove right margin */
        width: 200px;
        /* Adjust image size */
        height: 200px;
    }

    .start-content {
        padding-top: 20px;
        /* Reduce top padding */
        text-align: center;
        /* Center align text */
    }

    .flag-icon {
        width: 40px !important;
        /* Reduce flag size */
        height: 40px !important;
        margin-right: 10px !important;
        /* Reduce margin */
    }

    .top-right {
        top: 10px !important;
        /* Adjust top position */
        right: 10px !important;
        /* Adjust right position */
    }

    .fixed {
        position: relative !important;
        /* Disable fixed positioning */
        width: 100% !important;
        /* Take full width */
        height: auto !important;
        /* Allow height to grow */
        top: 0 !important;
        /* Reset top position */
    }

    .offset {
        margin-left: 0 !important;
        /* Reset margin */
        width: 100% !important;
        /* Take full width */
    }

    .ctn-main {
        margin-top: 50px !important;
        /* Reduce top margin */
    }

    .footer-links {
        margin-top: 2rem !important;
        /* Reduce top margin */
        text-align: center;
        /* Center align content */
    }

    .footer-links a {
        margin: 0 5px;
        /* Reduce margin between links */
    }

    .footer-links img {
        width: 24px;
        /* Reduce icon size */
        height: 24px;
    }

    #wordname {
        font-size: 25px !important;
        /* Reduce font size */
    }

    #wordstart {
        font-size: 25px !important;
        /* Reduce font size */
    }

    #wordcarrer {
        font-size: 20px !important;
        text-wrap: wrap;
        /* Reduce font size */
    }

    .fixed.active {
        position: relative !important;
        /* Disable fixed positioning */
        width: 100% !important;
        /* Take full width */
        height: auto !important;
        /* Allow height to grow */
        top: 0 !important;
        /* Reset top position */
        scrollbar-width: none;
        /* Hide scrollbar */
    }

    .offset.active {
        margin-left: 0 !important;
        /* Reset margin */
        width: 100% !important;
        /* Take full width */
    }

    .pjt-section {
        flex-direction: column;
        text-align: center;
    }

    .project-img {
        margin-bottom: 15px;
    }

    .project-img img {
        width: 400px;
        height: 250px;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .exp-text {
        font-size: 0.9rem;
    }
}

@media (min-width: 380px) and (max-width: 480px) {
    #wordcarrer {
        font-size: 17px !important;
        white-space: normal !important;
        overflow: visible !important;
        line-height: 1.3;
        min-height: 2.6em; /* Reserve space for 2 lines */
        text-wrap: wrap !important;
    }
}

@media (max-width: 380) {
    #wordcarrer {
        font-size: 20px !important;
        white-space: normal !important;
        overflow: visible !important;
        line-height: 1.3;
        min-height: 2.6em; /* Reserve space for 2 lines */
        text-wrap: wrap !important;
    }
}

/* CSS */