/* --- Premium Purple Glassmorphism Tema Değişkenleri --- */
:root {
    --bg-base: #0a0514;
    --primary: #d946ef;
    --primary-glow: rgba(217, 70, 239, 0.6);
    --secondary: #8b5cf6;
    --accent: #0ea5e9;
    
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Animated Mesh Background --- */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-base);
}

.blob {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    opacity: 0.5;
    animation: move 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.blob-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: rgba(217, 70, 239, 0.35);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: rgba(139, 92, 246, 0.35);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%; left: 50%;
    width: 40vw; height: 40vw;
    background: rgba(14, 165, 233, 0.25);
    animation-delay: -10s;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.2); }
}

/* --- Glassmorphism Utils --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 15px 30px;
    border-radius: 50px;
    transition: var(--transition);
}

.navbar.scrolled {
    top: 10px;
    background: rgba(5, 5, 8, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.1);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; }
.logo .dot { color: var(--primary); }

.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { font-size: 1rem; font-weight: 500; position: relative; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background: var(--primary); transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

/* Butonlar */
.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff; padding: 14px 32px; border-radius: 30px;
    font-weight: 600; border: none; cursor: pointer;
    box-shadow: 0 8px 20px var(--primary-glow);
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 25px rgba(217, 70, 239, 0.6); }

.btn-secondary {
    background: transparent; color: var(--text-main);
    padding: 12px 30px; border-radius: 30px; font-weight: 600;
    border: 2px solid var(--glass-border);
}
.btn-secondary:hover { border-color: var(--primary); background: var(--glass-bg); }

