﻿/*
Theme Name: Emir Portfolio
Theme URI: https://github.com/emirahmetyildiz
Author: Emir Ahmet Yildiz
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: emir-portfolio
*/

/* TOKENS */
:root {
  --bg:        #09090b;
  --surface:   #111113;
  --surface2:  #18181b;
  --border:    #27272a;
  --border2:   #3f3f46;
  --text:      #fafafa;
  --muted:     #71717a;
  --muted2:    #a1a1aa;
  --accent:    #a78bfa;
  --accent-rgb:167,139,250;
  --green:     #4ade80;
  --radius:    12px;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --trans:     .22s cubic-bezier(.4,0,.2,1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::selection { background: rgba(167,139,250,.25); }

/* AMBIENT */
body::after {
  content: ''; position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(167,139,250,.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* NAV */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem,5vw,4rem);
  transition: border-color var(--trans), background var(--trans);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(9,9,11,.9); backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav-logo {
  font-size: .88rem; font-weight: 700; letter-spacing: .5px;
  font-family: var(--mono); display: flex; align-items: center; gap: .45rem;
}
.nav-logo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 2.5s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links a {
  font-size: .82rem; font-weight: 500; color: var(--muted2);
  padding: .38rem .75rem; border-radius: 6px;
  transition: color var(--trans), background var(--trans);
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-links a.nav-cta {
  color: var(--text); background: var(--surface2);
  border: 1px solid var(--border2); padding: .38rem 1rem;
}
.nav-links a.nav-cta:hover { border-color: var(--accent); color: var(--accent); background: rgba(167,139,250,.06); }
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: .5rem; z-index: 101; }
.hamburger span { width: 22px; height: 1.5px; background: var(--muted2); border-radius: 2px; transition: all .3s; display: block; }

/* LAYOUT */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 clamp(1.5rem,5vw,4rem); position: relative; z-index: 1; }
section { padding: 7rem 0; }

/* SECTION LABELS */
.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem; font-family: var(--mono);
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); display: block; }
.section-title {
  font-size: clamp(1.8rem,4vw,2.75rem); font-weight: 700; letter-spacing: -1.5px;
  color: var(--text); line-height: 1.15; margin-bottom: .75rem;
}
.section-desc { font-size: .95rem; color: var(--muted2); max-width: 480px; }

