html { scroll-behavior: smooth; }

:root { --bg: #f8f9fa; --text: #111111; --neon: #e63946; --card: #ffffff; }
[data-theme="dark"] { --bg: #0a0a0a; --text: #f0f0f0; --neon: #00ffff; --card: #151515; }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: var(--bg); color: var(--text); transition: background-color 0.4s ease, color 0.4s ease; cursor: none; overflow-x: hidden; }

/* BOŞLUKLAR VE İSKELET */
.spacer-section { min-height: 140vh; display: flex; align-items: center; justify-content: center; position: relative; }

/* --- YUKARI ÇIK BUTONU --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Senin istediğin gibi sol altta */
    width: 50px;
    height: 50px;
    background-color: var(--card);
    color: var(--neon);
    border: 2px solid var(--neon);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: none;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Scroll edilince görünür olma sınıfı */
.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--neon);
    color: var(--bg);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(var(--neon), 0.5);
}

/* İMLEÇ */
.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 10px; height: 10px; background: var(--neon); z-index: 10000; transition: background 0.2s; }
.cursor-outline { width: 40px; height: 40px; border: 1.5px solid var(--neon); z-index: 9999; transition: width 0.2s, height 0.2s, border-color 0.2s; }

/* HEADER */
header { position: fixed; top: 0; width: 100%; padding: 30px 50px; display: flex; justify-content: center; z-index: 1000; transition: 0.4s; }
header.scrolled { padding: 15px 50px; background: rgba(var(--bg), 0.85); backdrop-filter: blur(10px); }
nav { display: flex; gap: 40px; }
nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.1rem; cursor: none; transition: 0.3s; }
nav a:hover { color: var(--neon); }

/* KONTROLLER (DİL & TEMA) */
.floating-controls { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; align-items: flex-end; }
.lang-switch { background: var(--card); padding: 5px 10px; border-radius: 20px; border: 2px solid var(--neon); color: var(--text); font-weight: 600; display: flex; gap: 5px; cursor: none; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.lang-switch span { padding: 5px 15px; border-radius: 15px; opacity: 0.7; transition: 0.3s; }
.lang-switch span.active { opacity: 1; background: var(--neon); color: var(--bg); } 
.floating-btn { position: relative; background: var(--card); color: var(--text); border: 2px solid var(--neon); padding: 12px 25px; border-radius: 30px; font-weight: 600; font-family: inherit; cursor: none; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: 0.3s; }
.floating-btn:hover { background: var(--neon); color: var(--bg); transform: translateY(-3px); }

/* DİNAMİK LOGO */
#dynamic-logo { position: fixed; font-weight: 900; letter-spacing: 5px; color: var(--neon); z-index: 1001; transform-origin: center center; transition: all 1.2s cubic-bezier(0.25, 1, 0.3, 1), color 0.4s; will-change: transform, top, left, font-size; }

/* LOGONUN POZİSYONLARI */
body.state-hero #dynamic-logo { top: 45vh; left: 50vw; transform: translate(-50%, -50%); font-size: 7vw; }
body.state-about #dynamic-logo { top: 50vh; left: 10vw; transform: translateY(-50%); font-size: 4vw; }
body.state-templates #dynamic-logo { top: 50vh; left: 50vw; transform: translate(-50%, -50%); font-size: 3.5vw; }
body.state-footer #dynamic-logo { top: 30px; left: 50px; transform: none; font-size: 1.5rem; }

@keyframes flicker { 0%, 100% { text-shadow: 0 0 20px var(--neon), 0 0 40px var(--neon); opacity: 1; } 50% { text-shadow: none; opacity: 0.4; } }
.is-flickering { animation: flicker 0.4s infinite; }
#dynamic-logo:not(.is-flickering) { text-shadow: 0 0 10px rgba(var(--neon), 0.4); }

/* GİRİŞ VE HAKKIMIZDA */
#hero-subtitle { position: fixed; top: 58vh; left: 50vw; transform: translateX(-50%); font-size: 1.5rem; font-weight: 300; opacity: 1; transition: opacity 0.5s ease; color: var(--text); }
body:not(.state-hero) #hero-subtitle { opacity: 0; pointer-events: none; }

.about-content { max-width: 600px; padding: 20px; transition: all 1s cubic-bezier(0.25, 1, 0.3, 1); transform: translateX(0); text-align: center; }
body.state-about .about-content { transform: translateX(15vw); text-align: left; }
.title { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; color: var(--neon); }
.about-content p { font-size: 1.2rem; line-height: 1.8; opacity: 0.8; }

/* KARTLAR */
.cards-wrapper { display: flex; justify-content: center; align-items: center; gap: 40px; width: 100%; max-width: 1200px; }
.cards-col { display: flex; flex-direction: column; gap: 40px; }
.center-spacer { width: 300px; } 

.card-anim-wrapper { opacity: 0; transform: translateY(80px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 1, 0.3, 1); }
.card-anim-wrapper.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }

