/* ===== MODERN DESIGN - INSPIRED BY YASIO.DEV ===== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00ff88;
  --primary-dark: #00cc6a;
  --accent: #00ff88;
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border: #1a1a1a;
  --code-bg: #0d0d0d;
  --gradient-1: #00ff88;
  --gradient-2: #00ccff;
  --gradient-3: #ff00ff;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== LOADER ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-content {
  text-align: center;
}

.glitch {
  font-size: 4rem;
  font-weight: 900;
  font-family: 'Fira Code', monospace;
  color: var(--primary);
  position: relative;
  animation: glitch 1s infinite;
  letter-spacing: 0.5rem;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-top 0.3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  color: #00ccff;
}

.glitch::after {
  animation: glitch-bottom 0.4s infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  color: #ff00ff;
}

@keyframes glitch {
  0%, 100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-top {
  0%, 100% {
    transform: translate(0);
  }
  50% {
    transform: translate(-3px, -3px);
  }
}

@keyframes glitch-bottom {
  0%, 100% {
    transform: translate(0);
  }
  50% {
    transform: translate(3px, 3px);
  }
}

.loader-bar {
  width: 300px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 2rem;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
  width: 0;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
}

.logo-text .accent {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--gradient-1);
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--gradient-2);
  bottom: -200px;
  right: -200px;
  animation-delay: 5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--gradient-3);
  top: 50%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(50px, 50px);
  }
  66% {
    transform: translate(-50px, 100px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

/* ===== HERO PHOTO ===== */
.hero-photo {
  position: relative;
  z-index: 2;
}

.photo-name {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.05em;
}