/* HERO */
#hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  opacity: .35;
}
.hero-content { position: relative; z-index: 1; padding-top: 5rem; }
.hero-status {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 99px; padding: .35rem 1rem .35rem .6rem;
  font-size: .78rem; color: var(--muted2); margin-bottom: 2rem;
  font-family: var(--mono);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green { 0%,100%{box-shadow:0 0 8px #4ade80} 50%{box-shadow:0 0 16px #4ade80,0 0 4px #4ade80} }
.hero-name { font-size: clamp(2.8rem,8vw,5.5rem); font-weight: 800; letter-spacing: -3px; line-height: 1; margin-bottom: 1.5rem; }
.hero-name .word { display: block; }
.hero-name .word-accent {
  background: linear-gradient(90deg, var(--accent) 0%, #c4b5fd 50%, var(--accent) 100%);
  background-size: 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { 0%{background-position:0%} 100%{background-position:200%} }
.hero-desc { font-size: clamp(1rem,2vw,1.1rem); color: var(--muted2); max-width: 520px; line-height: 1.85; margin-bottom: 2.5rem; }
.hero-desc strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 4rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; border-radius: 8px; padding: .65rem 1.4rem; transition: all var(--trans); cursor: pointer; border: none; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #e4e4e7; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.btn-secondary { background: transparent; color: var(--muted2); border: 1px solid var(--border2); }
.btn-secondary:hover { color: var(--text); background: var(--surface2); }
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero-stat-num { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; color: var(--text); font-family: var(--mono); }
.hero-stat-label { font-size: .78rem; color: var(--muted); margin-top: .15rem; }

/* ABOUT */
#about { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; align-items: start; }
.about-photo-wrap { position: sticky; top: 80px; }
.about-photo { width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--border2); background: var(--surface2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.about-edu-grid { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem; }
.edu-item { padding: .85rem 1rem; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--trans); }
.edu-item:hover { border-color: var(--border2); }
.edu-item-title { font-size: .83rem; font-weight: 600; color: var(--text); }
.edu-item-sub { font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.edu-badge { display: inline-block; margin-top: .4rem; font-size: .68rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: .15rem .5rem; border-radius: 4px; background: rgba(167,139,250,.12); color: var(--accent); font-family: var(--mono); }
.about-body h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.5px; margin-bottom: 1rem; }
.about-body p { font-size: .95rem; color: var(--muted2); line-height: 1.85; margin-bottom: 1rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0; }
.tag { font-size: .75rem; font-weight: 500; padding: .3rem .8rem; border-radius: 6px; background: var(--surface2); border: 1px solid var(--border); color: var(--muted2); transition: all var(--trans); font-family: var(--mono); }
.tag:hover { border-color: var(--border2); color: var(--text); }

/* PROJECTS */
#projects { background: var(--bg); }
.projects-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-top: 3rem; }
.project-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: 1.75rem 2rem; background: var(--surface); transition: background var(--trans); border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.project-item:last-child { border-bottom: none; }
.project-item:hover { background: var(--surface2); }
.project-item-left { display: flex; align-items: flex-start; gap: 1.25rem; }
.project-num { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: .25rem; flex-shrink: 0; min-width: 1.5rem; }
.project-item-name { font-size: 1.05rem; font-weight: 600; letter-spacing: -.3px; color: var(--text); margin-bottom: .35rem; }
.project-item-desc { font-size: .85rem; color: var(--muted2); line-height: 1.6; }
.project-item-tech { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.project-item-tech span { font-size: .7rem; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; font-family: var(--mono); color: var(--muted); }
.project-item-tech span:not(:last-child)::after { content: '/'; margin-left: .4rem; color: var(--border2); }
.project-item-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.project-arrow { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all var(--trans); }
.project-item:hover .project-arrow { border-color: var(--accent); color: var(--accent); background: rgba(167,139,250,.08); }
.project-live-tag { font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-family: var(--mono); color: var(--green); background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2); padding: .2rem .6rem; border-radius: 4px; }

/* SKILLS */
#skills { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem; }
.skill-group-title { font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; font-family: var(--mono); }
.skill-list { display: flex; flex-direction: column; gap: .5rem; }
.skill-row { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface2); transition: border-color var(--trans); }
.skill-row:hover { border-color: var(--border2); }
.skill-row-left { display: flex; align-items: center; gap: .75rem; }
.skill-icon { font-size: 1rem; width: 28px; text-align: center; }
.skill-name { font-size: .88rem; font-weight: 500; color: var(--text); }
.skill-level { font-size: .7rem; font-family: var(--mono); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: .18rem .6rem; border-radius: 4px; }
.level-beginner { background: rgba(251,191,36,.1); color: #fbbf24; }
.level-intermediate { background: rgba(167,139,250,.1); color: var(--accent); }
.level-advanced { background: rgba(74,222,128,.1); color: var(--green); }
.tech-wall { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.tech-chip { font-size: .75rem; font-family: var(--mono); font-weight: 500; padding: .35rem .8rem; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); color: var(--muted2); transition: all var(--trans); }
.tech-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(167,139,250,.06); }

/* CONTACT */
#contact { background: var(--bg); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; margin-top: 3rem; align-items: start; }
.contact-links { display: flex; flex-direction: column; gap: .5rem; }
.contact-link-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted2); font-size: .875rem; transition: all var(--trans); }
.contact-link-item:hover { border-color: var(--border2); color: var(--text); background: var(--surface2); }
.contact-link-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--surface2); font-size: .9rem; flex-shrink: 0; border: 1px solid var(--border); }
.contact-link-label { font-size: .7rem; color: var(--muted); display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .5px; }
.contact-link-value { font-size: .85rem; font-weight: 500; color: var(--text); }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; }
.form-title { font-size: 1rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--text); }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field label { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: .45rem; letter-spacing: .5px; text-transform: uppercase; font-family: var(--mono); }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .75rem 1rem; color: var(--text); font-family: var(--font); font-size: .875rem; outline: none; transition: border-color var(--trans), box-shadow var(--trans); resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(167,139,250,.12); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.btn-send { width: 100%; padding: .85rem; background: var(--text); color: var(--bg); font-size: .875rem; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; font-family: var(--font); transition: all var(--trans); letter-spacing: .2px; }
.btn-send:hover { background: #e4e4e7; transform: translateY(-1px); }

/* FOOTER */
#footer { border-top: 1px solid var(--border); padding: 2rem 0; background: var(--surface); position: relative; z-index: 1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-left { font-size: .8rem; color: var(--muted); font-family: var(--mono); }
.footer-left span { color: var(--accent); }
.footer-socials { display: flex; gap: .5rem; }
.footer-social { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; transition: all var(--trans); }
.footer-social:hover { border-color: var(--border2); color: var(--text); background: var(--surface2); }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.show { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity .7s ease; }
.fade-in.show { opacity: 1; }

/* CURSOR */
.c-dot,.c-ring { position: fixed; pointer-events: none; border-radius: 50%; z-index: 9999; }
.c-dot { width: 5px; height: 5px; background: var(--accent); margin: -2.5px 0 0 -2.5px; }
.c-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 1px solid rgba(167,139,250,.4); transition: width .25s, height .25s, margin .25s, border-color .25s, background .25s; }
.c-ring.hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-color: var(--accent); background: rgba(167,139,250,.06); }
@media (pointer: coarse) { .c-dot,.c-ring { display: none; } }

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo-wrap { position: static; max-width: 200px; }
  .skills-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; }
  .project-item { grid-template-columns: 1fr; gap: .75rem; }
  .project-item-right { justify-content: flex-start; }
  .hero-stats { gap: 1.5rem; }
}
@media (max-width: 480px) {
  section { padding: 5rem 0; }
  .project-item { padding: 1.25rem 1.25rem; }
  .contact-form-wrap { padding: 1.5rem; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; inset: 0; background: rgba(9,9,11,.97); backdrop-filter: blur(24px);
    flex-direction: column; justify-content: center; gap: .5rem;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.77,0,.175,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; padding: .75rem 1.5rem; }
}
