:root {
    --bg-black: #030406;
    --text-pure: #ffffff;
    --text-dim: #8e95a5;
    --neon-cyan: #00f2fe;
    --neon-purple: #7f00ff;
    --tech-border: rgba(0, 242, 254, 0.15);
    --card-bg: rgba(7, 9, 15, 0.75);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-pure);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Teknolojik Canvas Sabitleme */
#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(3, 4, 6, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}
.logo span { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 242, 254, 0.5); }

.nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.nav a:hover { color: var(--neon-cyan); }

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.tech-badge {
    border: 1px solid var(--neon-cyan);
    background: rgba(0, 242, 254, 0.05);
    color: var(--neon-cyan);
    padding: 6px 18px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff 30%, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .tagline {
    color: var(--text-dim);
    font-size: 1.25rem;
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-btns { display: flex; gap: 20px; }

.btn {
    padding: 15px 35px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--neon-cyan);
    color: #000;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    background: rgba(255,255,255,0.02);
}
.btn-secondary:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-3px);
}

/* Portfolio Section */
.portfolio-section, .about-section, .contact-section { padding: 120px 8% 60px 8%; }

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 50px;
    letter-spacing: -1px;
    position: relative;
}
.section-title::before {
    content: '// ';
    color: var(--neon-cyan);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-item {
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--tech-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.15);
}

.image-wrapper { position: relative; width: 100%; padding-top: 100%; overflow: hidden;}
.portfolio-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.6s ease;
}
.portfolio-item:hover .portfolio-img { transform: scale(1.04); }

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 4, 6, 0.9);
    display: flex; align-items: center; justify-content: center;
    padding: 30px; opacity: 0; transition: opacity 0.3s ease;
}
.portfolio-item:hover .overlay { opacity: 1; }

.overlay-content { text-align: center; }
.overlay-content h3 { color: #fff; font-size: 1.25rem; margin: 10px 0; }
.category-tag { font-size: 0.75rem; color: var(--neon-cyan); letter-spacing: 1px; font-weight: 600;}
.view-btn { font-size: 0.85rem; color: var(--text-dim); }

/* About Cards */
.about-container { display: flex; flex-wrap: wrap; gap: 30px; }
.about-text { flex: 1.8; min-width: 300px; }
.tech-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 40px;
    backdrop-filter: blur(10px);
}
.tech-card h3 { color: #fff; margin-bottom: 15px; font-size: 1.4rem; letter-spacing: -0.5px;}
.tech-card p { color: var(--text-dim); }

.about-skills { flex: 1; min-width: 280px; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.skills-grid span {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.skills-grid .skill-highlight {
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.02);
}

/* Contact */
.contact-card { text-align: center; padding: 60px 20px; }
.contact-card p { color: var(--text-dim); margin-bottom: 35px; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.contact-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    color: #fff; padding: 16px 32px; text-decoration: none; font-weight: 500; transition: all 0.3s;
}
.contact-item:hover:not(.no-link) {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}
.no-link { color: var(--text-dim); cursor: default; }

/* --- TRANSPARAN FOOTER KUDU SOFTWARE --- */
.transparent-footer {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    background: transparent; /* Şeffaf Arka Plan */
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    margin-top: 50px;
}

.transparent-footer p {
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.footer-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-link:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* Lightbox */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(3, 4, 6, 0.98); justify-content: center; align-items: center; flex-direction: column;
    opacity: 0; transition: opacity 0.4s ease;
}
.lightbox.active { opacity: 1; display: flex; }
.lightbox-content { max-width: 85%; max-height: 75vh; object-fit: contain; box-shadow: 0 0 50px rgba(0, 242, 254, 0.1); }
#lightbox-caption { margin-top: 25px; color: #fff; font-size: 1.2rem; }
.close-lightbox { position: absolute; top: 35px; right: 45px; color: var(--text-dim); font-size: 45px; cursor: pointer; }
.close-lightbox:hover { color: #fff; }

/* Responsive */
@media (max-width: 992px) { .hero h1 { font-size: 3.2rem; } }
@media (max-width: 768px) {
    .header { padding: 15px 5%; } .nav a { margin-left: 15px; font-size: 0.8rem; }
    .hero h1 { font-size: 2.2rem; } .hero-btns { flex-direction: column; width: 100%; max-width: 280px; }
    .contact-links { flex-direction: column; }
}


/* ==========================================================================
   SADECE MOBİL VE TABLET AYARLARI (Masaüstü Düzenine Kesinlikle Dokunmaz)
   ========================================================================== */

/* --- TABLET GÖRÜNÜMÜ (Ekran 1024px ve altına düştüğünde) --- */
@media (max-width: 1024px) {
    .header { 
        padding: 20px 5%; 
    }
    .portfolio-section, .about-section, .contact-section { 
        padding: 80px 5% 40px 5%; 
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Tablette yan yana 2'li düzen koruması */
    }
}

/* --- MOBİL GÖRÜNÜMÜ (Ekran 768px ve altına düştüğünde) --- */
@media (max-width: 768px) {
    /* Üst Menüyü Ortala (Logonun altına kayar, taşma yapmaz) */
    .header { 
        flex-direction: column; 
        gap: 12px; 
        padding: 15px 20px; 
        text-align: center;
    }
    .nav { 
        width: 100%; 
        display: flex; 
        justify-content: center; 
        gap: 15px;
    }
    .nav a { 
        margin: 0 !important; /* Masaüstü marginlerini sıfırla */
        font-size: 0.85rem; 
    }
    
    /* Hero Alanı Yazı Boyutlarını Mobilde Küçültme */
    .hero { 
        padding-top: 140px; 
    }
    .hero h1 {
        font-size: 2.4rem !important; /* Dev masaüstü fontunu telefona sığdırır */
    }
    .hero .tagline {
        font-size: 1rem !important;
    }
    
    /* Butonları Alt Alta Al ve Genişlet (Dokunma kolaylığı) */
    .hero-btns { 
        flex-direction: column; 
        align-items: center; 
        width: 100%; 
        max-width: 280px; 
        gap: 10px;
    }
    .btn { 
        width: 100% !important; 
        text-align: center;
    }
    
    /* Portfolyo Görsellerini Alt Alta Tekli Sırala */
    .portfolio-grid {
        grid-template-columns: 1fr !important; 
        gap: 15px;
    }
    
    /* Hakkımda Alanını Dikey Yap */
    .about-container { 
        flex-direction: column; 
        gap: 20px;
    }
    
    /* İletişim Butonlarını Alt Alta Al */
    .contact-links { 
        flex-direction: column; 
        width: 100%; 
        max-width: 280px; 
        margin: 0 auto; 
        gap: 10px;
    }
    .contact-item { 
        width: 100% !important; 
        text-align: center; 
    }
}