/* Tüm resimler için koruma kalkanı */
img {
    -webkit-user-drag: none;  
    user-drag: none;          
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;   
}

/* Genel sayfa yapısı: Kenar boşluklarını sıfırlar ve taşmaları gizleyerek 3D sahne için temiz bir alan sağlar */
body {
    margin: 0;
    overflow: hidden;
    background-color: #000005;
    font-family: 'Segoe UI', sans-serif;
}

/* Yan panel (Drawer): İçeriklerin (Skills, Projects vb.) gösterildiği ana konteyner. Başlangıçta ekranın sağında gizlidir */
#side-panel {
    position: fixed;
    top: 0;
    right: -85%;
    width: 80vw;
    height: 100vh;
    background: rgba(5, 5, 15, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 2px solid rgba(0, 255, 255, 0.6);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.9);
    color: #fff;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Yan panel aktif olduğunda ekrana gelmesini sağlayan sınıf */
#side-panel.active {
    right: 0;
}


/* Panel açıldığında içeriğin görünür hale gelmesi */
#side-panel.active .content-wrapper {
    opacity: 1;
    transform: translateX(0);
}

/* Panel başlık stili: Neon gradyan efekti uygulanmıştır */
#side-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    background: linear-gradient(90deg, #fff, #00ffff);
    background-clip: text;
    background-clip: text;
    -webkit-background-clip: text;
    background-clip: text;
    background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

/* Panel içindeki metinlerin okunabilirlik ayarları */
#side-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cccccc;
}

/* Paneli kapatma butonu: Sağ üstte yer alan 'X' butonu */
#close-side-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 1001;
}

/* Kapatma butonuna gelindiğinde dönme efekti */
#close-side-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* YUKARI AŞAĞI SÜZÜLME ANİMASYONU */
@keyframes diamond-float {

    0%,
    100% {
        top: 35px;
    }

    50% {
        top: 25px;
    }

}

/* Sol üstteki Vektörel & Wireframe Elmas Buton */
.diamond-menu-btn {
    position: fixed;
    left: 35px;
    width: 70px;
    height: 65px;
    z-index: 2001;
    cursor: pointer;
    background-color: #00ffff;
    clip-path: polygon(20% 0%, 80% 0%, 100% 35%, 50% 100%, 0% 35%);
    animation: diamond-float 3s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        filter 0.4s ease,
        background-color 0.4s ease;

    display: flex;
    align-items: center;
    justify-content: center;

    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

/* Elmasın içindeki koyu zemin (Çerçeve etkisi için) */
.diamond-menu-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: rgba(5, 10, 20, 0.9);
    clip-path: polygon(20% 0%, 80% 0%, 100% 35%, 50% 100%, 0% 35%);
    z-index: 1;
    transition: all 0.3s ease;
}


/* --- HOVER (ÜZERİNE GELİNCE) --- */
.diamond-menu-btn:hover {
    animation-play-state: paused;
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px #00ffff);
    background-color: #fff;
}

.diamond-menu-btn:hover::after {
    background-color: rgba(0, 255, 255, 0.15);
}

.diamond-menu-btn:hover::before {
    opacity: 0.8;
    background:
        linear-gradient(to right, transparent 48%, #fff 50%, transparent 52%),
        linear-gradient(to bottom, transparent 34%, #fff 35%, transparent 36%);
}

/* Navigasyon menüsünün dikey hizalaması ve gizlilik ayarları */
.nav-menu {
    position: fixed;
    top: 140px;
    left: 45px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 15px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Navigasyon menüsü açıldığında görünür olması */
.nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menü içindeki her bir butonun (PROJECTS, SKILLS vb.) temel stili */
.nav-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
    padding: 10px;
    border-left: 2px solid transparent;
    transition: 0.3s;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    position: relative;
}

/* Menü butonları üzerine gelindiğinde oluşan kayma ve neon efekti */
.nav-btn:hover {
    color: #00ffff;
    border-left: 2px solid #00ffff;
    padding-left: 20px;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.1), transparent);
}

/* Menü butonu aktifleştiğinde (açıldığında) şekil değiştirmesi */
.diamond-menu-btn.menu-active {
    transform: rotate(180deg);
    border-color: #fff;
    box-shadow: 0 0 20px #fff;
}

.diamond-menu-btn.menu-active .inner-diamond {
    background: #fff;
}

/* O an hangi sayfadaysak menüde o butonun vurgulu kalmasını sağlayan sınıf */
.nav-btn.active-page {
    color: #00ffff !important;
    padding-left: 25px;
    border-left: 3px solid #00ffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.15), transparent);
}



.nav-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 0;
    height: 1px;
    background: #00ffff;
    transition: width 0.3s ease;
}

.nav-btn:hover::before {
    width: 30px;
}

#side-panel::-webkit-scrollbar {
    width: 6px;
}

#side-panel::-webkit-scrollbar-track {
    background: rgba(5, 5, 10, 0.5);
}

#side-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #409cff);
    border-radius: 10px;
}

#side-panel::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
    box-shadow: 0 0 10px #00ffff;
}




/* Panel içindeki içeriklerin yerleşimi ve giriş animasyonu */
.content-wrapper {
    padding: 80px 40px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease 0.3s;
}

