@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #0d0d0d;
    color: white;
    text-align: center;
    height: 100vh;
    overflow-x: hidden;

}

.background {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 0, 0, 0.2), transparent);
    filter: blur(80px);
    z-index: -1;
}

/* Scrollbar tasarımı */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-thumb {
    background: radial-gradient(circle at top right, rgba(255, 0, 0, 0.4));
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: #333;
    border-radius: 10px;
}

/* Üst Profil Menüsü */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 50px;
}

.avatar-container {
    position: relative;  /* Resimleri üst üste koymak için */
}

.profile-img {
    width: 60px;  /* Avatarın genişliği */
    height: 60px;  /* Avatarın yüksekliği */
    border-radius: 50%;  /* Yuvarlak resim yapar */
    object-fit: cover;   /* Resmi kapsayıcıya tam olarak sığdırır */
}

.sweat-drops-img {
    position: absolute;  /* Avatarın üzerine konumlandırmak için */
    top: -3px;  /* Resmin üst kısmına daha yakın yapar */
    left: -3px;  /* Resmi sola veya sağa kaydırır */
    width: 66px;  /* Sweat drops resminin boyutu */
    height: 66px;  /* Sweat drops resminin boyutu */
    z-index: 2;  /* Avatarın üstünde görünmesini sağlar */
    transform: scale(1);  /* Gerektiğinde ince ayar yapabilirsiniz */
}


.profile-info {
    text-align: left;
}

.profile-info h2 {
    font-size: 16px;
    font-weight: 700;
}

.profile-info p {
    font-size: 12px;
    opacity: 0.8;
}


/* Sosyal Medya İkonları */
.social-icons {
    display: flex;
    gap: 12px;
    margin-right: 50px;
}

.social-icons a {
    color: white;
    font-size: 16px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Orta İçerik */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70vh;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
}

.highlight {
    color: #ff0000;
    font-style: italic;
    font-weight: 700;
}

.intro {
    margin-top: 10px;
    font-size: 1rem;
    max-width: 500px;
    opacity: 0.8;
}

