﻿body {
    opacity: 0;
    transition: opacity 1s ease;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
}

    body.fade-in {
        opacity: 2;
    }
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 10px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #1f1f1f;
    border-radius: 12px;
    border: 1px solid #333;
}

    .navbar button {
        background-color: #2a2a2a;
        color: #fff;
        padding: 12px 24px;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-weight: bold;
        font-size: 16px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    }

        .navbar button:hover {
            background-color: #3a3a3a;
            transform: scale(1.1);
            box-shadow: 0 0 10px #76b9f0, 0 0 20px #76b9f0;
        }

/* Layout */
.content {
    display: flex;
    margin-top: 20px;
}

/* Sidebar */
.sidebar {
    width: 15%;
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

/* Profil resmi: köşeleri yuvarlatılmış dikdörtgen */
.profile-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    margin: 0 auto 20px auto;
    border: 3px solid #76b9f0;
}

/* Ad Soyad */
.sidebar h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #76b9f0, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ünvan */
.title {
    text-align: center;
    color: #fcd34d;
    font-size: 18px;
    margin-bottom: 20px;
    font-style: italic;
}

/* -------- CV Görüntüle butonu -------- */
.cv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 66px; /* ikon ile metin arası */
    width: 140px;
    padding: 14px 18px;
    margin-bottom: 66px; /* sosyal ikonlardan hafif ayrık */
    background: linear-gradient(90deg, #3a7bd5, #76b9f0);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 6px 15px rgba(118, 185, 240, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}

    .cv-btn i {
        font-size: 20px;
    }

    /* Hover efekti – sosyal ikonlardan biraz farklı */
    .cv-btn:hover {
        background: linear-gradient(90deg, #76b9f0, #3a7bd5);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(118, 185, 240, 0.7);
    }



/* Sosyal medya: yatay düzen */
.social {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

    /* Sosyal medya kartları */
    .social a {
        width: 60px;
        height: 60px;
        background-color: #2a2a2a;
        color: #ffffff;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 22px;
        box-shadow: 4px 4px 10px #0d0d0d, -4px -4px 10px #1e1e1e;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .social a:hover {
            transform: scale(1.15);
            box-shadow: 0 0 10px #76b9f0, 0 0 20px #76b9f0;
            background-color: #333;
            color: #76b9f0;
        }

/* Daha geniş ana içerik alanı */
.main-content {
    width: 80%;
    background-color: #1f1f1f;
    padding: 20px;
    margin-left: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    max-height: 950px; /* İstersen farklı ayarlayabilirsin */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.section {
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

    .section.showing {
        display: block;
    }

    .section.active {
        opacity: 1;
        transform: scale(1);
    }


/* --- Hakkımızda: 2x2 grid düzen --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    height: 475px; /* main-content yüksekliğine tam uyum */
}

.about-card {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 12px;
    box-sizing: border-box;
    height: 100%; /* grid satır yüksekliğine uyumlu */

    overflow-y: auto; /* Scroll yap */
    scrollbar-width: thin; /* Firefox için ince scrollbar */
    scrollbar-color: #76b9f0 transparent; /* Scroll bar rengi */
}

    .about-card::-webkit-scrollbar {
        width: 6px; /* İnce scroll bar */
    }

    .about-card::-webkit-scrollbar-track {
        background: transparent; /* Arka plan transparan */
    }

    .about-card::-webkit-scrollbar-thumb {
        background-color: #76b9f0;
        border-radius: 3px;
    }

    /* Hover efekti */
    .about-card:hover {
        transform: translateY(-5px);
        transition: transform 0.3s ease;
    }

    .about-card h3 {
        color: #76b9f0;
        margin-bottom: 12px;
        font-size: 1.3rem;
    }

.project-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.project-item {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    box-shadow: 0 0 10px #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .project-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 15px #76b9f0;
    }

    /* Fotoğraf sabit boyutta en solda */
    .project-item img {
        width: 80px;
        height: 80px;
        border-radius: 10px;
        object-fit: cover;
        margin-right: 20px;
        flex-shrink: 0;
    }

/* Proje bilgileri (adı + kısa açıklama) - ortada kalan alanı kaplasın */
.project-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1; /* Kalan genişliği kapla */
    min-width: 0; /* Taşmaları engelle */
}

    /* Proje adı - mümkün olduğunca geniş, tek satır, taşma yok */
    .project-info h3 {
        margin: 0;
        font-size: 20px;
        color: #d4af37;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0;
        max-width: 30%; /* Proje adının kaplayacağı max alan */
    }

    /* Kısa açıklama - proje adının yanındaki kalan yer */
    .project-info p {
        margin: 0;
        color: #bbb;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-grow: 1; /* Kalan alanı kapla */
        min-width: 0; /* Taşmaları engelle */
    }

/* Github butonu - en sağda sabit, genişliği sabit */
.github-btn {
    background: linear-gradient(90deg, #76b9f0, #3a7bd5);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 15px rgba(118, 185, 240, 0.7);
    transition: background 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 20px;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    max-width: 160px;
}

    .github-btn:hover {
        background: linear-gradient(90deg, #3a7bd5, #76b9f0);
        box-shadow: 0 10px 25px #76b9f0;
        transform: scale(1.05);
    }


/* Modal genel görünüm */
.modal {
    display: none; /* gizli başlangıçta */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Modal içerik kutusu */
.modal-content {
    background-color: #1f1f1f;
    margin: 80px auto;
    padding: 30px 40px;
    border-radius: 16px;
    width: 850px;
    max-width: 900px;
    color: #e0e0e0;
    position: relative;
    box-shadow: 0 0 20px #76b9f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Modal kapatma butonu */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #76b9f0;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

    .modal-close:hover {
        color: #a0c4ff;
    }

/* Modal görsel */
.modal-content img {
    width: 100%;
    max-height: 300px;
    border-radius: 12px;
    object-fit: contain;
}

/* Modal başlık */
.modal-content h3 {
    margin: 0;
    font-size: 28px;
    color: #76b9f0;
    text-align: center;
}

/* Modal açıklama */
.modal-content p {
    font-size: 16px;
    color: #ccc;
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #76b9f0 transparent;
    padding-right: 10px;
}

    .modal-content p::-webkit-scrollbar {
        width: 6px;
    }

    .modal-content p::-webkit-scrollbar-track {
        background: transparent;
    }

    .modal-content p::-webkit-scrollbar-thumb {
        background-color: #76b9f0;
        border-radius: 3px;
    }

/* İletişim kısmı */
.contact-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

/* Kartlar */
.contact-card {
    flex: 1;
    background: linear-gradient(135deg, #243B55, #141E30);
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    min-width: 320px;
    max-width: 550px;
    color: #e0e0e0;
    font-weight: 500;
    border: 1px solid #3a7bd5;
    transition: box-shadow 0.3s ease;
}

    .contact-card:hover {
        box-shadow: 0 15px 40px #76b9f0;
    }

/* Form düzeni */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .contact-form input,
    .contact-form textarea {
        background-color: #2f3b57;
        border: none;
        border-radius: 14px;
        color: #e0e0e0;
        font-size: 1rem;
        padding: 14px;
        transition: background-color 0.3s ease;
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            background-color: #40577a;
            box-shadow: 0 0 8px #76b9f0;
        }

    /* Gönder butonu */
    .contact-form button {
        background: linear-gradient(to right, #76b9f0, #3a7bd5);
        color: #fff;
        font-weight: 700;
        font-size: 1.1rem;
        padding: 14px;
        border-radius: 14px;
        border: none;
        cursor: pointer;
        box-shadow: 0 6px 15px rgba(118, 185, 240, 0.7);
        transition: background 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
    }

        .contact-form button:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 25px #76b9f0;
        }

/* Harita */
.map iframe {
    height: 320px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .about-card {
        height: auto;
    }

    .contact-container {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }

    .contact-card {
        max-width: 100%;
    }

    .project-card {
        width: 100%;
    }
}
/* ------------------ Mobil Uyumlu Düzenlemeler ------------------ */
@media (max-width: 768px) {
    /* Navbar: butonlar alt alta sarmasın, satır satır yumuşak geçişle sarsın */
    .navbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 15px;
    }

        .navbar button {
            flex: 1 1 45%; /* İki buton yan yana yumuşak sarmalı */
            font-size: 14px;
            padding: 10px 15px;
            box-shadow: none;
            border-radius: 10px;
        }

    /* Content: sidebar ve main alt alta gelsin */
    .content {
        flex-direction: column;
        gap: 15px;
    }

    /* Sidebar genişlik ve margin düzenlemesi */
    .sidebar {
        width: 100%;
        margin: 0 auto;
        padding: 15px 10px;
        border-radius: 10px;
    }

    /* Main content full width, margin kalktı */
    .main-content {
        width: 100%;
        margin-left: 0;
        max-height: none; /* Yüksekliği esnek yap */
        padding: 15px 10px;
    }

    /* About grid tek sütuna düşsün, height otomatik */
    .about-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        height: auto !important;
    }

    .about-card {
        height: auto !important;
        max-height: none !important;
    }

    /* Proje listesi ve öğeleri: full genişlik ve iç boşluklar */
    .project-list {
        gap: 12px;
        margin-top: 15px;
    }

    .project-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }

        .project-item img {
            width: 100%;
            height: auto;
            border-radius: 12px;
            margin: 0 0 12px 0;
        }

    .project-info h3 {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .project-info p {
        white-space: normal;
        max-width: 100%;
    }

    .github-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* İletişim kartları: full genişlik */
    .contact-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .contact-card {
        max-width: 100%;
    }

    /* Harita yüksekliğini küçült */
    .map iframe {
        height: 240px;
    }
}

.cursor-star {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease;
    filter: drop-shadow(0 0 4px white);
    z-index: 9999;
}

    .cursor-star.clicking {
        width: 16px;
        height: 16px;
        background: radial-gradient(circle, #fff, #ffd700, #ffa500);
        filter: drop-shadow(0 0 8px #ffd700) drop-shadow(0 0 12px #ffa500);
        transition: opacity 0.8s ease, transform 0.8s ease;
        transform-origin: center;
    }
.contact-note {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 30px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

    .contact-note:hover {
        transform: scale(1.02);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    }

    .contact-note h3 {
        font-size: 1.5rem;
        color: linear-gradient(145deg, #ffffff, #f3f3f3);
        margin-bottom: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .contact-note p {
        font-size: 1.05rem;
        color: linear-gradient(145deg, #ffffff, #f3f3f3);
        line-height: 1.6;
    }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 sabit sütun */
    gap: 10px;
    padding: 0;
    margin: 10px 0;
    list-style: none;
}

    .skills-grid li {
        background-color: #808080; /* koyu arka plan (istersen değiştir) #808080*/
        border: 1px solid #808080; /* mavi kenarlık */
        border-radius: 6px;
        padding: 8px;
        font-size: 14px;
        font-weight: 500;
        text-align: center;
        color: #e0f2fe;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }


@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .profile-img-wrapper {
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 10px;
    }

    .sidebar {
        width: 95%; /* Daha dar */
        max-width: 350px; /* Maksimum genişlik sınırı */
        margin: 0 auto 20px auto;
    }

    .profile-img {
        min-width: 100px; /* Daha küçük */
        height: auto;
        display: block;
        border-radius: 16px;
        margin: 0 auto 10px auto;
        border: 3px solid #76b9f0;
    }

    .project-item {
        flex-direction: row; /* sütun değil satır */
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap; /* taşma olursa scroll */
        overflow-x: auto;
    }

        .project-item img {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            flex-shrink: 0;
        }

    .project-info {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-width: 0;
    }

        .project-info h3 {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 16px;
        }

        .project-info p {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 12px;
        }

    .github-btn {
        padding: 2px 6px !important;
        font-size: 7px !important;
        margin-left: 6px !important;
        max-width: 70px !important;
        flex-shrink: 0; /* buton küçülmesin */
    }

    .modal-content {
        width: 81vw; /* Varsayılan 90vw yerine %10 azaltılmış */
        max-width: 81vw;
        margin: 40px auto;
        padding: 20px 25px;
        border-radius: 12px;
    }

        /* Modal görsel ve yazı ayarları */
        .modal-content img {
            max-height: 180px;
        }

        .modal-content h3 {
            font-size: 20px;
        }

        .modal-content p {
            max-height: 110px;
            font-size: 13px;
        }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
	.contact-container {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 0 2px;
  }

  .contact-card {
    width: 90%;
    max-width: 90%;
    padding: 8px 6px;
    border-radius: 7px;
    font-size: 0.76rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.76rem;
    padding: 6px;
    border-radius: 6px;
  }

  .contact-form button {
    font-size: 0.8rem;
    padding: 8px;
    border-radius: 8px;
  }

  .map iframe {
    height: 160px;
    width: 90%;
    border-radius: 9px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  }
}