#side-panel.active .content-wrapper {
    opacity: 1;
    transform: translateX(0);
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #00ffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.role-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.role-text {
    color: #00ffff;
    letter-spacing: 2px;
    font-weight: 500;
}

.summary-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
}

/* Izgara yapısı: Yetenek kartları veya proje kartlarını yan yana dizer */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

/* Siberpunk tarzı her bir bilgi kartı (Matrix Item) */
.matrix-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 768px) {
    #side-panel {
        width: 100vw;
        right: -100%;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 2rem;
    }
}

/* Başlık alanı: İsim ve Glitch efekti için kapsayıcı */
.hero-name {

    font-size: 5em;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -3px;
    text-transform: uppercase;
    margin: 0 0 10px 0;


    -webkit-background-clip: text;
    -webkit-text-fill-color: #00ffffb2;

    filter:
        drop-shadow(0 0 30px rgba(0, 255, 255, 0.15)) drop-shadow(0 0 5px rgba(0, 255, 255, 0.3));

    transform: skewX(-5deg);
    display: inline-block;
    position: relative;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 2px;
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

/* Rol başlığı (DEVELOPER vb.) altındaki parlayan nokta animasyonu */
.pulse-dot {
    width: 6px;
    height: 6px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 12px #00ffff;
    position: relative;
    animation: badge-pulse 2s infinite;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid #00ffff;
    animation: badge-ripple 2s infinite;
}

.role-title {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0.9;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes badge-ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.hero-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #00ffff, transparent);
    position: relative;
    overflow: hidden;
}

.hero-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: scan-line 3s infinite linear;
}

.matrix-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.block-label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #00ffff;
    letter-spacing: 6px;
    opacity: 0.6;
    margin-bottom: 25px;
    margin-top: 25px;

    display: flex;
    align-items: center;
    gap: 20px;
}

.block-label::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.3), transparent);
}

.matrix-item:hover {
    background: rgba(0, 255, 255, 0.05);
    border-color: #00ffff;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
}


.matrix-head {
    font-family: 'Courier New', monospace;
    color: #00ffff;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.matrix-body {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.summary-para {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    border-left: 3px solid #00ffff;
    padding-left: 25px;
    margin: 30px 0;
}

.highlight {
    color: #00ffff;
    position: relative;
    z-index: 1;
    font-weight: 300;
    transition: all 0.3s ease;
    padding: 0 2px;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 5%;
    background: rgba(0, 255, 255, 0.2);
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 1px;
}

.highlight:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.4);
    cursor: default;
}

.highlight:hover::after {
    height: 100%;
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

/* Küçük teknoloji etiketleri (Tag) */
.pill {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 18px;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    transition: 0.3s;
    text-transform: uppercase;
}

.pill:hover {
    background: #ffffff;
    color: #000;
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);

}

@keyframes scan-line {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Yan panel içindeki özel kaydırma çubuğu (scrollbar) tasarımı */
#side-panel::-webkit-scrollbar-thumb {
    background: #00ffff;
    box-shadow: 0 0 15px #00ffff;
}

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

.contact-subtext {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    opacity: 0.5;
    line-height: 1.4;
}

.matrix-item:hover .contact-subtext {
    opacity: 0.8;
    color: #00ffff;
}

.hero-name.contact-fix {
    font-size: 4em;
}

.project-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
}

.project-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.8) contrast(1.1);
}

.matrix-item:hover .project-preview {
    transform: scale(1.1);
    filter: brightness(1);
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Etiketlerin (Tag) daha profesyonel durması için */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

/* Küçük teknoloji etiketleri (Tag) */
.tag-cloud .pill {
    font-size: 0.65rem;
    padding: 4px 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Proje resimlerinin kart içindeki yerleşimi */
.project-image-wrapper {
    width: 100%;
    height: 200px;
    margin: 15px 0;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 4px;
    background: #000;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    filter: brightness(0.9);
}

.matrix-item:hover .project-img {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Resimlere tıkladığında açılan modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); 
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px); 
    cursor: pointer;
}

.image-modal img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border: 3px solid rgba(0, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3), 0 0 100px rgba(0, 0, 0, 1);
    background: #000;
}

.image-modal::after {
    content: 'Kapatmak için dokunun';
    position: absolute;
    bottom: 30px;
    color: rgba(0, 255, 255, 0.8);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/*Pre-Loader*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000005;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    opacity: 1;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-diamond {
    width: 60px;
    height: 60px;
    background: #00ffff;
    clip-path: polygon(50% 0%, 100% 35%, 80% 100%, 20% 100%, 0% 35%);
    animation: loader-spin 2s infinite linear, loader-glow 1.5s infinite alternate;
}

.loader-text {
    color: #00ffff;
    font-family: 'Courier New', monospace;
    letter-spacing: 5px;
    font-size: 0.8rem;
    text-shadow: 0 0 10px #00ffff;
}

.loader-bar-container {
    width: 250px;
    height: 2px;
    background: rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #00ffff;
    box-shadow: 0 0 15px #00ffff;
    transition: width 0.3s ease;
}

.loader-percentage {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
}

@keyframes loader-spin {
    to { transform: rotateY(360deg); }
}

@keyframes loader-glow {
    from { filter: drop-shadow(0 0 5px #00ffff); }
    to { filter: drop-shadow(0 0 20px #00ffff); }
}