/* General Styles */
/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: white;
    color: #1b1b1b;
}

/* Animation Styles */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.header {
    height: 50vh; /* Occupies full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Positions nav at top and copyright at bottom */
    background: black; /* Unified gradient */
    background-size: 400% 400%;
    animation: gradient 20s ease infinite;
    position: relative;
}

/* Navigation Styles */
.projects-page .nav {
    position: static; /* Changed from relative to static for seamless integration */
    width: 100%;
    background: transparent; /* Removed background for no boundary */
    padding: 20px 0; /* Adjusted padding */
    transition: background 0.3s ease;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    margin-right: 50px; /* Added this line to move the nav items to the right */
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    font-family: 'Public Sans', sans-serif; /* Updated to match gradient */
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
}

.nav-item:hover {
    background-color: #1B7476;
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding-left: 30px;
    padding-right: 30px;
}
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1B7478;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: calc(100% + 8px); 
    left: 0;
    border-radius: 10px;
    overflow: hidden;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    font-family: 'Public Sans', sans-serif; /* Updated to match nav-item */
    color: #f1f1f1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.dropdown-content a:hover {
    background-color: #125fdc;
}

/* Pseudo-element to cover the gap */
.nav-dropdown:hover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px; /* Match the space added above */
}

/* Arrow Styles */
.arrow-container {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
}

.arrow {
    width: 7px;
    height: 7px;
    border: solid white;
    border-width: 2px 2px 0 0;
    display: inline-block;
    transform: rotate(135deg);
    transition: transform 0.3s ease;
    position: relative;
    top: -2px;
    transform-origin: 69% 50%;
}

.nav-dropdown:hover .arrow {
    transform: rotate(-45deg) translateY(1.8px);
}

/* Project Hero Section Styles */
.project-hero {
    flex: 1; /* Takes up remaining space in header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent; /* Transparent to show header gradient */
    padding: 20px 0; /* Adjusted padding to remove boundary */
    overflow: hidden; /* Prevents internal scrolling */
    position: relative;
   
}

.project-hero .container {
    z-index: 1;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%; /* Ensures container fills project-hero */
}

.project-hero .hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ensures content fills container */
}

.project-hero .hero-text {
    padding: 20px;
    color: white;
    overflow: auto; /* Prevents overflowing content */
}

/* Prevent scrollbar flicker */
.project-hero {
    overflow: hidden; /* Hide any overflow during animation */
}

/* Upward fade-in animation */
@keyframes slideUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(15px); /* Reduced translation to avoid scrollbar */
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Final position */
    }
}

.project-hero h1 {
    font-size: 2rem;
    color: white;
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    letter-spacing: 2px;
    font-weight: 100;
    opacity: 0;
    animation: slideUpFadeIn 1.5s ease-out forwards;
}


.project-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-section-cutter-image {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    pointer-events: none;
}

/* Project Content Styles */
.project-content {
    padding: 0;
    position: relative;
    z-index: 1;
}

.project-container {
    padding: 4rem 0;
}

.project-container .container {
    padding-left: 20px;  /* Adjust this value as needed */
    padding-right: 20px; /* Keep this consistent with left padding for symmetry */
    max-width: 1250px;   /* Adjust based on your design preferences */
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .project-container .container {
        padding-left: 40px;  /* Slightly larger padding for larger screens */
        padding-right: 40px;
    }
}

.project-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #080909;
    font-family: 'Public Sans', sans-serif;
}

.project-container p {
    font-size: 1.2rem;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    opacity: .8;
    line-height: 1.4;
    color: #141414;
}

/* Background and Layout Styles */
.white {
    background-color: white;
}

.gradient-moving {
    background: linear-gradient(-45deg, #eafffa, #e6fffd, #f0fffe, #f6fffe);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .project-content .project-container {
        padding: 3rem 0;
    }

    .project-hero {
        height: 60vh;
    }

    .project-hero h1 {
        font-size: 2.5rem;
    }

    .project-hero p {
        font-size: 1rem;
    }

    .project-container {
        padding: 3rem 0;
    }

    .project-container h2 {
        font-size: 1.75rem;
    }

    .project-container p {
        font-size: 0.9rem;
    }
}


