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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  min-height: 100vh;
  padding: 2rem 1rem;
}

.cv {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Header */
.header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 3rem 3rem 0 3rem;
  text-align: center;
  border-bottom: 3px solid #3b82f6;
  position: relative;
}

/* Swipe indicator bar on right side (mobile only, controlled by JS) */
.content.show-swipe-hint::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 50px;
  height: 80px;
  background: rgba(59, 130, 246, 0.85);
  border-radius: 8px 0 0 8px;
  pointer-events: none;
  z-index: 10;
  box-shadow: -3px 0 10px rgba(59, 130, 246, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  animation: slideHintRight 2s ease-in-out infinite;
}

@keyframes slideHintRight {
  0%, 100% { opacity: 0.7; transform: translateY(-50%) translateX(0); }
  50% { opacity: 1; transform: translateY(-50%) translateX(-5px); }
}

.header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: white;
}

.tagline {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-info a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease;
}

.contact-info a:hover {
  border-bottom-color: white;
}

/* Tab indicators (mobile only) */
.tab-indicators {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0;
  margin-bottom: 0.5rem;
  position: relative;
}

.tab-indicator-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tab-indicator-wrapper:active {
  transform: scale(0.95);
}

.tab-indicator {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tab-indicator.active {
  background: #3b82f6;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.tab-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tab-indicator.active + .tab-label {
  color: #3b82f6;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .tab-indicator-wrapper:hover .tab-indicator {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
  }

  .tab-indicator-wrapper:hover .tab-label {
    color: rgba(255, 255, 255, 0.9);
  }
}

/* Tabs Navigation */
.tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 12px 12px 0 0;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.tab-btn.active {
  background: white;
  color: #0f172a;
  font-weight: 600;
}

/* Content */
.content {
  padding: 3rem;
  overflow: hidden;
  position: relative;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Section Titles */
h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 2px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 0.75rem;
}

p {
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Timeline */
.timeline-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-date {
  display: inline-block;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Lists */
ul {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #475569;
}

ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

/* Skills */
.skill-category {
  margin-bottom: 2rem;
}

.skill-category h3 {
  color: #334155;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

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

.skill-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Education */
.education-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.education-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.education-date {
  display: inline-block;
  background: #f1f5f9;
  color: #64748b;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Projects */
.project-card {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.project-card h3 {
  margin-top: 0;
  color: #0f172a;
}

.project-card p {
  margin-bottom: 1rem;
}

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

.project-tag {
  background: white;
  color: #3b82f6;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #3b82f6;
}

/* Links */
a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #2563eb;
}

/* Close button (desktop hidden) */
.close-menu {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem 0.5rem;
  }

  .header {
    padding: 2rem 1.5rem 0 1.5rem;
  }

  .header h1 {
    font-size: 2rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  /* Show tab indicators on mobile */
  .tab-indicators {
    display: flex;
  }

  /* Hide desktop tabs on mobile */
  .tabs {
    display: none;
  }

  /* Content with swipe effect */
  .content {
    padding: 2rem 1.5rem;
    position: relative;
    touch-action: pan-y;
  }

  .tab-content {
    animation: none;
  }

  .tab-content.active.slide-right {
    animation: slideFromRight 0.3s ease;
  }

  .tab-content.active.slide-left {
    animation: slideFromLeft 0.3s ease;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* Print styles - Show all content */
@media print {
  body {
    background: white;
    padding: 0;
  }

  .cv {
    box-shadow: none;
    max-width: 100%;
  }

  .header {
    background: white;
    color: #0f172a;
    padding: 1rem;
  }

  .header h1 {
    color: #0f172a;
  }

  .tagline,
  .contact-info {
    color: #475569;
  }

  .tabs {
    display: none;
  }

  .tab-content {
    display: block !important;
    page-break-inside: avoid;
  }

  .content {
    padding: 1rem;
  }

  h2::after {
    background: #333;
  }

  .timeline-date,
  .skill-tag,
  .project-tag {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
  }
}