/* Offline mesajı stili */
.offline-message {
    display: none;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

/* Spotify ikonu stili */
.offline-message i {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* Spotify Widget - Sağ Alt Köşeye Sabitlendi */
.spotify-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: #0d0d0d;
    color: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

/* Widget Kapalıyken */
.spotify-widget.hidden {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Widget Başlığı */
.header {
    background: #ff0000;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

/* Kapatma Butonu */
.toggle-widget {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.spotify-widget.hidden .toggle-widget {
    transform: rotate(180deg);
}

/* Spotify İçeriği */
.spotify-content {
    display: flex;
    align-items: center;
    padding: 8px;
}

/* Albüm Kapağı */
.spotify-content img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 10px;
    background-color: white;
    object-fit: cover;
}

/* Şarkı Bilgileri */
.song-info {
    flex: 1;
    text-align: left;
}

.song-info a {
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    display: block;
}

.artist-name {
    font-size: 13px;
    opacity: 0.8;
    margin: 3px 0;
}

/* Küçük Açma Butonu */
.mini-play-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
}

/* Repositories kısmı ile bio arasındaki boşluk */
.repositories {
    margin-top: 150px;
    margin-bottom: 250px;
}

.repositories h2 {
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.repo-grid .repo-card {
    margin-bottom: 15px;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
}

.repo-card {
    background: rgba(255, 255, 255, 0.07);
    padding: 24px;
    border-radius: 12px;
    text-align: left;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.repo-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.repo-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
}

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

.repo-header h3 a {
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.repo-header h3 a:hover {
    color: #ff0000;
}

.repo-updated {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 8px;
}

.repo-description {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.repo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.85;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 14px;
}

.language-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.repo-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.load-more:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: white;
}

.load-more i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.load-more:hover i {
    transform: translateY(5px);
}

.load-more.hidden {
    display: none;
}

/* Technologies Başlığı ile Kartlar Arasındaki Mesafeyi Artırıyoruz */
.technologies {
    margin-top: 100px;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.technologies h2 {
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 900px;
    margin: auto;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    transition: 0.3s;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tech-card img {
    width: 24px;
    height: 24px;
}

.tech-card i {
    font-size: 1.6rem;
}

.tech-card p {
    font-size: 1rem;
    font-weight: 500;
}

.footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 10;
}

.footer-highlight {
    color: #ff0000;
    font-weight: bold;
}

.projects h2 {
    font-size: 32px; /* Başlık boyutunu büyütür */
    font-weight: 700; /* Başlık kalın yapar */
    margin-bottom: 20px; /* Başlık ile altındaki içerik arasındaki boşluğu artırır */
}


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

.project-item {
    background: #1c1c2e;
    border-radius: 16px;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.2);
    transition: 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.project-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.project-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.project-details {
    background: #121212;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 26px;
    width: 100%;
    text-align: center;
}

.project-details div {
    flex: 1;
}

.project-details h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    position: relative;
    top: -8px; /* Başlığı yukarıya kaydırmak için */
}

.project-details p {
    font-size: 0.9rem;
    color: #ccc;
}

.project-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}



/* Teknolojiler kısmı */
.tech-tags {
    display: flex;
    justify-content: center;
    gap: 20px; /* İkonlar arasındaki boşluğu artırıyoruz */
    flex-wrap: wrap; /* Mobil uyum için wrap ekliyoruz */
    margin-top: 20px;
}

/* İkonların düzeni */
.tech-tags i {
    font-size: 2rem; /* İkon boyutunu büyütüyoruz */
    color: #fff; /* İkon rengini beyaz yapıyoruz */
    transition: transform 0.3s, color 0.3s; /* Hover animasyonu */
}

/* İkonun yanında yazı */
.tech-tags span {
    font-size: 1rem;
    font-weight: 500;
    color: #fff; /* Yazı rengi beyaz */
    display: inline-block;
    margin-top: 5px; /* İkon ile yazı arasına biraz boşluk ekliyoruz */
    text-align: center;
}

/* Hover efekti: İkon büyür ve rengi değişir */
.tech-tags i:hover {
    transform: scale(1.2); /* Hover yapıldığında ikon biraz büyür */
    color: #ff0000; /* Hover yapıldığında ikon kırmızıya döner */
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .tech-tags {
        gap: 10px; /* Mobilde ikonlar arasındaki boşluğu küçültüyoruz */
    }

    .tech-tags i {
        font-size: 1.5rem; /* Mobilde ikon boyutunu küçültüyoruz */
    }

    .tech-tags span {
        font-size: 0.9rem; /* Mobilde yazı boyutunu küçültüyoruz */
    }
}


.visit-btn {
    margin-top: 20px;
}

.feature-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #ddd;
}

.visit-btn {
    display: inline-block;
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.visit-btn:hover {
    opacity: 0.9;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 26px;
    background-color: rgba(0, 0, 0, 0.4);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.close:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.close:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}


/* Mobil */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 20px 30px;
    }

    .profile {
        margin-left: 0;
        align-items: center;
    }

    .social-icons {
        margin-top: 20px;
    }

    .main h1 {
        font-size: 2.5rem;
    }

    .spotify-widget {
        width: 100%;
        bottom: 10px;
        right: 10px;
    }

    .repo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-gallery {
        gap: 20px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mevcut CSS dosyanıza bu kar efektlerini ekleyin */

/* Kar Konteyneri */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Kar Tanesi Stilleri */
.snowflake {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Küçük Kar Tanesi */
.snowflake-small {
    width: 4px;
    height: 4px;
    opacity: 0.6;
}

/* Orta Boy Kar Tanesi */
.snowflake-medium {
    width: 6px;
    height: 6px;
    opacity: 0.7;
}

/* Büyük Kar Tanesi */
.snowflake-large {
    width: 8px;
    height: 8px;
    opacity: 0.9;
}

/* Kar Yağışı Animasyonu */
@keyframes snowfall {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    70% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

/* Rüzgarlı Kar Animasyonu */
@keyframes snowfall-windy {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Hafif Kar Animasyonu */
@keyframes snowfall-light {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) translateX(-50px) rotate(180deg);
        opacity: 0;
    }
}

/* Kar Efekti Kontrol Butonu */
.snow-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.snow-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.snow-toggle.active {
    background: rgba(255, 255, 255, 0.2);
    color: #1e90ff;
}

/* Kar Yoğunluğu Seçici */
.snow-intensity {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.snow-intensity.show {
    display: flex;
}

.intensity-option {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-align: left;
    font-size: 0.9rem;
}

.intensity-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

.intensity-option.active {
    background: rgba(30, 144, 255, 0.3);
    color: #1e90ff;
}

/* Mobil için kar efektini optimize etme */
@media (max-width: 768px) {
    .snowflake {
        /* Mobilde daha az kar tanesi görünsün */
        opacity: 0.6;
    }
    
    .snow-toggle {
        bottom: 70px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Karanlık temada kar tanelerini daha görünür yap */
body.dark-theme .snowflake {
    opacity: 0.9;
}

/* Açık temada kar tanelerini daha az görünür yap */
body.light-theme .snowflake {
    opacity: 0.4;
    background-color: #e0f7ff;
}