:root {
  --bg: #080b12;
  --bg-2: #0d111a;
  --card: rgba(17, 23, 35, 0.78);
  --card-solid: #111722;
  --text: #f1f5f9;
  --muted: #9aa6b7;
  --line: rgba(255,255,255,.09);
  --accent: #7c6cff;
  --accent-2: #4fd1c5;
  --shadow: 0 30px 80px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 8%, rgba(124,108,255,.13), transparent 26%),
    radial-gradient(circle at 20% 40%, rgba(79,209,197,.06), transparent 24%),
    var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
::selection { background: rgba(124,108,255,.35); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: min(1160px, calc(100% - 44px)); margin: 0 auto; }
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.header { position: fixed; top: 0; width: 100%; z-index: 50; backdrop-filter: blur(18px); background: rgba(8,11,18,.65); border-bottom: 1px solid rgba(255,255,255,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; letter-spacing: -.06em; }
.logo span, .gradient-text { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: #b9c2d0; font-size: .92rem; transition: color .2s ease; }
.nav-links a:hover { color: #fff; }
.nav-cta { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; }
.menu-toggle { display: none; background: none; border: 0; color: white; padding: 8px; }
.menu-toggle span { display:block; width: 23px; height: 2px; margin: 4px 0; background: white; }

.hero { min-height: 860px; display:grid; grid-template-columns: 1.03fr .97fr; gap: 50px; align-items:center; padding-top: 70px; }
.eyebrow { display:flex; align-items:center; gap:10px; color:#b8c0cc; font-weight:600; font-size:.84rem; letter-spacing:.08em; text-transform:uppercase; }
.pulse { width:8px; height:8px; border-radius:50%; background:var(--accent-2); box-shadow:0 0 0 7px rgba(79,209,197,.09); }
.hero h1 { margin: 20px 0 20px; max-width: 780px; font-family:'Space Grotesk',sans-serif; font-size: clamp(3.3rem, 7vw, 6.5rem); line-height:.98; letter-spacing:-.065em; }
.hero-text { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:47px; padding: 0 20px; border-radius: 12px; font-weight:700; font-size:.92rem; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color:white; background: linear-gradient(135deg, #7564ff, #988eff); box-shadow:0 14px 28px rgba(124,108,255,.22); }
.btn-ghost { border:1px solid var(--line); color:#d4dbe6; background:rgba(255,255,255,.02); }
.hero-meta { display:flex; flex-wrap:wrap; gap:9px; margin-top:28px; }
.hero-meta span, .tags span, .project-tech span, .experience-points span { border:1px solid var(--line); background:rgba(255,255,255,.025); color:#aeb8c8; border-radius:999px; padding:6px 10px; font-size:.76rem; }
.hero-visual { position:relative; min-height:530px; display:grid; place-items:center; }
.orb { position:absolute; border-radius:50%; filter:blur(1px); }
.orb-1 { width:320px; height:320px; right:2%; top:16%; background: radial-gradient(circle at 35% 30%, rgba(124,108,255,.38), rgba(124,108,255,.08) 55%, transparent 70%); }
.orb-2 { width:250px; height:250px; left:5%; bottom:7%; background: radial-gradient(circle at 55% 45%, rgba(79,209,197,.17), transparent 68%); }
.terminal-card { width:min(100%, 510px); border:1px solid rgba(255,255,255,.11); background:rgba(10,14,22,.8); box-shadow:var(--shadow); border-radius:18px; overflow:hidden; transform:rotate(2deg); position:relative; z-index:2; backdrop-filter:blur(15px); }
.terminal-top { display:flex; align-items:center; gap:14px; padding:13px 16px; border-bottom:1px solid var(--line); color:#7f8a9b; font-size:.76rem; }
.terminal-dots { display:flex; gap:5px; }
.terminal-dots i { width:8px; height:8px; border-radius:50%; background:#505969; display:block; }
.terminal-body { padding:24px; font: 500 .87rem/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color:#d5dae3; }
.terminal-body .muted { color:#7168e5; }
.code-output { color:#68d6c7; margin: 0 0 4px 18px; }
.stack-line { display:flex; gap:10px; align-items:center; margin-left:18px; color:#e6eaf0; }
.stack-line b { width:35px; color:#8c81ff; font-size:.68rem; }
.stack-line span { color:#788497; }
.cursor { width:7px; height:17px; background:#8f84ff; display:inline-block; vertical-align:middle; margin-top:7px; animation:blink 1s steps(1) infinite; }
@keyframes blink { 50%{opacity:0;} }

.marquee-wrap {
    border-block: 1px solid var(--line);
    overflow: hidden;
    background: rgba(255,255,255,.015);
}

.marquee {
    display: flex;
    width: max-content;
    padding: 15px 0;
    will-change: transform;
    animation: marquee 28s linear infinite;
}

/* İki özdeş grup yan yana durur; animasyon tam bir grup genişliği (-50%) kayar.
   min-width: 100vw sayesinde geniş ekranlarda da şerit boşluk bırakmaz. */
.marquee-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    min-width: 100vw;
    padding-right: 2rem;
}

.marquee-group span {
    white-space: nowrap;
    color: #778394;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.section { padding:125px 0; }
.section-alt { border-block:1px solid var(--line); background:linear-gradient(180deg, rgba(255,255,255,.015), rgba(255,255,255,.008)); }
.section-heading { display:grid; grid-template-columns:74px 1fr; gap:20px; align-items:start; margin-bottom:54px; }
.section-number { color:#6459d4; font:700 .74rem/1 'Space Grotesk'; padding-top:12px; }
.section-kicker { text-transform:uppercase; letter-spacing:.12em; color:#727d8f; font-size:.68rem; font-weight:800; margin:0 0 7px; }
h2 { margin:0; font:600 clamp(2.2rem,4.5vw,4.15rem)/1.02 'Space Grotesk', sans-serif; letter-spacing:-.055em; }
h2 span { color:#848b9a; }
.about-grid { display:grid; grid-template-columns:1.18fr .82fr; gap:80px; }
.about-main { color:#aeb7c6; font-size:1.02rem; max-width:700px; }
.about-main .lead { color:#e2e7ef; font-size:1.28rem; line-height:1.55; margin-top:0; }
.about-stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.stat-card { min-height:160px; border:1px solid var(--line); border-radius:16px; padding:18px; background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); display:flex; flex-direction:column; justify-content:space-between; }
.stat-card strong { font:700 1rem 'Space Grotesk'; color:#8f84ff; }
.stat-card span { font-weight:700; font-size:.95rem; }
.stat-card small { color:#727e90; }

.skills-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.skill-card { border:1px solid var(--line); border-radius:18px; background:var(--card); padding:24px; min-height:295px; transition:transform .25s ease, border-color .25s ease; }
.skill-card:hover, .project-card:hover { transform:translateY(-6px); border-color:rgba(124,108,255,.35); }
.skill-icon { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:rgba(124,108,255,.1); color:#9087ff; font-size:1.25rem; margin-bottom:22px; }
.skill-card h3 { margin:0 0 9px; font:600 1.15rem 'Space Grotesk'; }
.skill-card p { color:#7f8999; font-size:.88rem; margin:0 0 20px; }
.tags { display:flex; flex-wrap:wrap; gap:7px; }

.timeline { position:relative; max-width:950px; margin-left:95px; }
.timeline::before { content:""; position:absolute; left:-33px; top:9px; bottom:15px; width:1px; background:linear-gradient(180deg, rgba(124,108,255,.5), rgba(255,255,255,.08)); }
.timeline-item { position:relative; display:grid; grid-template-columns:150px 1fr; gap:34px; padding-bottom:68px; }
.timeline-marker { position:absolute; left:-39px; top:5px; width:13px; height:13px; border-radius:50%; background:#111722; border:3px solid #7367f5; box-shadow:0 0 0 6px rgba(115,103,245,.08); }
.timeline-date { color:#747f91; font:700 .75rem 'Space Grotesk'; letter-spacing:.06em; padding-top:2px; }
.role-company { color:#8479fa; font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; }
.timeline-content h3 { margin:7px 0 10px; font:600 1.55rem 'Space Grotesk'; letter-spacing:-.035em; }
.timeline-content p { color:#929dae; max-width:760px; margin:0 0 20px; }
.experience-points { display:flex; flex-wrap:wrap; gap:7px; }

.projects-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.project-card { border:1px solid var(--line); border-radius:18px; background:var(--card); padding:27px; min-height:310px; display:flex; flex-direction:column; transition:transform .25s ease, border-color .25s ease; }
.project-featured { background:linear-gradient(145deg, rgba(124,108,255,.11), rgba(255,255,255,.025) 45%, rgba(79,209,197,.04)); }
.project-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:50px; }
.project-index { color:#7e73eb; font:700 .72rem 'Space Grotesk'; }
.project-type { color:#6f7a8b; font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; font-weight:800; }
.project-card h3 { margin:0 0 12px; max-width:620px; font:600 1.55rem/1.12 'Space Grotesk'; letter-spacing:-.035em; }
.project-card p { margin:0; color:#919baa; font-size:.9rem; }
.project-tech { display:flex; flex-wrap:wrap; gap:7px; margin-top:auto; padding-top:28px; }

.cta-section { padding-top:55px; padding-bottom:110px; }
.cta-box { border:1px solid var(--line); border-radius:24px; padding:55px; background:radial-gradient(circle at 80% 30%, rgba(124,108,255,.14), transparent 28%), #0d121c; display:flex; align-items:end; justify-content:space-between; gap:35px; }
.cta-box h2 { max-width:720px; }
.cta-text { color:#8994a5; max-width:600px; margin:15px 0 0; }
.contact-actions { display:flex; flex-direction:column; align-items:flex-start; gap:18px; flex-shrink:0; }
.text-link { color:#9a91ff; font-size:.88rem; font-weight:700; }
.text-link:hover { color:white; }
.footer { border-top:1px solid var(--line); padding:25px 0 35px; display:flex; align-items:center; justify-content:space-between; gap:20px; color:#687384; font-size:.78rem; }
.footer a { color:#8993a5; }

/* Gizli durum yalnızca JS çalışırken ve eleman görünene kadar uygulanır.
   Görünür durumda opacity/transform bildirilmez; böylece kartların hover efekti ve
   kendi transition'ları (.skill-card, .project-card) ezilmez. */
.js .reveal:not(.visible) { opacity:0; transform:translateY(18px); }
.reveal.visible { animation:reveal-in .7s ease backwards; }
@keyframes reveal-in { from { opacity:0; transform:translateY(18px); } }
.reveal.visible.delay-1 { animation-delay:.08s; }
.reveal.visible.delay-2 { animation-delay:.16s; }
.reveal.visible.delay-3 { animation-delay:.24s; }

@media (max-width: 980px) {
  .hero { grid-template-columns:1fr; min-height:auto; padding-top:145px; padding-bottom:100px; }
  .hero-visual { min-height:440px; }
  .skills-grid { grid-template-columns:1fr 1fr; }
  .about-grid { gap:45px; }
  .timeline { margin-left:30px; }
  .timeline-item { grid-template-columns:1fr; gap:8px; }
  .timeline::before { left:-21px; }.timeline-marker { left:-27px; }
}
@media (max-width: 720px) {
  .container { width:min(100% - 28px, 1160px); }
  .nav-links { position:absolute; top:75px; left:14px; right:14px; display:none; flex-direction:column; align-items:stretch; gap:5px; padding:12px; border:1px solid var(--line); border-radius:16px; background:rgba(13,17,26,.96); box-shadow:var(--shadow); }
  .nav-links.open { display:flex; }
  .nav-links a { padding:12px 13px; }.nav-cta { text-align:center; }
  .menu-toggle { display:block; }
  .hero h1 { font-size:clamp(2.8rem, 14vw, 4.9rem); }
  .hero-text { font-size:1rem; }
  .hero-visual { min-height:390px; }
  .terminal-card { transform:none; }
  .stack-line { flex-wrap:wrap; }
  .stack-line span { width:100%; padding-left:45px; margin-top:-7px; }
  .section { padding:88px 0; }
  .section-heading { grid-template-columns:42px 1fr; gap:10px; margin-bottom:40px; }
  .about-grid, .skills-grid, .projects-grid { grid-template-columns:1fr; }
  .about-stats { grid-template-columns:1fr 1fr; }
  .skill-card { min-height:auto; }
  .timeline { margin-left:24px; }
  .timeline-item { padding-bottom:50px; }
  .timeline::before { left:-16px; }.timeline-marker { left:-22px; }
  .cta-box { padding:30px 24px; flex-direction:column; align-items:flex-start; }
  .contact-actions { flex-direction:row; align-items:center; flex-wrap:wrap; }
  .footer { flex-wrap:wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation:none !important; transition:none !important; }
  .js .reveal:not(.visible) { opacity:1; transform:none; }
}
