/* Navbar styling */



.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    top: 0;
    background: #b0a092;
    padding: 0px 20px;
    font-weight: bold;
    font-size: 20px;
    z-index: 1000;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Left navigation - align to the right within its container */
.nav-list-left {
    justify-content: flex-end;
    gap: 30px;
}

/* Right navigation - align to the left within its container */
.nav-list-right {
    justify-content: flex-start;
    gap: 30px;
}

/* Logo styling */
.logo {
    display: flex;
    justify-content: center;
    padding: 0 40px;
    /* Add space around logo */
}

.logo img {
    width: 65px;
    height: 70px;
}

.nav-list li a {
    text-decoration: none;
    color: rgb(255, 255, 255) !important;
    font-size: 20px;
    padding-bottom: 5px;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.nav-list li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #ffffff;
    transition: width 0.3s ease-in-out;
}

.nav-list li a:hover::after {
    width: 100%;
}

.nav-list li a.active::after {
    width: 100%;
    background-color: #ffffff;
}





/* Hide mobile elements by default */
.hamburger,
.mobile-menu-overlay,
.mobile-nav-list {
    display: none;
}

/* Mobile Navigation Styles - For tablets and phones */
@media (max-width: 1300px) {
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: white;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* Hide desktop nav on mobile/tablet */
    .nav-list-left,
    .nav-list-right {
        display: none;
    }

    /* Show mobile menu elements */
    .mobile-menu-overlay,
    .mobile-nav-list {
        display: block !important;
    }

    /* Adjust navbar for mobile/tablet - keep grid but modify */
    .navbar {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        position: relative;
    }

    /* Center logo on mobile/tablet */
    .logo {
        justify-self: center;
        grid-column: 1 / -1;
        grid-row: 1;
    }

    /* Position hamburger on left */
    .hamburger {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100%;
        background-color: #b0a092;
        display: flex;
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav-list.active {
        left: 0;
    }

    .mobile-nav-list li {
        margin-bottom: 15px;
        list-style: none;
    }

    .mobile-nav-list li a {
        color: white;
        text-decoration: none;
        font-size: 20px;
        font-weight: bold;
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }

    .mobile-nav-list li a:hover {
        color: rgb(141, 83, 7);
        transform: translateX(10px);
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
        z-index: 1001;
    }

    /* Hamburger animation when active */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Nuclear option - remove visited styles globally for nav */
a.nav-link:visited {
    color: inherit !important;
}

/* Or even more specific */
nav a:visited,
.navbar a:visited,
.nav-list a:visited,
.mobile-nav-list a:visited {
    color: rgb(255, 255, 255) !important;
}

/* Nuclear option - ensure ALL nav links stay white */
.navbar a.nav-link,
.navbar .nav-list a,
.navbar .mobile-nav-list a,
.nav-list a,
.mobile-nav-list a {
    color: rgb(255, 255, 255) !important;
}

/* Force navbar links to stay white - override any global styles */
.navbar a,
.navbar .nav-list a,
.navbar .mobile-nav-list a,
.nav-list a,
.nav-list-left a,
.nav-list-right a,
.mobile-nav-list a,
.nav-link {
    color: rgb(255, 255, 255) !important;
}

/* Cover all link states */
.navbar a:link,
.navbar a:visited,
.navbar a:hover,
.navbar a:active,
.navbar a:focus,
.nav-list a:link,
.nav-list a:visited,
.nav-list a:hover,
.nav-list a:active,
.nav-list a:focus,
.mobile-nav-list a:link,
.mobile-nav-list a:visited,
.mobile-nav-list a:hover,
.mobile-nav-list a:active,
.mobile-nav-list a:focus {
    color: rgb(255, 255, 255) !important;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 300px;
    padding: 40px 20px;
}

/* Project Navigation */
.project-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.project-tab {
    padding: 15px 40px;
    background: #b0a092;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-tab.active {
    transform: scale(1.05);
    background: #745132;
}




/* Project Content */
.project-content {
    display: none;
}

.project-content.active {
    display: block;
}

/* Main Layout: Resume Left, Images Right */
.project-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

/* Resume Card */
/* Resume Card - Updated to match internship color scheme */
.resume-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    color: #4f331a;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(176, 160, 146, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-card:hover {
    transform: translateY(-5px);
}

.resume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(176, 160, 146, 0.1) 0%, transparent 50%);
    pointer-events: none;
}



.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.project-title {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
    color: #4f331a;
}

.project-badge {
    background: rgba(176, 160, 146, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #4f331a;
    border: 1px solid rgba(176, 160, 146, 0.5);
}

.contributions-block {
    background: rgba(176, 160, 146, 0.15);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(176, 160, 146, 0.3);
    color: #4f331a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contributions-block:hover {
    transform: translateY(-3px);
}

.contribution-item {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: #4f331a;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.contribution-item:hover {
    transform: translateX(10px);
}

.contribution-item::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #4f331a;
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 15px;
}

.tech-tag {
    color: #7b5636;
    padding: 2px 0;
    position: relative;
    font-weight: bold;
}

.tech-tag:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    color: rgba(141, 83, 7, 0.3);
}

.tech-tag:hover {
    color: #8d5307;
}

/* Add some subtle shadows for depth */
.resume-card {
    box-shadow: 0 8px 32px rgba(79, 51, 26, 0.1);
}

.contributions-block {
    box-shadow: 0 4px 16px rgba(79, 51, 26, 0.05);
}

/* Image Carousel */
.carousel-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(79, 51, 26, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-container:hover {
    transform: translateY(-5px);
}

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    background: #e5dddd;

}

/* Make Elyssiu carousel shorter */
.elyssiu .carousel {
    max-height: 390px !important;
    /* Shorter than Renvi's 400px */
}

/* Keep Renvi carousel at original height */
.renvi .carousel {
    min-height: 400px;
    /* Or whatever height you want for Renvi */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Phone frame for Renvi */
.renvi .carousel-image {
    max-height: 80%;
    border-radius: 25px;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.carousel-btn {
    background: linear-gradient(135deg, #b0a092 0%, #b0a092 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elyssiu .carousel-btn {
    background: linear-gradient(135deg, #b0a092 0%, #b0a092 100%);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}





.carousel-counter {
    font-size: 1.1em;
    color: #4f331a;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
    padding: 0px 0px
}

/* Video Section */
.video-section {
    margin-top: 40px;
}

.video-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 60%;
    height: 400px;
    margin: 0 auto;
    /* Add this line to center it */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
}

.video-container iframe {
    border: none;
    width: 100%;
    height: 400px;
    display: block;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.carousel-slide {
    animation: fadeIn 0.5s ease;
}

/* Responsive Design */
@media (max-width: 968px) {
    body {
        padding-bottom: 400px !important;
        /* Add padding to the bottom of the whole page content */
        margin-bottom: 90px !important;
    }

    .project-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .carousel {
        height: 400px;
    }

    .video-container {

        width: 80%;

    }

    .video-container iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {


    .project-navigation {
        flex-direction: column;
        align-items: center;
    }

    .project-tab {
        width: 200px;
    }

    .resume-card {
        padding: 25px;
    }

    .project-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .carousel {
        height: 300px;
    }

    .carousel-nav {
        gap: 20px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .video-container {

        width: 90%;

    }

    .video-container iframe {
        height: 400px;
    }
}

@media (max-width: 600px) {


    .projects-container {
        padding: 20px 15px;
    }

    .carousel {
        height: 250px;
    }

    .video-container {

        width: 90%;
        height: 250px;

    }

    .video-container iframe {
        height: 250px !important;
    }

    .carousel-title {
        font-size: 1.2em;
    }
}