/* ═══════════════════════════════════════════════════════════
   HAKTAN OKTAY — MODERN NEXT.JS / VERCEL AESTHETIC
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg-color: #000000;
  --panel-bg: #09090b; /* Zinc 950 */
  --panel-hover: #18181b; /* Zinc 900 */
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-main: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #3b82f6; /* Mavi / Next.js Blue */
  --gradient-text: linear-gradient(to right, #fff, #71717a);
  
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: rgba(59, 130, 246, 0.3); color: #fff; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08), transparent 25%);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { letter-spacing: -0.04em; font-weight: 700; color: var(--text-main); }
.dev-tag { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; font-weight: 700; margin-bottom: 1rem; display: block; }
.text-gradient { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ─── NAVIGATION ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.5rem 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--text-main); letter-spacing: -0.05em; }
.nav-links { display: flex; gap: 2rem; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: var(--text-main); }

/* ─── HERO SECTION ─── */
.hero { padding: 10rem 0 6rem; }
.hero-title { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin-bottom: 2.5rem; line-height: 1.8; }
.btn-group { display: flex; gap: 1rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 500; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; transition: var(--transition);
  cursor: pointer;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e5e5e5; }
.btn-secondary { background: var(--panel-bg); color: var(--text-main); border-color: var(--border-color); }
.btn-secondary:hover { background: var(--panel-hover); border-color: var(--border-hover); }

/* ─── SKILLS / TECH STACK & SPOTLIGHT EFFECT ─── */
.skills-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.skills-toggle { display: flex; gap: 0.5rem; background: #000; padding: 0.25rem; border-radius: 8px; border: 1px solid var(--border-color); }
.skill-btn { background: transparent; color: var(--text-muted); border: none; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.skill-btn:hover { color: var(--text-main); }
.skill-btn.active { background: var(--panel-hover); color: var(--text-main); border: 1px solid var(--border-hover); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.5); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.skills-grid:hover .skill-card::after { opacity: 1; }

.skill-card {
  background-color: var(--panel-bg);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.skill-card:hover { transform: translateY(-2px); }

/* The Border Spotlight */
.skill-card::before, .skill-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  transition: opacity 0.3s;
}
.skill-card::before {
  background: var(--panel-hover);
  z-index: 1;
  margin: 1px; /* 1px border simulation */
  border-radius: 11px;
}
/* The actual tracking glow */
.skill-card::after {
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y), 
    rgba(255, 255, 255, 0.4),
    transparent 40%
  );
  z-index: 0;
  opacity: 0;
}

.skill-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  background: transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tech-icon { width: 36px; height: 36px; margin-bottom: 1rem; }
.filter-invert { filter: invert(1); opacity: 0.8; }
.skill-content h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--text-main); }
.skill-content p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

.skill-card.hide { display: none; }
    
/* ─── BENTO GRID / SEC CARDS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ─── TERMINAL/CODE SNIPPET DECORATION ─── */
.code-block {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.code-prompt { color: #22c55e; margin-right: 8px; }
.code-cmd { color: #60a5fa; }
.code-output { color: #d4d4d8; margin-top: 8px; display: block; line-height: 1.6; }

/* ─── GITHUB LAYOUT PROJECTS ─── */
.github-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; }

.repo-sidebar {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  height: max-content;
}
.repo-header { display: flex; justify-content: space-between; padding: 1.25rem; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; font-weight: 500; }
.repo-count { background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; }
.repo-list { max-height: 500px; overflow-y: auto; }
/* Scrollbar settings for repo list */
.repo-list::-webkit-scrollbar { width: 6px; }
.repo-list::-webkit-scrollbar-track { background: transparent; }
.repo-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.repo-item { display: block; padding: 1.25rem; border-bottom: 1px solid var(--border-color); transition: var(--transition); text-decoration: none; }
.repo-item:hover { background: var(--panel-hover); }
.repo-item:last-child { border-bottom: none; }
.badge { display: inline-block; padding: 3px 8px; border: 1px solid var(--border-color); border-radius: 12px; font-size: 0.7rem; color: var(--text-muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

.pinned-section h4 { color: var(--text-muted); letter-spacing: 1px; font-size: 0.85rem; margin-bottom: 1.5rem; text-transform: uppercase; font-weight: 600; }
.pinned-card { display: flex; flex-direction: column; background: var(--panel-bg); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 16px; transition: var(--transition); }
.pinned-card:hover { border-color: var(--border-hover); background: var(--panel-hover); }
.tag { font-family: var(--font-mono); font-size: 0.75rem; color: #d4d4d8; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; background: rgba(255,255,255,0.02); }
.demo-link { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); text-decoration: none; padding: 4px 8px; border-radius: 6px; transition: var(--transition); }
.demo-link:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.5rem; display: block; }
.contact-input {
  width: 100%;
  background: #000;
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 8px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.contact-input:focus { outline: none; border-color: var(--accent); }
    
/* ─── GENERAL SECTIONS ─── */
.section { padding: 9rem 0; }
.section-title { font-size: 2rem; margin-bottom: 3.5rem; }
    
/* ─── FOOTER ─── */
.footer { padding: 3rem 0; border-top: 1px solid var(--border-color); text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .grid-2, .grid-3, .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .nav-links { display: none; }
}