/* --- Hero --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; }
.hero-container { display: flex; align-items: center; justify-content: space-between; gap: 50px; width: 100%; }
.hero-content { flex: 1; }

.greeting { font-size: 1.2rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.greeting span { color: var(--primary); }
.hero-title { font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px; }
.type-text { font-size: 4rem; }
.cursor { color: var(--primary); animation: blink 1s infinite; }

.hero-desc { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 20px; max-width: 500px; }
.hero-location { font-size: 1.1rem; color: #fff; margin-bottom: 40px; font-weight: 500; }
.loc-icon { color: var(--primary); margin-right: 5px; }

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

.hero-visual { flex: 1; position: relative; height: 350px; }
.glass-widget {
    position: absolute;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}
.widget-icon { font-size: 2.5rem; }
.widget-1 { top: 10%; right: 5%; animation-delay: 0s; }
.widget-2 { bottom: 10%; left: 5%; animation-delay: 3s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Sections --- */
section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-tag { font-size: 0.9rem; color: var(--primary); font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.section-title { font-size: 3rem; font-weight: 800; }

/* --- Eğitim Timeline --- */
.timeline-container {
    position: relative; max-width: 800px; margin: 0 auto;
}
.timeline-container::before {
    content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 100%;
    background: var(--glass-border); transform: translateX(-50%);
}
.timeline-item {
    position: relative; width: 45%; padding: 30px; border-radius: 20px;
    margin-bottom: 40px; transition: var(--transition);
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 55%; }
.timeline-item:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

.timeline-dot {
    position: absolute; top: 30px; width: 20px; height: 20px;
    background: var(--primary); border-radius: 50%; box-shadow: 0 0 15px var(--primary-glow);
}
.timeline-item:nth-child(odd) .timeline-dot { right: -11%; transform: translateX(50%); }
.timeline-item:nth-child(even) .timeline-dot { left: -11.5%; transform: translateX(-50%); }

.timeline-date { color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.timeline-role { font-weight: 600; margin: 5px 0 15px; color: #fff; }
.timeline-text { color: var(--text-muted); font-size: 0.95rem; }

/* --- Skills --- */
.skills-flex { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.skill-pill {
    display: flex; align-items: flex-start; gap: 20px; padding: 25px;
    border-radius: 20px; transition: var(--transition);
}
.skill-pill:hover { border-color: var(--primary); transform: translateY(-5px); }
.skill-icon { font-size: 2.5rem; }
.skill-info { width: 100%; }
.skill-info h4 { margin-bottom: 15px; font-weight: 600; }
.progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.progress { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 10px; }

/* --- Projects --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.project-card { overflow: hidden; padding: 15px; transition: var(--transition); }
.project-card:hover { transform: translateY(-10px); background: var(--glass-hover); border-color: rgba(255,255,255,0.15); }

.project-img-wrapper { position: relative; border-radius: 15px; overflow: hidden; aspect-ratio: 16/10; }
.project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-img-wrapper img { transform: scale(1.08); }

.project-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(139, 92, 246, 0.4); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }
.view-btn { background: rgba(0,0,0,0.8) !important; color: #fff !important; transform: translateY(20px); transition: var(--transition); }
.project-card:hover .view-btn { transform: translateY(0); }

.project-content { padding: 25px 10px 10px; }
.project-content h3 { font-size: 1.4rem; margin-bottom: 10px; }
.project-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.tags { display: flex; gap: 10px; }
.tags span { background: rgba(255,255,255,0.05); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; color: var(--text-muted); }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.info-item { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: 15px; }
.info-icon { font-size: 2rem; }
.info-item h4 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 5px; }
.info-item p { font-size: 1.1rem; font-weight: 600; }

.contact-form-container { padding: 40px; }
.premium-form .input-box { position: relative; margin-bottom: 30px; }
.premium-form input, .premium-form textarea {
    width: 100%; padding: 15px 0; background: transparent; border: none;
    border-bottom: 2px solid var(--glass-border); color: var(--text-main);
    font-size: 1rem; outline: none; transition: var(--transition);
}
.premium-form textarea { height: 120px; resize: none; }
.premium-form label {
    position: absolute; top: 15px; left: 0; color: var(--text-muted);
    pointer-events: none; transition: var(--transition);
}
.premium-form input:focus ~ label, .premium-form input:valid ~ label,
.premium-form textarea:focus ~ label, .premium-form textarea:valid ~ label {
    top: -10px; font-size: 0.8rem; color: var(--primary);
}
.premium-form input:focus, .premium-form textarea:focus { border-bottom-color: var(--primary); }
.w-100 { width: 100%; }

/* Form Error Sınıfı (Yenilikçi Validasyon için) */
.premium-form .input-box.error input,
.premium-form .input-box.error textarea {
    border-bottom-color: #ff5f56;
}
.premium-form .input-box.error label {
    color: #ff5f56;
}

/* --- Footer --- */
.glass-footer { border-top: 1px solid var(--glass-border); padding: 50px 0 20px; background: rgba(5,5,8,0.8); backdrop-filter: blur(20px); }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.footer-brand h2 { font-size: 2rem; font-weight: 900; }
.footer-brand span { color: var(--primary); }
.footer-brand p { color: var(--text-muted); }
.social-icons { display: flex; gap: 15px; }
.social-glass {
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border); font-weight: 600;
}
.social-glass:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.9rem; }

/* --- Scroll Animasyon Sınıfları --- */
.reveal-up { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: 1s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: 1s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-up.active, .reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0); }

/* --- Mobil Uyum --- */
@media (max-width: 900px) {
    .hero-container, .contact-grid { flex-direction: column; }
    .hero-visual { width: 100%; margin-top: 40px; }
    .hero-title { font-size: 3rem; }
    .type-text { font-size: 3rem; }
    
    .timeline-container::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; text-align: left !important; }
    .timeline-item:nth-child(even), .timeline-item:nth-child(odd) { left: 0; }
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 10px; transform: translateX(0); right: auto; }
}

@media (max-width: 768px) {
    .hamburger { display: block; cursor: pointer; }
    .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background: #fff; transition: 0.3s; }
    .nav-links {
        position: fixed; left: -100%; top: 0; flex-direction: column; justify-content: center;
        background: rgba(5,5,8,0.98); width: 100%; height: 100vh; transition: 0.4s;
    }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 20px 0; }
    .nav-links a { font-size: 1.5rem; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}


