:root {
  --bg: #0a0b10;
  --bg-soft: #161822;
  --accent: #00ff9d;
  --accent-soft: rgba(0, 255, 157, 0.1);
  --text: #e1e1e6;
  --text-dim: #a8a8b3;
  --critical: #ff4757;
  --high: #ffa502;
  --medium: #2f3542;
  --header-bg: rgba(10, 11, 16, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.avatar {
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
}

.header-info h1 {
  font-size: 20px;
  line-height: 1.2;
}

.header-info .title {
  color: var(--text-dim);
  font-size: 14px;
}

.tags {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 30px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  justify-content: center;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
}

.accent {
  color: var(--accent);
}

.section-subtitle {
  color: var(--text-dim);
  margin-top: -30px;
  margin-bottom: 40px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 18px;
  color: var(--text-dim);
}

.about-text strong {
  color: var(--text);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg-soft);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.skill-block {
  background: var(--bg-soft);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-block h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--accent);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
}

/* Cases Section */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.case-card {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.case-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.case-badge.critical { background: var(--critical); color: white; }
.case-badge.high { background: var(--high); color: var(--bg); }
.case-badge.medium { background: var(--medium); color: white; }

.case-date {
  font-size: 12px;
  color: var(--text-dim);
}

.case-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.case-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.case-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
  flex-grow: 1;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.case-tags span {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.case-result {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 157, 0.05);
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.case-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.case-card:hover .case-btn {
  background: var(--accent);
  color: var(--bg);
}

.add-case {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.case-btn.outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-dim);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--bg-soft);
  padding: 25px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.2s;
}

.contact-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.contact-icon {
  font-size: 24px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--bg-soft);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
}

.modal-title { font-size: 28px; margin-bottom: 20px; color: var(--accent); }
.modal-section { margin-bottom: 30px; }
.modal-section h4 { font-size: 14px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.modal-content-text { font-size: 16px; color: var(--text-dim); }
.modal-list { list-style: none; }
.modal-list li { margin-bottom: 8px; display: flex; gap: 10px; }
.modal-list li::before { content: "→"; color: var(--accent); }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .header-content { flex-direction: column; text-align: center; }
  .tags { justify-content: center; }
}