/* =========================================
   1. GLOBAL AYARLAR & DEĞİŞKENLER
   ========================================= */
:root {
    /* Renk Paleti */
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    
    /* Neon Accent (Vurgu) Rengi */
    --accent: #00f2ea; 
    --accent-glow: rgba(0, 242, 234, 0.4);
    
    /* Kenarlıklar ve Cam Efekti */
    --border: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
    
    /* Fontlar */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Özel cursor için */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--accent);
    color: #000;
}

/* =========================================
   2. CUSTOM SCROLLBAR
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark); 
}

::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent); 
}

/* =========================================
   3. CUSTOM CURSOR
   ========================================= */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent);
}

.cursor2 {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor2.hovered {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 234, 0.1);
    border-color: transparent;
}

/* =========================================
   4. MODAL (POP-UP)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111;
    border: 1px solid var(--accent);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(0, 242, 234, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.success-icon-wrapper {
    width: 80px; height: 80px;
    background: rgba(0, 242, 234, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px;
    border: 2px solid var(--accent);
}

.success-icon-wrapper i {
    font-size: 40px;
    color: var(--accent);
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* =========================================
   5. NAVBAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -1px;
}

.nav-links { display: flex; gap: 40px; list-style: none; }

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }

.btn-contact {
    border: 1px solid var(--border);
    padding: 8px 24px;
    border-radius: 4px;
}

.btn-contact:hover {
    border-color: var(--accent);
    background: rgba(0, 242, 234, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px; height: 3px; background-color: #fff; transition: 0.3s;
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; padding-top: 60px;
}

#neural-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.3;
}

.tagline {
    color: var(--accent); letter-spacing: 4px; font-size: 0.85rem;
    margin-bottom: 20px; font-weight: 600; text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-heading); font-size: 5rem;
    line-height: 1.1; margin-bottom: 20px; font-weight: 700;
}

.gradient-text {
    background: linear-gradient(90deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 242, 234, 0.3);
}

.typewriter {
    font-family: 'Space Grotesk', monospace; font-size: 1.5rem;
    color: var(--text-secondary); height: 30px; margin-bottom: 50px;
}

.cursor-blink { animation: blink 1s infinite; color: var(--accent); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.cta-group { display: flex; justify-content: center; gap: 20px; }

.btn {
    padding: 15px 40px; border-radius: 50px; text-decoration: none;
    font-weight: 600; font-size: 1rem; transition: all 0.3s ease;
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    border: none;
}

.primary {
    background: var(--accent); color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

.primary:hover {
    transform: translateY(-5px); box-shadow: 0 0 30px var(--accent-glow);
}

.outline {
    border: 1px solid var(--border); color: #fff; background: transparent;
}

.outline:hover { border-color: var(--accent); color: var(--accent); }

.scroll-indicator {
    position: absolute; bottom: 40px; width: 30px; height: 50px;
    border: 2px solid var(--border); border-radius: 20px;
    display: flex; justify-content: center; padding-top: 10px;
}

.scroll-indicator span {
    width: 6px; height: 6px; background: var(--accent);
    border-radius: 50%; animation: scrollAnim 2s infinite;
}
@keyframes scrollAnim { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }

/* =========================================
   7. SECTIONS & CARDS
   ========================================= */
.section { padding: 120px 10%; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header {
    font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 60px;
    border-left: 5px solid var(--accent); padding-left: 25px; color: #fff;
}

.skills-wrapper {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
}

.skill-card {
    background: var(--bg-card); border: 1px solid var(--border); padding: 40px 30px;
    border-radius: 20px; transition: 0.4s ease; position: relative; overflow: hidden;
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-10px); border-color: var(--accent);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.skill-card .icon {
    font-size: 3rem; color: var(--accent); margin-bottom: 25px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px;
}

.project-card {
    background: #0f0f0f; border: 1px solid var(--border); border-radius: 24px;
    overflow: hidden; transition: 0.4s; display: flex; flex-direction: column; position: relative;
}

.project-card:hover {
    border-color: var(--accent); transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 242, 234, 0.1);
}

.card-content { padding: 40px; display: flex; flex-direction: column; height: 100%; }

.card-badge {
    background: rgba(0, 242, 234, 0.1); color: var(--accent);
    padding: 6px 16px; border-radius: 50px; font-size: 0.75rem;
    font-weight: 700; width: fit-content; margin-bottom: 25px;
    border: 1px solid rgba(0, 242, 234, 0.2);
}

.project-card h3 { font-size: 2rem; margin-bottom: 15px; color: #fff; font-family: var(--font-heading); }
.project-card p { color: var(--text-secondary); margin-bottom: 30px; flex-grow: 1; font-size: 1rem; }

.tech-stack {
    display: flex; flex-wrap: wrap; gap: 15px; list-style: none; margin-bottom: 35px;
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px;
}

.tech-stack li {
    font-size: 0.85rem; color: #ccc; font-family: monospace;
    background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 4px;
}

.project-link {
    text-decoration: none; color: var(--accent); font-weight: 600; font-size: 1.1rem;
    display: flex; align-items: center; gap: 10px; transition: 0.3s;
}
.project-link:hover { gap: 15px; filter: brightness(1.2); }

/* =========================================
   8. CONTACT FORM AREA (YENİ)
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
}

.detail-item i {
    width: 50px; height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}

/* FORM STİLİ */
.contact-form-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.form-group {
    position: relative;
    margin-bottom: 35px;
}

/* Input ve Textarea Genel Stili */
.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333;
    padding: 10px 0;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    font-family: var(--font-body);
}

.form-group textarea {
    height: 100px;
    resize: none;
}

/* Label (Etiket) Stili */
.form-group label {
    position: absolute;
    left: 0;
    top: 10px;
    color: #aaa;
    pointer-events: none;
    transition: 0.3s ease all;
}

/* Floating Label Animasyonu (Tıklayınca yukarı kayar) */
.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.full-width { width: 100%; justify-content: center; }

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    padding: 100px 5% 50px;
    background: linear-gradient(0deg, #000 0%, #050505 100%);
    text-align: center; border-top: 1px solid var(--border);
}
.socials { display: flex; justify-content: center; gap: 30px; margin-bottom: 60px; }
.socials a { color: #fff; font-size: 1.8rem; transition: 0.3s; }
.socials a:hover { color: var(--accent); transform: translateY(-5px); }
.copyright { font-size: 0.9rem; color: #555 !important; margin-top: 50px; }

/* =========================================
   10. RESPONSIVE (Mobil)
   ========================================= */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .section { padding: 100px 5%; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    
    .hero { padding-top: 0; }
    .hero h1 { font-size: 2.8rem; }
    .typewriter { font-size: 1.1rem; }
    
    .cta-group { flex-direction: column; width: 100%; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-container { padding: 25px; }
    
    .cursor, .cursor2 { display: none; }
    * { cursor: auto; }
}