/* =========================================
   tayfun.dev - Base Styles & Theme
   ========================================= */

:root {
  /* Color Palette */
  --bg-color: #0d0f12; /* Deep charcoal / almost black */
  --panel-bg: rgba(26, 30, 36, 0.65); /* Glassmorphism background */
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;

  /* Neon Accents */
  --neon-green: #10b981;
  --neon-cyan: #06b6d4;
  --neon-purple: #8b5cf6;
  --accent: var(--neon-cyan);

  /* Terminal Colors */
  --term-bg: #000000;
  --term-text: #10b981;
  --term-header: #1e1e1e;

  /* Typography */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Metrics & Transitions */
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.text-accent {
  color: var(--accent);
}
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Glassmorphism Classes */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(13, 15, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  z-index: 100;
}

.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.interactive:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.1);
}

/* Layout */
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--accent);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
}

.icon-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 4rem) 2rem 4rem;
}

.section {
  margin-bottom: 8rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

.section-title .line {
  flex-grow: 1;
  height: 1px;
  background: var(--panel-border);
  margin-left: 1.5rem;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 4rem;
}

.headline {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.subheadline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  margin-bottom: 2rem;
  font-weight: 400;
}

.subheadline .accent {
  color: var(--accent);
  margin: 0 0.5rem;
}

.intro-text {
  font-size: 1.1rem;
  max-width: 600px;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.btn-primary:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.btn-secondary {
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-type {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-purple);
}

.icon {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Terminal Window Styles */
.terminal-window {
  background: var(--term-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
}

.terminal-header {
  background: var(--term-header);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
}

.dots {
  display: flex;
  gap: 8px;
}
.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dots .red {
  background: #ff5f56;
}
.dots .yellow {
  background: #ffbd2e;
}
.dots .green {
  background: #27c93f;
}

.term-title {
  flex-grow: 1;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.terminal-body {
  padding: 1.5rem;
  color: var(--term-text);
  font-size: 0.95rem;
}

.prompt {
  color: var(--neon-purple);
  margin-right: 0.5rem;
}

.term-list {
  list-style: none;
  margin: 1rem 0;
  color: var(--text-primary);
}

.term-list li {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--term-text);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Tech Stack */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1.5rem;
}

.stack-item {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.stack-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--neon-cyan);
  transform: translateY(-5px);
}

/* Contact */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-btn {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  font-family: var(--font-mono);
  transition: var(--transition);
}

.contact-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

/* Footer & Status */
footer {
  padding-top: 2rem;
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  margin-right: 6px;
}

/* Command Palette Overlay */
.palette-overlay,
.term-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
  opacity: 1;
  transition: opacity 0.2s;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

.palette-modal {
  width: 90%;
  max-width: 600px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.palette-search {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--panel-border);
}

.palette-search svg {
  color: var(--text-secondary);
  margin-right: 1rem;
}
.palette-search input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.1rem;
  flex-grow: 1;
  outline: none;
}

.palette-footer {
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--panel-border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  gap: 1.5rem;
}

kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin: 0 2px;
}

/* Utility / Styled List */
.styled-list {
  list-style: none;
  margin-top: 1rem;
}

.styled-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.styled-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
}