/* Mobile Styles */
@media (max-width: 768px) {
    /* Display Hamburger */
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 13px;
        position: fixed;
        top: 10px;
        right: 5.5px;
        z-index: 1001;
        background-color: #1B7476;
        border-radius: 8px;
        transform: scale(0.8);
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: 0.4s;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav {
        background: none; /* Remove the gradient background */
        padding: 0; /* Remove any padding */
        height: auto; /* Allow the height to adjust automatically */
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 50px;
        right: 11px;
        width: 200px;
        background-color: #1B7476;
        padding: 10px 0;
        border-radius: 8px 0 8px 8px;
        overflow: hidden;
        z-index: 1000;
    }

    .nav-menu.show {
        display: block;
        max-height: 100vh;
        overflow-y: auto;
    }

    .nav-item {
        display: block;
        padding: 10px 20px;
        color: white;
        text-decoration: none;
        transition: background-color 0.3s;
        font-size: 16px;
    }

    .nav-dropdown {
        position: relative;
    }

    .nav-dropdown > .nav-item .arrow-container {
        display: inline-flex; /* Show the arrow for Research menu */
    }

    .dropdown-content {
        display: none;
        background-color: transparent; /* Remove background */
        box-shadow: none;
        padding-left: 5px; /* Indent submenu items */
        position: static; /* Ensure it's not absolutely positioned */
    }

    .nav-dropdown.active .dropdown-content {
        display: block; /* Show submenu when active */
    }

    /* Remove background color and box shadow for active items */
    .nav-item.active,
    .nav-item:hover {
        background-color: transparent !important;
        box-shadow: none !important;
    }

    /* Remove any padding changes for active items */
    .nav-item.active {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Ensure dropdown content is displayed normally */
    .nav-dropdown.active .dropdown-content {
        display: block;
        background-color: transparent;
    }

    /* Remove hover effects for dropdown items */
    .dropdown-content a:hover {
        background-color: transparent;
    }

    /* Adjust Hero Section for Mobile */
    .project-hero {
        height:18vh; /* Allow height to adjust based on content */
        padding: 10px 0; /* Reduced padding for conciseness */
    }

    .project-hero h1 {
        font-size: 2rem; /* Further reduced font size for better fit on mobile */
        white-space: normal;
        text-align: center;
        margin-bottom: 0.5rem; /* Added margin for spacing */
    }

    .project-hero p {
        font-size: 0.9rem; /* Adjusted for better readability */
        margin-top: 0.5rem;
    }

    .project-container {
        padding: 2rem 1rem; /* Reduced padding for better fit */
    }

    .project-container h2 {
        font-size: 1.5rem; /* Reduced font size */
    }

    .project-container p {
        font-size: 0.85rem; /* Reduced font size */
    }

    .tools-languages {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .tools-languages p {
        font-size: 0.9rem; /* Reduced font size */
    }

    .tool-icon {
        width: 24px;  /* Further adjusted for better fit */
        height: 24px; /* Further adjusted for better fit */
    }

   
}

/* Tools Languages Styles */
.tools-languages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tools-languages p {
    font-size: 1.1rem;
    margin: 0;
}

.tool-icon {
    width: 32px;  /* Increased from 24px */
    height: 32px; /* Increased from 24px */
}

/* Specific Page Styles */
.projects-page .nav-menu .nav-item.active {
    padding-left: 10px;
    padding-right: 10px;
}
/* Footer Styles */
footer {
    background: black;
    background-size: 400% 400%;
    animation: gradient 20s ease infinite;
    color: white;
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: auto; /* Pushes footer to bottom */
}

footer p {
    font-size: 14px;
    margin: 0;
}

/* Responsive Styles for Larger Screens */
@media (min-width: 1024px) {
    footer {
        flex-direction: row; /* Row layout for larger screens */
        justify-content: center; /* Center content horizontally */
        padding: 30px 0; /* Remove side padding to center footer */
        text-align: center; /* Center text */
    }

    footer p {
        margin: 0 20px; /* Add margin to create space between items */
    }
}



/* Media Query for Large Screens (1600px and above) */
@media (min-width: 1600px) {
    .project-content .project-container .container {
        max-width: 1400px;      /* Ensures content doesn't stretch excessively */
        padding-left: 10px;     /* Reduced horizontal padding */
        padding-right: 10px;    /* Reduced horizontal padding */
    }

    .nav-content {
        margin-right: 80px;     /* Aligns navigation items with ample spacing */
    }

    .nav-menu {
        gap: 20px;              /* Adds space between navigation items */
    }

    .nav-item {
        padding: 15px 20px;     /* Increases clickable area for nav items */
        font-size: 18px;        /* Enhances readability */
    }

    .dropdown-content a {
        padding: 14px 20px;     /* Provides comfortable spacing in dropdowns */
        font-size: 18px;        /* Consistent font size with nav items */
    }

    .project-hero {
        padding: 40px 0;         /* Increases vertical padding for better spacing */
    }

    .project-hero h1 {
        font-size: 2rem;         /* Prominent heading for larger screens */
    }

    .project-hero p {
        font-size: 1.5rem;       /* Enhanced readability */
    }

    .project-container {
        padding: 4rem 0;         /* Maintains consistent padding */
    }

    .project-container h2 {
        font-size: 2.5rem;       /* Larger headings for prominence */
    }

    .project-container p {
        font-size: 1.3rem;       /* Improved readability */
    }

    .tools-languages p {
        font-size: 1.2rem;       /* Increased font size */
    }

    .tool-icon {
        width: 40px;             /* Larger icons for visibility */
        height: 40px;
    }
}




/* Main Content with White Background */
.publication-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: white;
}

/* Publication Items */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.publication-item {
    display: flex;
    justify-content: space-between;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.publication-info {
    flex: 1;
    padding-right: 20px;
}

.publication-meta {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
}

.publication-label {
    background-color: #1B7476;
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 600;
}

.publication-date {
    color: #888;
}

.publication-category {
    color: #1B7476;
    font-weight: 600;
}

.publication-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin: 10px 0;
}

.publication-description {
    font-size: 1rem;
    color: #444;
    opacity: 0.9;
}

.publication-image {
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publication-image img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #ccc;
}
/* Responsive Design */
@media (max-width: 768px) {
    .publication-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .publication-image {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    .publication-image img {
        width: 100%;
        height: auto;
    }

    .publication-meta {
        flex-wrap: wrap;
    }

    .publication-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .project-hero h1 {
        font-size: 2rem;
    }

    .publication-title {
        font-size: 1rem;
    }
}


