/* Professional Dark Theme - Backend Engineering Portfolio */
:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --card: #1E1E1E;
  --border: #2A2A2A;
  --text: #E8E8E8;
  --text-muted: #d8d8d8;
  --text-muted-dark: #9A9A9A;
  --accent: #FF7A00;
  --accent-hover: #FF9A3D;
  --shadow: rgba(0, 0, 0, 0.4);
  --blue-link: #87CEEB;
}

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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

/* Header Styles */
.hero-header {
  width: 100%;
  min-height: 250px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 122, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  width: 100%;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.header-text {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
  max-width: 600px;
}

.header-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.profile-image:hover {
  transform: scale(1.02) translateZ(0);
  border-color: var(--accent);
}


/* Main Content */
.main-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  background-color: var(--card);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.2);
}

.btn-secondary:hover {
  background-color: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.1rem;
}

/* CV Container */
.cv-container {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* CV Header */
.cv-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.name {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.profession {
  font-size: 1.125rem;
  color: var(--text-muted-dark);
  font-weight: 400;
}

.location {
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  font-weight: 400;
  margin-top: 0.5rem;
}

/* External Links */
.external-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--card);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.link-item:hover {
  background-color: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}


.company-link {
  color: var(--text-muted-dark);
  /* text-decoration: none; */
}

.company-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.link-icon {
  font-size: 1.1rem;
}

/* CV Sections */
.cv-section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--accent);
}

.section-content {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.skill-checkmark {
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.5rem;
}

/* Experience and Education */
.experience-list, .education-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item, .education-item {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 12px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.2s ease;
}

.experience-item::before, .education-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--accent);
  opacity: 0.6;
}

.experience-item:hover, .education-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.experience-item:hover::before, .education-item:hover::before {
  opacity: 1;
}

.job-title, .degree {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.company, .institution {
  font-size: 1rem;
  color: var(--text-muted-dark);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.duration {
  font-size: 0.875rem;
  color: var(--text-muted-dark);
  margin-bottom: 1rem;
  font-weight: 500;
  /* text-transform: uppercase; */
  letter-spacing: 0.05em;
}

.job-description {
  list-style: none;
  padding-left: 0;
}

.job-description p {
  margin-bottom: 0.5rem;
  color: var(--subtext1);
}

.job-description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--subtext1);
}

.job-description li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

/* Skills */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-category h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

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

.skill-tag {
  background-color: var(--card);
  color: var(--text-muted-dark);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

.skill-tag:hover {
  background-color: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.blue-border {
  border-color: var(--blue-link);
}

/* Interests */
.interests-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.interest-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--shadow);
}

.interest-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Language Switch */
.language-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.switch-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.switch-label.active {
  color: var(--accent);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.2s ease;
  border-radius: 12px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: var(--text-muted);
  transition: 0.2s ease;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--border);
}

input:checked + .slider:before {
  transform: translateX(20px);
  background-color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .header-visual {
    flex: 0 0 auto;
  }
  
  .cv-container {
    padding: 2rem 1.5rem;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .external-links {
    gap: 1rem;
  }
  
  .action-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .cv-container {
    padding: 1.5rem 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}
