:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #ff3366;
    --accent-2: #3333ff;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Özel imleç için varsayılan imleci kapatıyoruz */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- ÖZEL İMLEÇ (CUSTOM CURSOR) --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--text-main);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.2s, height 0.2s, background 0.2s;
}
.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* --- NAVİGASYON --- */
.nav-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    z-index: 1000;
    mix-blend-mode: difference; /* Altındaki renge göre zıt renk alır */
    transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Navbar Altı Animasyonlu Çizgi */
.nav-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent), var(--accent-2));
    animation: drawNavLine 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.3s;
}
@keyframes drawNavLine { to { width: 100%; } }

.nav-modern.scrolled {
    padding: 1rem 4rem; /* Kaydırınca biraz incelir */
    background: rgba(5, 5, 5, 0.7); /* Yarı saydam siyah arka plan */
    backdrop-filter: blur(15px); /* Buzlu cam (Glass) efekti */
    -webkit-backdrop-filter: blur(15px);
    mix-blend-mode: normal; /* Tersine çevirme efektini kapat */
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
}
.brand-logo:hover {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(255, 51, 102, 0.6);
    transform: scale(1.05);
}
.nav-logo-img {
    height: 40px; /* Logonun boyutunu yazıdan daha büyük olacak şekilde artırdık */
    width: auto;
    filter: brightness(0) invert(1); /* Siyah/renkli logoyu tamamen beyaza çevirir */
    transition: filter 0.4s ease, transform 0.4s ease;
}
.brand-logo:hover .nav-logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 51, 102, 0.8));
}
.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--text-main);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* --- HERO (KARŞILAMA) --- */
.hero-section {
    height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}
.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 45px 45px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    z-index: -2;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0% { background-position: 0px 0px; }
    100% { background-position: 45px 45px; }
}
.glow-sphere {
    position: absolute;
    right: 5%;
    top: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(255,51,102,0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 6s infinite alternate ease-in-out;
}
.glow-sphere-2 {
    position: absolute;
    left: 5%;
    bottom: 5%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(51,51,255,0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 8s infinite alternate-reverse ease-in-out;
}
@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.6; }
    100% { transform: scale(1.05); opacity: 1; }
}
.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}
.gradient-text {
    background: linear-gradient(to right, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.type-cursor {
    font-weight: 300;
    color: var(--accent); /* İmleci neon pembe yapıyoruz */
    margin-left: 4px;
    animation: blinkCursor 0.8s infinite;
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 3rem;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background: var(--text-main);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 500;
    border-radius: 50px;
    transition: transform 0.3s ease;
}
.btn-primary:hover {
    transform: scale(1.05);
}

/* --- PROJELER BÖLÜMÜ (BENTO GRID) --- */
.work-section { padding: 10rem 10%; }
.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 4rem;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    grid-auto-rows: 400px;
}
.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02); /* Kartın sınırlarını belli etmek için çok hafif bir arkaplan */
    color: var(--text-main);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#work .bento-item:hover {
    transform: translateY(-10px);
    /* Tema renklerini (Neon pembe ve mavi) kullanarak parlama (glow) efekti veriyoruz */
    box-shadow: 0 20px 40px rgba(255, 51, 102, 0.15), 0 10px 20px rgba(51, 51, 255, 0.15);
    z-index: 2; /* Kartın havaya kalktığında diğerlerini ezmemesi için üste alıyoruz */
}
.item-large { grid-row: span 2; }
.item-wide { grid-column: span 2; }
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Logonun kesilmesini/sünmesini engeller */
    padding: 3rem; /* Logonun etrafına nefes alma boşluğu bırakır */
    filter: brightness(0) invert(1); /* Logoyu tamamen beyaza çevirir */
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.bento-item:hover img {
    transform: scale(1.05);
}
.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}
.bento-item:hover .item-overlay {
    transform: translateY(0);
    opacity: 1;
}
.item-overlay h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.item-overlay span { color: var(--text-muted); font-size: 0.9rem; }

