/* Genel Ayarlar ve Değişkenler */
:root {
    /* Varsayılan (Aydınlık) Tema */
    --itu-mavi: hsl(211, 100%, 50%);
    --koyu-gri: #333;
    --arka-plan: #f4f4f4;
    --kart-bg: #fff;
    --yazi-rengi: #333;
    --border-rengi: #ddd;
    --golge: rgba(0, 0, 0, 0.1);
    --nav-hover: #007bff;
    --footer-bg: #333;
    --font-family: 'Arial', sans-serif;
}

/* Karanlık Mod (Dark Mode) Değişkenleri */
body.dark-mode {
    --itu-mavi: #4dabf7; 
    --koyu-gri: #e0e0e0; 
    --arka-plan: #121212; 
    --kart-bg: #1e1e1e; 
    --yazi-rengi: #ccc; 
    --border-rengi: #333; 
    --golge: rgba(0, 0, 0, 0.5);
    --nav-hover: #4dabf7;
    --footer-bg: #000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--yazi-rengi);
    background-color: var(--arka-plan);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--itu-mavi);
}

ul {
    list-style: none;
}

.main-header {
    background: var(--kart-bg);
    border-bottom: 3px solid var(--itu-mavi);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}


.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%; 
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 300px;
    height: auto;
    transition: all 0.3s ease;
    margin-left: -25px; 
}

/* Dark Modda Logo Arka Planını Temizleme */
body.dark-mode .logo img {
    filter: invert(1) hue-rotate(180deg) brightness(1.2);
    mix-blend-mode: screen; 
}

/* --- NAVİGASYON --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto; /* Menüyü ve ayarları sağa gruplar */
    margin-right: 50px; /* Menü ile Dil/Tema butonları arasına boşluk açar */
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li a {
    display: block;
    padding: 10px 15px;
    color: var(--koyu-gri);
    transition: color 0.3s;
    font-weight: 500;
}

.nav-list li a:hover {
    color: var(--nav-hover);
}

/* --- AYARLAR GRUBU (DİL + TEMA) --- */
.settings-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 10px;
}

.lang-switch {
    display: flex;
    border: 1px solid var(--koyu-gri);
    border-radius: 20px;
    overflow: hidden;
    padding: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--koyu-gri);
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    line-height: 1;
}

.lang-btn:hover {
    background-color: rgba(0,0,0,0.1);
}

.dark-mode .lang-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.lang-btn.active {
    background-color: var(--koyu-gri);
    color: var(--arka-plan);
}

.dark-mode .lang-btn.active {
    background-color: var(--itu-mavi);
    color: #fff;
}

.icon-btn {
    background: none;
    border: 2px solid var(--koyu-gri);
    color: var(--koyu-gri);
    padding: 5px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--koyu-gri);
    color: var(--kart-bg);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--koyu-gri);
}

.btn {
    display: inline-block;
    background: var(--koyu-gri);
    color: var(--arka-plan);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.dark-mode .btn {
    background: var(--itu-mavi);
    color: #fff;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- HERO & SECTIONS (foto.png BURADA) --- */
.hero {
    position: relative;
    /* Dosya adının images klasöründe foto.png olduğundan emin ol */
    background: url('images/foto.png') center/cover no-repeat;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(1px);
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-text-margin {
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.section {
    padding: 60px 0;
}

.section:nth-of-type(even) {
    background: var(--kart-bg);
}

.section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--itu-mavi);
}

.center-text { text-align: center; }
.margin-top-15 { margin-top: 15px; }

/* --- AREA LIST & NEWS --- */
.area-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.area-item {
    background: var(--kart-bg);
    padding: 20px;
    border: 1px solid var(--border-rengi);
    border-top: 5px solid var(--itu-mavi);
    border-radius: 5px;
    box-shadow: 0 2px 5px var(--golge);
    transition: background 0.3s, border-color 0.3s;
}

.area-item h4 { color: var(--koyu-gri); }

.news-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.itu-logo {
    max-width: 140px;
    height: auto;
    border-radius: 5px;
}

.dark-mode .itu-logo {
    background: #fff;
    padding: 5px;
}

.news-item {
    background: var(--kart-bg);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid var(--border-rengi);
    box-shadow: 0 2px 5px var(--golge);
    margin-bottom: 20px;
    transition: background 0.3s;
}

.news-item h4 {
    color: var(--itu-mavi);
    margin-bottom: 10px;
}

/* --- FOOTER --- */
.main-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 40px 0 10px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-rengi);
    transition: background-color 0.3s;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 40px;
}

.footer-content h4 {
    margin-bottom: 10px;
    color: var(--itu-mavi);
}

.acknowledgements-link { text-align: center; }

.acknowledgements-btn {
    display: block;
    text-align: center;
    background: var(--itu-mavi);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s;
}