.card { display: block; background: var(--card); padding: 20px; border-radius: 20px; width: 280px; text-decoration: none; color: var(--text); cursor: none; transition: 0.3s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-bottom: 3px solid var(--neon); }
.card-img { width: 100%; height: 160px; border-radius: 12px; margin-bottom: 15px; }

/* SÜREÇ (NASIL ÇALIŞIYORUM) */
.process-wrapper, .projects-wrapper { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 1000px; width: 100%; padding: 0 20px; }
.section-title { font-size: 2.5rem; margin-bottom: 60px; color: var(--text); }
.process-steps { display: flex; justify-content: space-between; gap: 30px; width: 100%; }
.step-box { flex: 1; background: var(--card); padding: 40px 30px; border-radius: 20px; text-align: left; transition: 0.3s; border: 1px solid rgba(128,128,128,0.1); }
.step-box:hover { transform: translateY(-10px); border-bottom: 3px solid var(--neon); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.step-num { font-size: 4rem; font-weight: 900; color: var(--neon); opacity: 0.2; margin-bottom: 10px; line-height: 1; }
.step-box h3 { font-size: 1.3rem; margin-bottom: 15px; }
.step-box p { font-size: 0.95rem; opacity: 0.7; line-height: 1.7; }

/* ÖNE ÇIKAN PROJELER */
.project-card { position: relative; width: 100%; max-width: 800px; height: 350px; background: linear-gradient(45deg, #1f1c2c, #928dab); border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.project-blur { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(var(--bg), 0.7); backdrop-filter: blur(15px); display: flex; align-items: center; justify-content: center; z-index: 1; transition: 0.4s; }
.project-blur h2 { font-size: 3rem; letter-spacing: 5px; color: var(--text); font-weight: 900; opacity: 0.8; }
.project-card:hover .project-blur { background: rgba(var(--bg), 0.8); }
.project-info { position: relative; z-index: 2; background: var(--card); padding: 20px 30px; border-radius: 15px; border-left: 4px solid var(--neon); }
.project-info h3 { margin-bottom: 5px; color: var(--text); }
.project-info p { opacity: 0.7; color: var(--text); font-size: 0.9rem; }

/* CTA VE KAYAN YAZI */
#cta { height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cta-btn { margin-top: 20px; padding: 15px 40px; font-size: 1.2rem; font-weight: bold; border-radius: 30px; background: transparent; border: 2px solid var(--neon); color: var(--neon); cursor: none; transition: 0.3s; }
.cta-btn:hover { background: var(--neon); color: var(--bg); }

.tech-marquee { width: 100%; padding: 20px 0; background: var(--card); border-top: 1px solid rgba(128,128,128,0.1); overflow: hidden; position: relative; }
.marquee-content { display: flex; white-space: nowrap; width: max-content; animation: scrollMarquee 20s linear infinite; }
.marquee-content span { font-size: 1.2rem; font-weight: 600; color: var(--text); opacity: 0.5; margin: 0 15px; text-transform: uppercase; letter-spacing: 2px; }
.marquee-content .dot { color: var(--neon); opacity: 1; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* FOOTER */
footer { background-color: var(--card); padding: 50px 50px 20px 50px; border-top: 1px solid rgba(128,128,128,0.1); }
.footer-container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 40px; max-width: 1000px; margin: 0 auto; border-bottom: 1px solid rgba(128,128,128,0.1); padding-bottom: 40px; }
.footer-brand { flex: 1; min-width: 250px; }
.footer-brand h2 { color: var(--neon); font-weight: 900; letter-spacing: 2px; margin-bottom: 15px; }
.footer-brand p { opacity: 0.7; max-width: 300px; font-size: 0.95rem; line-height: 1.6; }
.footer-contact { flex: 1; min-width: 250px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-contact h4 { margin-bottom: 10px; font-size: 1.1rem; }
.footer-contact a { text-decoration: none; color: var(--text); font-weight: 600; opacity: 0.8; transition: 0.3s; cursor: none; }
.footer-contact a:hover { opacity: 1; color: var(--neon); letter-spacing: 1px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; max-width: 1000px; margin: 20px auto 0 auto; opacity: 0.6; font-size: 0.85rem; }
.legal-links { display: flex; gap: 20px; }
.legal-links a { color: var(--text); text-decoration: none; cursor: none; }
.legal-links a:hover { color: var(--neon); }

/* MOBİL UYUM */
@media (max-width: 900px) {
    body.state-about .about-content { transform: translateX(0); text-align: center; }
    body.state-about #dynamic-logo { top: 20vh; left: 50vw; transform: translate(-50%, -50%); font-size: 3rem; }
    body.state-templates #dynamic-logo { top: 15vh; font-size: 2.5rem; }
    body.state-footer #dynamic-logo { top: 15px; left: 20px; font-size: 1.2rem; }
    .center-spacer { display: none; }
    .cards-wrapper { flex-direction: column; padding-top: 100px; }
    .cards-col { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .process-steps { flex-direction: column; }
    .footer-container { flex-direction: column; text-align: center; justify-content: center; } 
    .footer-contact { align-items: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; } 
}