/* Button Components */
.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  visibility: visible !important;
  opacity: 1 !important;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--shadow);
}

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

.btn-secondary:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.btn-icon line,
.btn-icon polygon {
  stroke: currentColor;
  fill: none;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Card Components */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow);
  border-color: var(--accent-primary);
}

/* Form Components */
.form-group {
  position: relative;
  margin-bottom: 2rem;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--shadow);
  transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.form-group label {
  position: absolute;
  top: 16px;
  left: 20px;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
  background: var(--bg-primary);
  padding: 0 8px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 12px;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

/* Social Links */
.social-link {
  width: 40px;
  height: 40px;
  background: var(--shadow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  transition: all 0.3s ease;
}

.social-link svg path {
  fill: currentColor;
  stroke: currentColor;
}

/* Tech Tags */
.tech-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--shadow);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 2px;
  border: 1px solid var(--border-color);
}

/* Project Links */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  background: var(--shadow);
  color: var(--accent-primary);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.project-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.project-link .icon {
  width: 16px;
  height: 16px;
}

/* Skill Bars */
.skill-bar {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  border-radius: 4px;
  width: 0;
  transition: width 1s ease;
}

.skill-progress.animate {
  width: var(--width);
}

/* Contact Methods */
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--shadow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-icon:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: currentColor;
  transition: all 0.3s ease;
}

.contact-icon svg path,
.contact-icon svg polyline,
.contact-icon svg circle {
  fill: currentColor;
  stroke: currentColor;
}

.contact-details h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--text-muted);
  margin: 0;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--accent-primary);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Footer Icons */
.footer .social-link {
  background: var(--border-color);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer .social-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.footer .social-link svg {
  fill: currentColor;
  stroke: currentColor;
  transition: all 0.3s ease;
}

.footer .social-link svg path,
.footer .social-link svg rect,
.footer .social-link svg circle,
.footer .social-link svg polyline {
  fill: currentColor;
  stroke: currentColor;
}

/* Tooltips */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}