.project-summary {
    font-size: 0.85rem;
    color: #cccccc;
    margin-top: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Masaüstünde 2 satırla sınırlandırıyoruz */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

/* --- FOOTER (ALT BÖLÜM) --- */
.modern-footer { 
    padding: 6rem 10% 2rem; 
    background-color: #0a0a0a; 
    position: relative; 
}
.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent), var(--accent-2));
}
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 4rem; }
.footer-logo { 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-display); 
    font-size: 3.2rem; /* Logoyu belirgin şekilde büyüttük */
    font-weight: 800; 
    color: var(--text-main); 
    letter-spacing: 2px; 
    margin-bottom: 1rem; 
    text-decoration: none;
    transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease;
}
.footer-logo .nav-logo-img {
    height: 55px; /* Yazı boyutu ile uyumlu olması için resim boyutunu artırdık */
    transition: filter 0.4s ease, transform 0.4s ease;
}
.footer-logo:hover {
    color: var(--accent); /* Neon pembe renge dönüşür */
    text-shadow: 0 0 20px rgba(255, 51, 102, 0.6); /* Pembe parlama yayar */
    transform: scale(1.05); /* Üzerine gelince biraz daha büyür */
}
.footer-logo:hover .nav-logo-img {
    /* Logonun resmine de aynı pembe neon gölgeyi ekliyoruz */
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 51, 102, 0.8));
}
.footer-content p { color: var(--text-muted); max-width: 400px; line-height: 1.6; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
}
.socials { display: flex; gap: 1rem; }
.socials a { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 45px; 
    height: 45px; 
    background: rgba(255,255,255,0.05); 
    color: var(--text-main); 
    text-decoration: none; 
    font-size: 1.2rem; 
    border-radius: 50%; 
    transition: all 0.3s ease;
}
.socials a:hover {
    background: var(--text-main);
    color: var(--bg-color);
    transform: translateY(-5px);
}

/* --- ANİMASYON SINIFLARI (REVEAL) --- */
.reveal-up {
    opacity: 0;
    transform: translateY(60px) scale(0.95); /* Biraz daha aşağıdan ve küçük başlar */
    filter: blur(10px); /* Başlangıçta yumuşak bir bulanıklık (cam) efekti */
    transition: opacity 1s ease-out, transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), filter 1s ease-out; /* Süreler uzatıldı ve daha akıcı hale getirildi */
    will-change: transform, opacity, filter; /* Tarayıcı performansını optimize eder */
}
.reveal-up.active { 
    opacity: 1; 
    transform: translateY(0) scale(1); /* Orijinal boyuta ve konuma gelir */
    filter: blur(0); /* Bulanıklık tamamen kaybolur ve netleşir */
}

/* Sayfa Yüklendiğinde Çalışacak Yazı Animasyonu */
.load-anim {
    opacity: 0;
    transform: translateY(-20px);
    animation: loadDownAnim 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
@keyframes loadDownAnim { to { opacity: 1; transform: translateY(0); } }

.delay-1 { transition-delay: 0.1s; animation-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; animation-delay: 0.2s; }

/* --- DUYARLILIK (RESPONSIVE) AYARLARI --- */
/* Tablet Görünümü */
@media (max-width: 1024px) {
    .hero-section { padding: 0 5%; }
    .work-section { padding: 8rem 5%; }
    .modern-footer { padding: 6rem 5% 2rem; }
    .nav-modern { padding: 1.5rem 5%; }
    .nav-modern.scrolled { padding: 1rem 5%; }
    .bento-grid { gap: 1.5rem; }
    .hero-content h1 { font-size: clamp(3.5rem, 8vw, 6rem); }
}

/* Mobil Görünüm */
@media (max-width: 768px) {
    * { cursor: auto !important; } /* Mobilde özel imleci iptal et */
    .cursor-dot, .cursor-outline { display: none !important; }
    
    /* Mobil Navigasyon (App-like Bottom Bar) */
    .nav-links { 
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 1.2rem 2rem;
        justify-content: center;
        gap: 2.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1000;
        margin: 0;
    }
    .nav-modern { padding: 1rem 5%; background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
    .nav-modern.scrolled { padding: 0.8rem 5%; }
    .brand-logo { font-size: 1.2rem; }
    .nav-logo-img { height: 30px; }

    /* Hero ve İçerik Düzenlemeleri */
    .hero-section { height: 85vh; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-content h1 { font-size: clamp(2.5rem, 10vw, 4rem); margin-bottom: 1rem; }
    .hero-content p { font-size: 1rem; padding: 0 1rem; }
    .btn-primary { padding: 0.8rem 2rem; font-size: 0.9rem; }
    
    /* Projeler Bölümü */
    .work-section { padding: 4rem 5%; }
    .section-title { font-size: 2.2rem; margin-bottom: 2.5rem; text-align: center; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; gap: 1.5rem; }
    .item-large, .item-wide { grid-row: span 1; grid-column: span 1; }
    .item-overlay { padding: 1.5rem; }
    .item-overlay h3 { font-size: 1.3rem; }
    .project-summary { 
        font-size: 0.8rem; 
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        box-orient: vertical;
        overflow: hidden;
    }
    
    /* Footer Düzenlemeleri */
    .modern-footer { padding: 4rem 5% 8rem; /* Alt nav bar için ekstra alt boşluk */ }
    .footer-logo { font-size: 2rem; flex-direction: column; gap: 0.5rem; }
    .footer-logo .nav-logo-img { height: 45px; }
    .footer-content p { font-size: 0.9rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
    .socials { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    
    /* Parlayan Küreler Mobilde Küçülsün */
    .glow-sphere, .glow-sphere-2 { width: 70vw; height: 70vw; filter: blur(50px); }
}