.acknowledgements-btn:hover { background: #0056b3; }

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.map-container h4 {
    margin-bottom: 10px;
    color: var(--itu-mavi);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.copyright {
    text-align: center;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #555;
}

/* --- CONTRIBUTORS & PUBLICATIONS STYLES --- */
.margin-bottom-40 { margin-bottom: 40px; }
.margin-top-50 { margin-top: 50px; }
.dark-gray-text { color: var(--koyu-gri); }

.faculty-member {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.faculty-member .contributor-card {
    max-width: 450px; 
    width: 100%;
}

.student-heading {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--koyu-gri);
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    padding: 20px 0;
}

.contributor-card {
    background: var(--kart-bg);
    border: 1px solid var(--border-rengi);
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--golge);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.contributor-card:hover { transform: translateY(-5px); }

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 20px;
    border: 4px solid var(--itu-mavi);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.card-header {
    background: var(--itu-mavi);
    color: #fff;
    padding: 10px 15px;
    margin-top: 15px;
}

.card-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.card-body {
    padding: 20px;
    flex-grow: 1; 
}

.card-body h5 {
    margin: 0 0 10px 0;
    color: var(--koyu-gri);
    font-size: 1.3rem;
}

.card-body p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: var(--yazi-rengi);
}

.card-body hr {
    border: 0;
    height: 1px;
    background-color: var(--border-rengi);
    margin: 15px 0;
}

.card-body h6 {
    color: var(--itu-mavi);
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.work-title {
    font-weight: bold;
    color: var(--koyu-gri) !important;
    margin-bottom: 5px !important;
}

.work-summary {
    font-style: italic;
    font-size: 0.9rem !important;
    line-height: 1.4;
    color: var(--yazi-rengi) !important;
    opacity: 0.8;
}

.collaborators-intro {
    margin: 10px 0 20px;
    color: var(--yazi-rengi);
    font-size: 1rem;
}

.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 10px;
}

.collaborator-card {
    background: var(--kart-bg);
    border: 1px solid var(--border-rengi);
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    box-shadow: 0 2px 5px var(--golge);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collaborator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px var(--golge);
}

.collaborator-logo {
    width: 100%;
    max-width: 140px;
    height: 70px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

.collaborator-card h5 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--koyu-gri);
}

@media (max-width: 768px) {
    .collaborators-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .collaborator-logo {
        max-width: 120px;
        height: 60px;
    }
}.publication-item {
    background: var(--kart-bg);
    padding: 25px;
    border-left: 5px solid var(--itu-mavi);
    border-radius: 5px;
    box-shadow: 0 2px 5px var(--golge);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-top: 1px solid var(--border-rengi);
    border-right: 1px solid var(--border-rengi);
    border-bottom: 1px solid var(--border-rengi);
}

.publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--golge);
}

.pub-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.dark-mode .pub-meta {
    color: #aaa;
}

.pub-year {
    background: var(--itu-mavi);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.8rem;
}

.publication-item h4 {
    color: var(--koyu-gri);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.publication-item h4 a {
    color: var(--koyu-gri);
    text-decoration: none;
    transition: color 0.3s;
}

.publication-item h4 a:hover {
    color: var(--itu-mavi);
}

.pub-authors {
    font-style: italic;
    color: var(--yazi-rengi);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.pub-journal {
    font-weight: bold;
    color: var(--itu-mavi);
    font-size: 0.9rem;
}

.view-all-btn-container {
    text-align: center;
    margin-top: 30px;
}

.year-heading {
    font-size: 1.5rem;
    color: var(--itu-mavi);
    border-bottom: 2px solid var(--border-rengi);
    padding-bottom: 10px;
    margin: 40px 0 20px 0;
    font-weight: bold;
}

.dark-mode .year-heading {
    border-color: #333;
}

.patent-section {
    margin-bottom: 50px;
}

.patent-item {
    border-left-color: #28a745;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    background: #eee;
    color: #555;
    margin-right: 5px;
    font-weight: 600;
}

.dark-mode .tag {
    background: #333;
    color: #ccc;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-header .container { flex-wrap: wrap; }
    .main-nav { width: 100%; justify-content: space-between; }
    .nav-toggle { display: block; }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: var(--kart-bg);
        border-top: 1px solid var(--border-rengi);
        padding-bottom: 10px;
    }
    
    .nav-list.active { display: flex; }
    .nav-list li { width: 100%; }
    
    .settings-group {
        justify-content: center;
        margin: 10px 0;
    }

    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
    .map-container { grid-template-columns: 1fr; }
    .hero h2 { font-size: 2rem; }
    .area-list { grid-template-columns: 1fr; gap: 20px; }
    .student-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 10px; }
    .faculty-member .contributor-card { max-width: 100%; }
}/* Galeri Bölümü Stilleri */
.gallery-slider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-nav {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 74, 153, 0.9);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.gallery-nav:hover {
    background: rgba(0, 74, 153, 1);
}

.gallery-grid {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 10px;
    flex: 1;
}

.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 74, 153, 0.45);
    border-radius: 999px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    min-width: 340px;
    flex: 0 0 340px;
    scroll-snap-align: start;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.gallery-item.experimental-frame-item img {
    object-fit: contain;
    background: #f4f7fb;
    padding: 8px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 74, 153, 0.8); /* Primary renginizle uyumlu */
    color: white;
    padding: 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
    cursor: zoom-out;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: min(96vw, 1200px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    .gallery-slider {
        gap: 6px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .gallery-item {
        min-width: 78vw;
        flex-basis: 78vw;
    }
}
/* --- Team Gear Stilleri --- */
.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gear-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 74, 153, 0.1);
}

.gear-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 74, 153, 0.15);
}

.gear-item img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    background: #f0f0f0; /* Fotoğraf yoksa boş kalmasın */
}

.gear-info {
    padding: 20px;
}

.gear-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.gear-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e67e22; /* Accent renginiz */
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

/* contributors.html: menuyu logoya yaklastir */
.contributors-page .main-header .container {
    justify-content: space-between;
    gap: 16px;
    max-width: 98%;
}

.contributors-page .main-nav {
    margin-left: 16px;
    margin-right: 0;
    flex: 1;
    justify-content: flex-end;
    gap: 10px;
}

.contributors-page .nav-list {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.contributors-page .logo img {
    width: 250px;
    margin-left: 0;
}

.contributors-page .nav-list li a {
    padding: 8px 10px;
    white-space: nowrap;
}

.contributors-page .settings-group {
    margin-left: 6px;
    gap: 10px;
}

@media (max-width: 1380px) {
    .contributors-page .logo img {
        width: 220px;
    }

    .contributors-page .nav-list li a {
        padding: 8px 8px;
        font-size: 0.95rem;
    }
}


