* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background-color: #ffffff;
    --text-color: #1b2e1c;
    --header-bg-color: #a5d6a7;
    --header-text-color: #1b2e1c;
    --button-bg-color: #4CAF50;
    --button-hover-bg-color: #388e3c;
    --button-text-color: white;
    --footer-bg-color: #a5d6a7;
    --project-details-bg-color: #f1f8e9;
    --project-details-border-color: #c8e6c9;
    --nav-bg-color: #ffffff;
    --nav-text-color: #4a5568;
    --nav-hover-color: #4caf50;
}

body.dark-mode {
    --background-color: #1a202c;
    --text-color: #e2e8f0;
    --header-bg-color: #2d3748;
    --header-text-color: #e2e8f0;
    --button-bg-color: #2d662f;
    --button-hover-bg-color: #224d24;
    --button-text-color: #e2e8f0;
    --footer-bg-color: #2d3748;
    --project-details-bg-color: #4a5568;
    --project-details-border-color: #718096;
    --nav-bg-color: #2d3748;
    --nav-text-color: #e2e8f0;
    --nav-hover-color: #63b3ed;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

header {
    background-color: var(--header-bg-color);
    color: var(--header-text-color);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--background-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hemsire-arac-button {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    font-size: 16px;
    cursor: pointer;
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.hemsire-arac-button:hover {
    background-color: var(--button-hover-bg-color);
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.8);
    padding-top: 60px;
}

.modal-content {
    background-color: var(--background-color);
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    color: var(--text-color);
    box-sizing: border-box;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}

input[type="number"], input[type="date"], textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid var(--project-details-border-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
}

#search {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 1px solid var(--project-details-border-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
}

.theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--header-text-color);
}


main {
    flex: 1;
    padding: 20px;
    padding-bottom: 80px; /* Add padding to the bottom to avoid overlap with the nav bar */
}

.bio, .projects, .scientific, .calendar {
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
}

.bio p {
    text-align: justify;
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: var(--footer-bg-color);
}

.project {
    margin-bottom: 15px;
}

.project-details {
    display: none;
    padding: 10px;
    border: 1px solid var(--project-details-border-color);
    margin-top: 5px;
    background-color: var(--project-details-bg-color);
}

.link-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.link-button:hover {
    background-color: var(--button-hover-bg-color);
}

.blob {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: animate 5s ease-in-out infinite;
    background-image: url(../assets/pp.jpg);
    background-size: cover;
    background-position: center center;
    box-shadow: 0 5px 5px 5px rgba(13, 110, 253, 0.2);
}

@keyframes animate {
    0%, 100%{
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50%{
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

header .blob-container {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
    align-items: center;
}

main .blob-container,
main .blob {
    display: none;
}

.fixed-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--nav-bg-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--nav-text-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: color 0.3s;
    padding: 5px;
}

.nav-button:hover {
    color: var(--nav-hover-color);
}

.nav-button .material-icons {
    font-size: 24px;
    margin-bottom: 5px;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.project-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 14px;
}

.project-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #45a049;
    color: white;
}

.project-button .material-icons {
    font-size: 48px;
    margin-bottom: 10px;
    color: #4CAF50;
}

.project-button:hover .material-icons {
    color: white;
}

.scientific {
    margin-top: 30px;
}

#scientific-projects {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.academic-project {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.academic-project-title {
    background-color: #22a34d;
    padding: 10px;
    margin: 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
}

.academic-project-title:hover {
    background-color: #5eff73;
}

.academic-project-details {
    padding: 15px;
    background-color: #ffffff;
}

.academic-project-details p {
    margin: 5px 0;
}

.kadin-istatistikleri {
    display: flex;
    flex-direction: column;
    padding-left: 15%;
    align-items: flex-start;
    text-align: left;
}

#captcha-container, #contact-info {
    display: none;
    margin-top: 20px;
}

#image {
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 60px;
    padding: 20px;
    font-weight: 400;
    padding-bottom: 0px;
    height: 40px;
    user-select: none;
    text-decoration: line-through;
    font-style: italic;
    font-size: x-large;
    border: 1px solid #ddd;
    margin-left: 10px;
}

#user-input {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: auto;
    margin-right: 10px;
    padding: 10px;
    padding-bottom: 0px;
    height: 40px;
    border: 1px solid #ddd;
}

#btn {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: white;
    margin: 10px;
    background-color: #4CAF50;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
}

#show-contact-btn {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: white;
    margin: 10px 0;
    background-color: #4CAF50;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-button span {
        display: none;
    }
}

/* Infographics for kadinsalarastirmalar.html */
.infographic-section {
    margin-bottom: 40px;
}

.infographic-section h2 {
    border-bottom: 2px solid var(--header-bg-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.infographic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.infographic-card {
    background-color: var(--project-details-bg-color);
    border: 1px solid var(--project-details-border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.infographic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.infographic-card .material-icons {
    font-size: 48px;
    color: var(--button-bg-color);
    margin-bottom: 15px;
}

.infographic-card p {
    margin-bottom: 15px;
    font-size: 1rem;
    flex-grow: 1;
}

.infographic-card .statistic-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--button-bg-color);
    margin-bottom: 10px;
}

.infographic-card .statistic-label {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 15px;
}


.dual-bar-chart {
    display: flex;
    width: 100%;
    height: 25px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: auto;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.dual-bar-chart .bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease-in-out;
}

.dual-bar-chart .bar-woman {
    background-color: #e91e63; /* Pink for women */
}

.dual-bar-chart .bar-man {
    background-color: #2196f3; /* Blue for men */
}

.single-bar-container {
    width: 100%;
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: auto;
}

.single-bar {
    height: 100%;
    background-color: var(--button-bg-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding-right: 8px;
    transition: width 0.5s ease-in-out;
}
