/* Section-specific styles */

/* HERO SECTION */
h1.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(42px, 7vw, 90px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-name span {
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--accent2),
    var(--accent3)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.1em;
}

/* SECTION TITLES */
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.7;
}

/* PROJECTS SECTION */
.projects-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.search-filter-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.search-wrap {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input::placeholder {
  color: var(--text3);
}

.search-input:focus {
  border-color: var(--accent);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 16px;
}

.type-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.type-filter {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  transition: all 0.2s;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.type-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14, 59, 158, 0.08);
}

.type-filter.active {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(244, 185, 66, 0.1);
  font-weight: 500;
}

.type-filter.all-type.active {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(244, 185, 66, 0.1);
}

.filters-dropdown {
  position: relative;
  display: inline-block;
}

/* Create invisible bridge between button and dropdown to maintain hover */
.filters-dropdown::after {
  content: '';
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  right: 0;
  height: 20px;
  z-index: 99;
  pointer-events: auto;
}

.filters-toggle {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.filters-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14, 59, 158, 0.08);
}

.filters-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.2s ease-out;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s ease-out;
  z-index: 100;
  visibility: hidden;
  will-change: opacity, visibility;
}

.filters-dropdown:hover .filters-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

/* Keep panel visible when hovering over any child elements */
.filters-panel * {
  pointer-events: auto;
}

.filters-dim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 98;
  visibility: hidden;
}

/* Show dim when filters panel is visible */
#filters-dim[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.filters-dropdown:hover .filters-panel {
  z-index: 101;
}

.filter-categories {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.filter-category {
  padding: 6px 12px;
  border: 1px solid var(--border2);
  border-radius: 6px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: transparent;
  color: var(--text2);
  transition: all 0.2s;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.filter-category:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14, 59, 158, 0.08);
}

.filter-category.active {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(198, 125, 59, 0.12);
}

.tag-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tag-filter {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  transition: all 0.2s;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.tag-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14, 59, 158, 0.08);
}

.tag-filter.active {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(244, 185, 66, 0.1);
  font-weight: 500;
}

.tag-filter.all-tag.active {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(244, 185, 66, 0.1);
}

.ownership-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ownership-filter {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  transition: all 0.2s;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.ownership-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14, 59, 158, 0.08);
}

.ownership-filter.active {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(244, 185, 66, 0.1);
  font-weight: 500;
}

.ownership-filter.all-ownership.active {
  border-color: var(--accent3);
  color: var(--accent3);
  background: rgba(244, 185, 66, 0.1);
}

.filter-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

.filter-count {
  font-size: 11px;
  color: var(--text3);
  margin-left: 4px;
  letter-spacing: 0.04em;
}

/* SKILLS SECTION */
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s;
}

.skill-group:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(14, 59, 158, 0.15);
}

.skill-group-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 20px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(14, 59, 158, 0.2), rgba(198, 125, 59, 0.1));
  border: 1px solid var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
  transition: all 0.2s;
  cursor: default;
  white-space: nowrap;
}

.skill-badge:hover {
  background: linear-gradient(135deg, rgba(14, 59, 158, 0.3), rgba(198, 125, 59, 0.2));
  border-color: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 59, 158, 0.2);
}

@media (max-width: 700px) {
  /* Disable desktop dropdown styles on mobile */
  .filters-dropdown::after {
    display: none;
  }

  .filters-dropdown:hover .filters-panel,
  .filters-panel:hover {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-8px);
  }

  .search-filter-row {
    flex-direction: column;
  }

  .filters-dropdown {
    width: 100%;
  }

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

  .filters-panel {
    position: fixed;
    top: auto;
    bottom: -100vh;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    min-width: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: bottom 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
    z-index: 101;
  }

  .filters-panel.mobile-open {
    bottom: 0;
    opacity: 1;
    visibility: visible;
  }

  .filter-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 8px;
  }

  .filter-category {
    padding: 8px 12px;
    font-size: 13px;
  }

  .type-filters,
  .tag-filters {
    gap: 6px;
  }

  .type-filter,
  .tag-filter {
    padding: 5px 12px;
    font-size: 10px;
  }

  .skill-badge {
    cursor: default;
    pointer-events: none;
  }

  .skill-badge:hover {
    background: linear-gradient(135deg, rgba(124, 109, 250, 0.2), rgba(250, 109, 154, 0.1));
    border-color: var(--accent);
    transform: none;
    box-shadow: none;
  }
}

/* ERROR NOTIFICATIONS */
/* CONTACT FORM */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.contact-info-item:hover {
  border-color: var(--accent);
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}

.contact-val {
  font-size: 13px;
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

/* TERMINAL */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 40px;
  max-width: 520px;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

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

.d1 {
  background: #ff5f57;
}

.d2 {
  background: #febc2e;
}

.d3 {
  background: #28c840;
}

.terminal-line {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.9;
}

.t-prompt {
  color: var(--accent3);
}

.t-cmd {
  color: var(--text);
}

.t-val {
  color: var(--accent2);
}

.t-comment {
  color: var(--text3);
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 2px;
}
