/* --- GENEL AYARLAR VE DEĞİŞKENLER --- */
:root {
    /* Renk Paleti */
    --bg-color: #0f172a;        /* Koyu Lacivert/Antrasit Zemin */
    --text-color: #e2e8f0;      /* Kırık Beyaz Yazılar */
    --main-color: #00d2ff;      /* Neon Turkuaz */
    --second-color: #7f00ff;    /* Elektrik Moru */
    --glass-bg: rgba(255, 255, 255, 0.05); /* Cam Efekti için Şeffaf Beyaz */
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth; /* Sayfa içi linklerde yumuşak geçiş */
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden; /* Yatay taşmayı engeller */
    min-height: 100vh;
    position: relative;
}

/* --- ARKA PLAN AMBİYANS IŞIKLARI (BLOBS) --- */
/* Sitenin arkasındaki o mor ve mavi ışık huzmeleri */
body::before, body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px); /* Işığı dağıtan kod */
    z-index: -1; /* Her şeyin arkasında durması için */
    opacity: 0.6;
}

body::before {
    background: var(--second-color); /* Mor Işık */
    top: -100px;
    left: -100px;
    animation: float 10s infinite alternate;
}

body::after {
    background: var(--main-color); /* Mavi Işık */
    bottom: -100px;
    right: -100px;
    animation: float 8s infinite alternate-reverse;
}

/* Işıkların hafifçe hareket etmesini sağlayan animasyon */
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* --- GLASSMORPHISM (CAM EFEKTİ) SINIFI --- */
/* Nereye "glass-card" yazarsan orası buzlu cam olur */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px); /* Buzlu cam hissi veren asıl kod */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: 0.3s ease;
}

.glass-card:hover {
    border-color: var(--main-color);
    transform: translateY(-5px); /* Üzerine gelince hafif yukarı kalkar */
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.2);
}

/* --- HEADER (NAVBAR) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8); /* Hafif şeffaf navbar */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
}

.logo .highlight {
    color: var(--main-color);
    /* Yazıya gradient vermek için: */
    background: linear-gradient(45deg, var(--main-color), var(--second-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar a {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-left: 3rem;
    font-weight: 500;
    transition: 0.3s;
}

.navbar a:hover, .navbar a.active {
    color: var(--main-color);
}

/* --- HERO (GİRİŞ) BÖLÜMÜ --- */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center; /* Ortalar */
    text-align: center;      /* Yazıları ortalar */
}

.home-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.home-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 800px; /* Yazı çok yayılmasın */
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1;
}

/* Butonlar */
.btn-box {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--second-color), var(--main-color));
    border-radius: 3rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.5s ease;
    box-shadow: 0 0 15px var(--second-color);
}

.btn:hover {
    box-shadow: 0 0 25px var(--main-color);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}

/* --- BAŞLIKLAR (Heading) --- */
.heading {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
}

/* --- HAKKIMDA --- */
.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.about-content {
    max-width: 900px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- YETENEKLER (GRID YAPISI) --- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-box {
    text-align: center;
}

.skill-box i {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--main-color), var(--second-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- PORTFOLYO --- */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
    height: 300px; /* Kart yüksekliği */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Proje resmi olmadığı için geçici gradient arka plan */
    background: linear-gradient(135deg, #1e293b, #0f172a); 
}

.portfolio-info {
    text-align: center;
    padding: 2rem;
}

.portfolio-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--main-color);
}

.portfolio-info a {
    display: inline-block;
    margin-top: 1rem;
    color: #fff;
    background: var(--second-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

/* --- ÖZEL BAŞLIK RENKLENDİRMESİ (EyeDesignGallery) --- */
#portfolio {
    text-align: center;
}

#portfolio .heading {
    /* Sitenin ana renkleri (Mavi-Mor) ile gradient veriyoruz */
    background: linear-gradient(45deg, var(--main-color), var(--second-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Gradientin düzgün görünmesi için gerekli */
    font-weight: 700;
}

/* --- GALERİ ALT BAŞLIĞI STİLİ --- */
.gallery-subtitle {
    text-align: center;
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- YENİ EKLENEN: GALERİ ÖNİZLEME KARTLARI --- */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.preview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
}

.preview-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--main-color);
}

.preview-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.preview-card p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* --- İLETİŞİM --- */
.contact form {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact .input-box input,
.contact textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    margin: 0.7rem 0;
    border: 1px solid transparent;
    transition: 0.3s;
}

.contact .input-box input {
    width: 49%;
}

.contact .input-box input:focus,
.contact textarea:focus {
    border-color: var(--main-color);
    background: rgba(255, 255, 255, 0.1);
}

.contact-info {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.2rem;
}

.contact-info i {
    color: var(--main-color);
    margin-right: 0.5rem;
}

/* --- FOOTER --- */
.footer {
    padding: 2rem 9%;
    text-align: center;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--glass-border);
}

/* --- MOBİL UYUMLULUK (Responsive) --- */
@media (max-width: 768px) {
    html { font-size: 80%; } /* Yazıları küçültür */
    
    .header { padding: 1.5rem 4%; }
    
    .navbar {
        /* Basit mobil menü görünümü (Şimdilik JS yok) */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        border-top: 1px solid var(--glass-border);
        display: none; /* JS ile açılır kapanır yapacağız */
        flex-direction: column;
        padding: 1rem;
    }
    
    .contact .input-box input {
        width: 100%; /* Mobilde inputlar alt alta olsun */
    }
}
/* --- HAKKIMDA SOSYAL MEDYA İKONLARI --- */
.about-social {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.about-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--main-color);
    transition: 0.5s ease;
    text-decoration: none; /* Alt çizgi olmasın */
}

.about-social a:hover {
    background: var(--main-color);
    color: var(--bg-color); /* İkon rengi koyulaşsın */
    box-shadow: 0 0 20px var(--main-color); /* Neon parlama */
    transform: translateY(-5px); /* Hafif yukarı kalksın */
}

/* --- JS ANİMASYONLARI İÇİN CSS --- */
.glass-card, .heading, .home-content {
    opacity: 0; /* Başlangıçta görünmez */
    transform: translateY(30px); /* Biraz aşağıda */
    transition: all 1s ease; /* 1 saniyede gelsin */
}

.show {
    opacity: 1 !important; /* Görünür yap */
    transform: translateY(0) !important; /* Yerine gelsin */
}

/* --- BİLDİRİM KUTUSU (TOAST NOTIFICATION) --- */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(15, 23, 42, 0.95); /* Koyu zemin */
    border-left: 5px solid var(--main-color); /* Sol tarafta neon çizgi */
    padding: 1.5rem;
    min-width: 300px;
    transform: translateX(200%); /* Başlangıçta ekran dışında sağda gizli */
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Yaylanma efekti */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.notification.active {
    transform: translateX(0); /* Ekrana geliş */
}

.notif-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notif-content i {
    font-size: 2rem;
    color: var(--main-color); /* Neon Mavi İkon */
    text-shadow: 0 0 10px var(--main-color);
}

.notif-text h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2px;
}

.notif-text p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* Alt kısımdaki zaman çubuğu */
.progress-bar {
    width: 100%;
    height: 3px;
    background: var(--glass-border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--main-color);
    transform: translateX(-100%); /* Başlangıçta boş */
}

/* Bildirim aktifken çubuğun dolma animasyonu */
.notification.active .progress-bar::before {
    animation: progress 4s linear forwards;
}

@keyframes progress {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } /* Soldan sağa azalma efekti */
}