.photo-frame {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.photo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.4), transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-dark);
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.photo-border {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gradient-2), var(--gradient-3));
  z-index: 0;
  animation: rotateBorder 8s linear infinite;
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.photo-decoration {
  position: relative;
  margin-top: 2.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.code-snippet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.code-comment {
  color: var(--text-muted);
  font-style: italic;
}

.code-line {
  color: var(--text-secondary);
}

.code-keyword {
  color: #ff79c6;
}

.code-var {
  color: #bd93f9;
}

.code-string {
  color: var(--primary);
}

.terminal-line {
  font-family: 'Fira Code', monospace;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.prompt {
  color: var(--primary);
}

.type-text {
  animation: typing 0.5s steps(6) 0.5s forwards;
  overflow: hidden;
  display: inline-block;
  width: 0;
}

@keyframes typing {
  to {
    width: 6ch;
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.accent {
  color: var(--primary);
}

.rotating-text {
  display: inline-block;
  position: relative;
  height: 1em;
  width: auto;
  min-width: clamp(260px, 30vw, 420px);
  vertical-align: baseline;
}

.rotating-text span {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

.rotating-text span.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.2rem;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(20px);
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  font-family: 'Fira Code', monospace;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 3rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.timeline-marker {
  position: absolute;
  left: -6px;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-dark), 0 0 20px rgba(0, 255, 136, 0.5);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--primary);
  transform: translateX(5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.timeline-header {
  margin-bottom: 1.5rem;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-company {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  margin-right: 1rem;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: 'Fira Code', monospace;
}

.timeline-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.timeline-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.timeline-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary);
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-family: 'Fira Code', monospace;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  padding-top: 3.5rem;
  transition: all 0.4s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.project-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.project-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  font-family: 'Fira Code', monospace;
}

.project-status-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0.25rem;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.project-status-badge.production {
  background: rgba(0, 255, 136, 0.2);
  color: var(--primary);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.project-status-badge.internal {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.project-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  border: 2px solid transparent;
}

.project-link-btn.primary {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.project-link-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

.project-link-btn.secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.project-link-btn.secondary:hover {
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-2px);
}

.project-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  padding: 0.5rem 0;
  justify-content: center;
}

.project-note i {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.project-link:hover {
  gap: 1rem;
}

/* ===== CODE BLOCK ===== */
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin: 0 auto;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.code-title {
  font-family: 'Fira Code', monospace;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.code-content {
  padding: 2rem;
  overflow-x: auto;
}

.code-content pre {
  margin: 0;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.code-content code {
  font-family: inherit;
}

.keyword {
  color: #ff79c6;
}

.class-name {
  color: #50fa7b;
}

.function {
  color: #8be9fd;
}

.property {
  color: #f1fa8c;
}

.string {
  color: #f1fa8c;
}

.comment {
  color: #6272a4;
  font-style: italic;
}

.variable {
  color: #bd93f9;
}

/* ===== CONTACT ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-text {
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.contact-method:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--primary);
  width: 30px;
  text-align: center;
}

.method-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.method-value {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact Options */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.telegram-quick-contact,
.contact-form-section {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.telegram-quick-contact:hover,
.contact-form-section:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-option-header {
  margin-bottom: 1.5rem;
}

.terminal-prompt {
  font-family: 'Fira Code', monospace;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.terminal-prompt .prompt {
  color: var(--primary);
  margin-right: 0.5rem;
}

.terminal-prompt .command {
  color: var(--text-secondary);
}

.contact-option-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-option-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.telegram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  font-family: 'Fira Code', monospace;
}

.telegram-btn i {
  font-size: 1.25rem;
}

.contact-divider {
  position: relative;
  text-align: center;
  margin: 1rem 0;
}

.contact-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.divider-text {
  position: relative;
  background: var(--bg-card);
  padding: 0 1.5rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-family: 'Fira Code', monospace;
  font-weight: 600;
}

.contact-form-mini {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form-mini .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form-mini label {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--primary);
  text-transform: lowercase;
}

.contact-form-mini input,
.contact-form-mini textarea {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
}

.contact-form-mini .btn {
  font-family: 'Fira Code', monospace;
}

.form-feedback {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
  font-family: 'Fira Code', monospace;
}

.form-feedback.success {
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.form-feedback.error {
  background: rgba(255, 100, 100, 0.1);
  color: #ff6464;
  border: 1px solid rgba(255, 100, 100, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
}

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

.footer-text {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer-motto {
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
}

.typing-cursor {
  color: var(--primary);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* ===== CHATBOT ===== */
.chatbot-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.6);
}

.chatbot-toggle.hidden {
  opacity: 0;
  pointer-events: none;
}

.chatbot-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 400px;
  max-width: calc(100vw - 4rem);
  height: 600px;
  max-height: calc(100vh - 4rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.chatbot-container.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border);
  border-radius: 1rem 1rem 0 0;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chatbot-header-info i {
  font-size: 1.5rem;
  color: var(--primary);
}

.chatbot-header h3 {
  font-size: 1rem;
  margin: 0;
}

.chatbot-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.chatbot-close:hover {
  color: var(--text-primary);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  animation: messageSlide 0.3s ease;
}

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

.message-content {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  line-height: 1.5;
}

.bot-message .message-content {
  background: var(--bg-dark);
  border: 1px solid var(--border);
}

.user-message {
  justify-content: flex-end;
}

.user-message .message-content {
  background: var(--primary);
  color: var(--bg-dark);
  font-weight: 500;
}

.typing-indicator .message-content {
  padding: 1rem;
}

.typing-dots {
  display: flex;
  gap: 0.35rem;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Streaming cursor effect */
.message-content.streaming {
  position: relative;
}

.message-content.streaming::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), transparent);
  opacity: 0.1;
  border-radius: 0.75rem;
  animation: streamingGlow 2s ease-in-out infinite;
  pointer-events: none;
}

.message-content.streaming p::after {
  content: '▊';
  color: var(--primary);
  animation: cursorBlink 0.8s infinite;
  margin-left: 2px;
  font-weight: 900;
  text-shadow: 0 0 10px var(--primary);
}

@keyframes cursorBlink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

@keyframes streamingGlow {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}

.chatbot-input-wrapper {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-darker);
  border-radius: 0 0 1rem 1rem;
}

.chatbot-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--primary);
}

.chatbot-send {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.chatbot-send:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-darker);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-photo {
    order: -1;
  }

  .photo-name {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .photo-frame {
    width: 240px;
    height: 240px;
  }

  .code-snippet {
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .rotating-text {
    display: block;
    margin-top: 0.5rem;
    min-width: 240px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .telegram-quick-contact,
  .contact-form-section {
    padding: 1.5rem;
  }

  .contact-option-header h3 {
    font-size: 1.25rem;
  }

  .contact-divider {
    margin: 1.5rem 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-status-badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.6rem;
  }

  .project-link-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }

  .code-content {
    font-size: 0.85rem;
    padding: 1rem;
  }

  .chatbot-container {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 1rem;
  }

  .chatbot-toggle {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .glitch {
    font-size: 2.5rem;
    letter-spacing: 0.3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .photo-frame {
    width: 200px;
    height: 200px;
  }

  .photo-decoration {
    margin-top: 2rem;
  }

  .code-snippet {
    font-size: 0.65rem;
    padding: 0.4rem 0.6rem;
    gap: 0.15rem;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
