@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- Genel Ayarlar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f172a; /* Modern koyu lacivert */
    color: #e2e8f0; /* Açık gri metin */
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- Header & Nav --- */
header {
    background-color: #1e293b; /* Daha açık lacivert */
    padding: 1.2rem 10%;
    position: fixed; /* Menü yukarıda sabit kalsın */
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #38bdf8; /* Flutter mavisi */
    letter-spacing: 1px;
}

nav ul { display: flex; gap: 2rem; }

nav a {
    font-weight: 500;
    font-size: 1rem;
    color: #cbd5e1;
}

nav a:hover { color: #38bdf8; }

/* --- Ana Sayfa (Hero Section) --- */
.hero-container {
    height: 100vh; /* Tüm ekranı kapla */
    display: flex;
    align-items: center; /* Dikey ortala */
    justify-content: center; /* Yatay ortala */
    padding: 0 10%;
    margin-top: 0; 
}

.hero-content {
    max-width: 800px;
    text-align: left; /* Yazılar sola yaslı daha şık durur */
}

.subtitle {
    color: #38bdf8;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #f8fafc;
}

.description {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* --- Butonlar --- */
.buttons { display: flex; gap: 1rem; }

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background-color: #38bdf8;
    color: #0f172a;
    border: 2px solid #38bdf8;
}

.btn-primary:hover {
    background-color: transparent;
    color: #38bdf8;
}

.btn-outline {
    border: 2px solid #94a3b8;
    color: #94a3b8;
}

.btn-outline:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

/* --- Footer --- */
footer {
    background-color: #1e293b;
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- İçerik Genel (Diğer sayfalar için) --- */
main {
    padding: 8rem 10% 4rem; /* Menünün altında kalmaması için üstten boşluk */
    min-height: 80vh;
}

/* --- PROFİL RESMİ VE HERO ALANI DÜZENLEMESİ --- */

/* 1. Hero alanındaki tüm içerikleri dikey olarak hizala */
.hero-content {
    display: flex;
    flex-direction: column; /* Alt alta diz */
    align-items: center;    /* Yatayda ortala */
    text-align: center;     /* Yazıları ortala */
}

/* 2. Profil kutusunun konumu */
.profile-box {
    margin-bottom: 2rem; /* Yazılarla arasına boşluk koy */
    position: relative;
    z-index: 2; /* Diğer her şeyin üstünde dursun */
    display: inline-block; /* Kapsayıcıyı içeriği kadar yap */
}

/* 3. Profil resminin kendisi */
.profile-img {
    width: 180px !important;  /* !important ile boyutu zorla */
    height: 180px !important; /* Kare olmasını zorla */
    object-fit: cover; /* Resmi bozmadan yuvarlağa sığdır */
    border-radius: 50%; /* Tam yuvarlak yap */
    
    /* Çerçeve ve Gölge (Neon Efekti) */
    border: 4px solid #1e293b; /* Koyu gri ince sınır */
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6); /* Mavi Neon Parlama */
    
    /* Hareket Animasyonu */
    animation: float 5s ease-in-out infinite;
}

/* 4. Animasyon: Havada Süzülme Efekti */
@keyframes float {
    0% {
        transform: translateY(0px); /* Olduğu yerde */
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
    }
    50% {
        transform: translateY(-15px); /* Hafifçe yukarı çık */
        box-shadow: 0 0 50px rgba(56, 189, 248, 1); /* Parlama artsın */
    }
    100% {
        transform: translateY(0px); /* Geri in */
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
    }
}

/* --- SAĞ ALT KÖŞE SABİT OK --- */

.scroll-indicator {
    position: fixed; /* Sayfaya çivile */
    bottom: 30px;    /* Alttan 30px yukarıda */
    right: 30px;     /* Sağdan 30px içeride */
    z-index: 1000;   /* Her şeyin en üstünde */
    text-align: center;
    background: rgba(15, 23, 42, 0.8); /* Arkasına yarı saydam siyahlık atalım ki okunsun */
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #334155;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.scroll-indicator p {
    font-size: 0.8rem !important; 
    color: #cbd5e1 !important; 
    font-weight: bold;
    margin-bottom: 5px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    font-size: 2.5rem; /* Boyutu ideal */
    color: #38bdf8;
    line-height: 1;
    display: block;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
    animation: ziplaSagAlt 2s infinite ease-in-out;
}

/* Sağ Alt İçin Zıplama Animasyonu */
@keyframes ziplaSagAlt {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px); /* Aşağı doğru zıplasın */
    }
}

/* --- MOBİL CİHAZLAR İÇİN DÜZELTMELER (Max Genişlik: 768px) --- */
@media (max-width: 768px) {

    /* 1. SORUN: MENÜNÜN SIĞMAMASI */
    /* Logoyu ve menüyü yan yana değil, alt alta alıyoruz */
    nav {
        flex-direction: column; /* Alt alta diz */
        gap: 1rem; /* Araya boşluk koy */
    }
    
    nav ul {
        gap: 10px; /* Linklerin arasını biraz sıkılaştır */
        width: 100%;
        justify-content: center; /* Ortala */
        flex-wrap: wrap; /* Sığmazsa alt satıra geçsin */
    }

    /* 2. SORUN: MAİL ADRESİNİN TAŞMASI */
    /* Mail butonundaki uzun yazıyı kontrol altına alıyoruz */
    a[href^="mailto"] {
        font-size: 0.85rem !important; /* Yazı boyutunu küçült */
        word-break: break-all; /* Kelime çok uzunsa böl */
        white-space: normal !important; /* Alt satıra inmesine izin ver */
        padding: 10px !important; /* Kenar boşluklarını daralt */
        line-height: 1.4;
    }

    /* 3. SORUN: AŞAĞI İN OKUNUN KÖTÜ DURMASI */
    /* Mobilde ekran küçük olduğu için bu oku tamamen gizlemek en iyisidir */
    .scroll-indicator {
        display: none !important;
    }

    /* EKSTRA: Genel Kenar Boşlukları */
    /* Mobilde 10% boşluk çok fazla, onu azaltalım ki yer açılsın */
    section {
        padding: 4rem 5% !important;
    }
    
    header {
        padding: 1rem 5% !important;
    }
}