/* ============================================
   PROJEKTID.CSS - COMPLETE STANDALONE DESIGN
   Modern Code Portfolio Theme
   ============================================ */

/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  /* Colors - Neon Theme */
  --neon-cyan: #00f3ff;
  --neon-pink: #ff006e;
  --neon-purple: #8b5cf6;
  --neon-green: #00ff88;
  --neon-orange: #ff6b35;
  
  /* Backgrounds */
  --bg-dark: #0a0a0a;
  --bg-card: rgba(26, 26, 26, 0.8);
  --bg-hover: rgba(40, 40, 40, 0.9);
  
  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-dim: #606060;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Code Font for Specific Elements */
.code-symbol,
.code-text,
.bracket,
.tech-tags,
.project-link {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ============================================
   SKIP LINK (Accessibility)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--neon-cyan);
  color: var(--bg-dark);
  padding: var(--space-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
  z-index: 10000;
}

/* ============================================
   NAVIGATION - STANDALONE
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: var(--transition-normal);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.logo-bracket {
  color: var(--neon-cyan);
  font-weight: 800;
}

.logo:hover .logo-bracket {
  color: var(--neon-pink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-normal);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-sm);
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 8px;
  transition: var(--transition-fast);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transform: translateX(-50%);
  transition: var(--transition-normal);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 80%;
}

.nav-links a.active {
  color: var(--neon-cyan);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) var(--space-lg);
  margin-top: 60px; /* Nav height */
}

/* Animated Background */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 40%);
  animation: bgFloat 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes bgFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
    opacity: 0.8;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
    opacity: 0.7;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 50px;
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--neon-cyan);
}

.code-symbol {
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(30deg);
  }
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.mouse {
  width: 20px;
  height: 30px;
  border: 2px solid var(--text-dim);
  border-radius: 10px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 2px;
  height: 6px;
  background: var(--text-dim);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 16px;
  }
}

/* ============================================
   FILTER SECTION
   ============================================ */
.filter-section {
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.bracket {
  color: var(--neon-cyan);
  font-weight: 800;
  margin: 0 0.5rem;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: var(--bg-hover);
  border-color: var(--neon-cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.filter-icon {
  font-size: 1.2rem;
}

/* ============================================
   PROJECTS GRID
   ============================================ */
.projects-section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* ============================================
   PROJECT CARD
   ============================================ */
.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  animation: cardFadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* Glow Effect */
.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-slow);
  pointer-events: none;
}

.project-card:hover .card-glow {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-cyan);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 243, 255, 0.3),
    0 0 20px rgba(0, 243, 255, 0.2);
}

/* Featured Card - Larger */
.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, 
    rgba(0, 243, 255, 0.05) 0%, 
    rgba(139, 92, 246, 0.05) 100%
  );
  border: 2px solid rgba(0, 243, 255, 0.3);
}

/* Future Card - Dimmed */
.project-card.future {
  opacity: 0.6;
  border-style: dashed;
}

.project-card.future:hover {
  opacity: 1;
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.project-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}

.featured-badge,
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-badge {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 110, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 0, 110, 0);
  }
}

.status-badge {
  background: rgba(139, 92, 246, 0.2);
  color: var(--neon-purple);
  border: 1px solid var(--neon-purple);
}

/* Project Title & Description */
.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

/* Project Features */
.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.feature {
  font-size: 0.85rem;
  color: var(--neon-green);
  padding: 0.25rem 0;
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}

.tag {
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

/* Specific Tag Colors */
.tag.html { color: #e34c26; border-color: #e34c26; }
.tag.css { color: #264de4; border-color: #264de4; }
.tag.js { color: #f0db4f; border-color: #f0db4f; }
.tag.python { color: #3776ab; border-color: #3776ab; }
.tag.react { color: #61dafb; border-color: #61dafb; }
.tag.sql { color: #00758f; border-color: #00758f; }
.tag.devops { color: #ff6b35; border-color: #ff6b35; }

/* Project Link */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--neon-cyan);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: var(--transition-normal);
  margin-top: auto;
}

.project-link:hover {
  background: var(--neon-pink);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 243, 255, 0.4);
}

.link-arrow {
  transition: var(--transition-fast);
}

.project-link:hover .link-arrow {
  transform: translateX(5px);
}

/* ============================================
   VIEW TOGGLE
   ============================================ */
.view-toggle {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.toggle-btn {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-btn:hover {
  background: var(--bg-hover);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.toggle-btn.active {
  background: var(--neon-cyan);
  color: var(--bg-dark);
  border-color: var(--neon-cyan);
}

/* ============================================
   TECH STATS SECTION
   ============================================ */
.tech-stats {
  padding: var(--space-2xl) 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.stat-box {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition-normal);
}

.stat-box:hover {
  border-color: var(--neon-cyan);
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.stat-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.stat-fill {
  height: 100%;
  width: var(--width, 0);
  border-radius: 10px;
  transition: width 2s ease-out;
  animation: fillBar 2s ease-out;
}

@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    width: var(--width);
  }
}

.stat-fill.python { background: linear-gradient(90deg, #3776ab, #ffdd57); }
.stat-fill.javascript { background: linear-gradient(90deg, #f0db4f, #ff6b35); }
.stat-fill.html { background: linear-gradient(90deg, #e34c26, #264de4); }

.stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  /* Navigation */
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-lg);
    transform: translateX(-100%);
    transition: var(--transition-normal);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links a {
    width: 100%;
    padding: var(--space-sm) var(--space-lg);
    font-size: 1.1rem;
  }
  
  /* Hero */
  .hero {
    min-height: 80vh;
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .project-card.featured {
    grid-column: span 1;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  .filter-buttons {
    flex-direction: column;
  }
  
  .filter-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
  display: none !important;
}

/* Filter animations */
.project-card.filter-out {
  animation: filterOut 0.3s ease-out forwards;
}

.project-card.filter-in {
  animation: filterIn 0.3s ease-out forwards;
}

@keyframes filterOut {
  to {
    opacity: 0;
    transform: scale(0.8);
    display: none;
  }
}

@keyframes filterIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}