.eyebrow {
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--orange);
  margin-bottom: 12px;
}

.has-tooltip {
  position: relative;
}

.has-tooltip .tooltip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translate(-50%, 10px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  min-width: 190px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgb(18, 28, 42), rgb(12, 18, 28));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(45, 232, 207, 0.28);
  color: rgba(230, 237, 243, 0.92);
  font-size: 0.78rem;
  letter-spacing: 0.2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 18px rgba(45, 232, 207, 0.16);
  transition: opacity 0.2s ease 0.12s, transform 0.2s ease 0.12s;
  z-index: 5;
}

.has-tooltip .tooltip-bubble::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: rgba(45, 232, 207, 0.28) transparent transparent;
  z-index: 3;
}

.has-tooltip .tooltip-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: rgb(18, 28, 42) transparent transparent;
  z-index: 2;
}

.has-tooltip .tooltip-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.has-tooltip .tooltip-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(230, 237, 243, 0.78);
  display: grid;
  gap: 4px;
}

.has-tooltip:hover .tooltip-bubble,
.has-tooltip:focus-within .tooltip-bubble {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.has-tooltip.tooltip-right .tooltip-bubble {
  left: auto;
  right: 0;
  transform: translate(0, 10px) scale(0.98);
}

.has-tooltip.tooltip-right .tooltip-bubble::before {
  left: auto;
  right: 17px;
  transform: none;
  z-index: 3;
}

.has-tooltip.tooltip-right .tooltip-bubble::after {
  left: auto;
  right: 16px;
  bottom: -10px;
  transform: none;
  border-width: 10px 10px 0;
}

.has-tooltip.tooltip-right:hover .tooltip-bubble,
.has-tooltip.tooltip-right:focus-within .tooltip-bubble {
  transform: translate(0, 0) scale(1);
}

/* Back to top button tooltip positioning */
.back-to-top.has-tooltip .tooltip-bubble {
  right: calc(100% + 12px);
  left: auto;
  bottom: 50%;
  top: auto;
  transform: translate(10px, 50%) scale(0.98);
}

.back-to-top.has-tooltip .tooltip-bubble::before {
  left: auto;
  right: -8px;
  bottom: 50%;
  top: auto;
  transform: translateY(50%) rotate(-90deg);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: rgba(45, 232, 207, 0.28) transparent transparent;
  z-index: 3;
}

.back-to-top.has-tooltip .tooltip-bubble::after {
  left: auto;
  right: -10px;
  bottom: 50%;
  top: auto;
  transform: translateY(50%) rotate(-90deg);
  border-width: 10px 10px 0 10px;
  z-index: 2;
}

.back-to-top.has-tooltip:hover .tooltip-bubble,
.back-to-top.has-tooltip:focus-within .tooltip-bubble {
  transform: translate(0, 50%) scale(1);
}

.has-tooltip.tooltip-left .tooltip-bubble {
  left: auto;
  right: 100%;
  top: 50%;
  bottom: auto;
  transform: translate(-12px, -50%) scale(0.98);
}

.has-tooltip.tooltip-left .tooltip-bubble::before {
  content: "";
  position: absolute;
  left: auto;
  right: -8px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(45, 232, 207, 0.28);
  z-index: 3;
}

.has-tooltip.tooltip-left .tooltip-bubble::after {
  left: auto;
  right: -10px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent rgb(18, 28, 42);
  z-index: 2;
}

.has-tooltip.tooltip-left:hover .tooltip-bubble,
.has-tooltip.tooltip-left:focus-within .tooltip-bubble {
  transform: translate(-4px, -50%) scale(1);
}

.has-tooltip.tooltip-bottom .tooltip-bubble {
  top: calc(100% + 12px);
  bottom: auto;
  transform: translate(-50%, -10px) scale(0.98);
}

.has-tooltip.tooltip-bottom .tooltip-bubble::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  bottom: auto;
  transform: translateX(-50%);
  border-width: 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent rgba(45, 232, 207, 0.28);
  z-index: 3;
}

.has-tooltip.tooltip-bottom .tooltip-bubble::after {
  top: -10px;
  bottom: auto;
  border-width: 0 10px 10px;
  border-color: transparent transparent rgb(18, 28, 42);
  z-index: 2;
}

.has-tooltip.tooltip-bottom:hover .tooltip-bubble,
.has-tooltip.tooltip-bottom:focus-within .tooltip-bubble {
  transform: translate(-50%, 0) scale(1);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 16px;
  background: transparent;
  transition: border 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-outline:hover {
  border-color: rgba(45, 232, 207, 0.6);
  color: var(--turquoise);
  transform: translateY(-3px);
}

.glass-card {
  background: radial-gradient(circle at 10% 6%, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(160deg, rgba(18, 28, 42, 0.6), rgba(12, 18, 28, 0.52));
  opacity: 0.9;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 22px rgba(45, 232, 207, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(45, 232, 207, 0.45);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 18px rgba(45, 232, 207, 0.18), 0 0 22px rgba(255, 176, 87, 0.16), 0 0 18px rgba(107, 178, 255, 0.14), 0 0 16px rgba(125, 255, 155, 0.12);
}

.glow-card {
  border-color: rgba(125, 255, 155, 0.28);
  box-shadow: 0 20px 60px rgba(125, 255, 155, 0.14);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill-group span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(45, 232, 207, 0.12);
  border: 1px solid rgba(45, 232, 207, 0.3);
  font-size: 0.85rem;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.project-card {
  background: radial-gradient(circle at 10% 6%, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(160deg, rgba(18, 28, 42, 0.6), rgba(12, 18, 28, 0.52));
  opacity: 0.9;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow), 0 0 22px rgba(255, 176, 87, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, border 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  will-change: transform, box-shadow;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-9px) scale(1.02);
  border-color: rgba(255, 176, 87, 0.55);
  background: linear-gradient(160deg, rgba(20, 32, 48, 0.62), rgba(12, 18, 28, 0.56));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 176, 87, 0.24), 0 0 20px rgba(45, 232, 207, 0.14), 0 0 18px rgba(107, 178, 255, 0.14), 0 0 16px rgba(125, 255, 155, 0.12);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(255, 176, 87, 0.18);
  border: 1px solid rgba(255, 176, 87, 0.4);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.experience-card {
  background: radial-gradient(circle at 10% 6%, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(160deg, rgba(18, 28, 42, 0.6), rgba(12, 18, 28, 0.52));
  opacity: 0.9;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 22px rgba(255, 176, 87, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.experience-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 176, 87, 0.45);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 176, 87, 0.2), 0 0 18px rgba(45, 232, 207, 0.14), 0 0 18px rgba(107, 178, 255, 0.14), 0 0 16px rgba(125, 255, 155, 0.12);
}

.experience-card.highlight-card {
  border-color: rgba(45, 232, 207, 0.35);
  box-shadow: 0 20px 60px rgba(45, 232, 207, 0.12);
}

.experience-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.experience-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.experience-logo {
  max-width: 96px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.experience-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.experience-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(230, 237, 243, 0.78);
  display: grid;
  gap: 8px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: radial-gradient(circle at 10% 6%, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(160deg, rgba(18, 28, 42, 0.54), rgba(12, 18, 28, 0.48));
  opacity: 0.9;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow), 0 0 18px rgba(45, 232, 207, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(14px);
}

.app-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(45, 232, 207, 0.45);
  box-shadow: var(--shadow), 0 0 16px rgba(45, 232, 207, 0.18), 0 0 18px rgba(255, 176, 87, 0.14), 0 0 16px rgba(107, 178, 255, 0.14), 0 0 14px rgba(125, 255, 155, 0.12);
}

.app-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  flex-shrink: 0;
}

.app-logo {
  width: 54px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

.accent-turquoise { background: var(--turquoise); }
.accent-green { background: var(--green); }
.accent-orange { background: var(--orange); }
.accent-blue { background: var(--blue); }
.accent-purple { background: #6b4baf; }

.contact-card {
  background: radial-gradient(circle at 10% 6%, rgba(255, 255, 255, 0.04), transparent 40%),
    linear-gradient(160deg, rgba(18, 28, 42, 0.6), rgba(12, 18, 28, 0.52));
  opacity: 0.9;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 22px rgba(45, 232, 207, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.contact-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 176, 87, 0.5);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 176, 87, 0.2), 0 0 18px rgba(45, 232, 207, 0.14), 0 0 18px rgba(107, 178, 255, 0.14), 0 0 16px rgba(125, 255, 155, 0.12);
}

.contact-card p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.contact-form .form-label {
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  color: rgba(230, 237, 243, 0.78);
}

.contact-form .form-control {
  background: rgba(10, 16, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}

.contact-form .form-control::placeholder {
  color: rgba(230, 237, 243, 0.5);
}

.contact-form .form-control:focus {
  border-color: rgba(45, 232, 207, 0.5);
  box-shadow: 0 0 0 2px rgba(45, 232, 207, 0.15);
  outline: none;
}

.contact-card small {
  display: block;
  margin-top: 12px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 6px;
  background: rgba(10, 16, 24, 0.8);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(45, 232, 207, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lang-btn {
  padding: 6px 14px;
  background: transparent;
  border: none;
  color: rgba(230, 237, 243, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 40px;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(45, 232, 207, 0.15);
}

.lang-btn.active {
  color: var(--text);
  background: rgba(45, 232, 207, 0.25);
  box-shadow: 0 0 12px rgba(45, 232, 207, 0.4);
}

/* Footer Social Icons */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-section p {
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.header-social .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.header-social .social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(10, 16, 24, 0.8);
  border: 1px solid rgba(45, 232, 207, 0.3);
  color: rgba(230, 237, 243, 0.9);
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.social-icon:hover {
  background: rgba(45, 232, 207, 0.2);
  border-color: rgba(45, 232, 207, 0.5);
  color: var(--turquoise);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(45, 232, 207, 0.4);
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
  
  .footer-section {
    flex-direction: row;
    gap: 2rem;
  }
}

/* Responsive adjustments for language switcher */
@media (max-width: 991px) {
  .lang-switcher {
    margin: 1rem 0 0.5rem;
    justify-content: center;
  }
  
  .header-social {
    margin: 0.5rem 0;
    justify-content: center;
  }
  
  .navbar-collapse .d-flex {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
  }
}

@media (min-width: 992px) {
  .navbar-collapse .d-flex {
    flex-direction: row !important;
  }
}

/* Mobile tooltip adjustments - prevent tooltips from going off-screen */
@media (max-width: 768px) {
  /* Force all tooltips to display above on mobile */
  .has-tooltip.tooltip-left .tooltip-bubble,
  .has-tooltip.tooltip-right .tooltip-bubble {
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: calc(100% + 14px) !important;
    transform: translate(-50%, 10px) scale(0.98) !important;
    min-width: 160px;
    max-width: 90vw;
  }
  
  .has-tooltip.tooltip-left .tooltip-bubble::before,
  .has-tooltip.tooltip-right .tooltip-bubble::before {
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: -8px !important;
    transform: translateX(-50%) !important;
    border-width: 8px 8px 0 !important;
    border-color: rgba(45, 232, 207, 0.28) transparent transparent !important;
    z-index: 3 !important;
  }
  
  .has-tooltip.tooltip-left .tooltip-bubble::after,
  .has-tooltip.tooltip-right .tooltip-bubble::after {
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: -10px !important;
    transform: translateX(-50%) !important;
    border-width: 10px 10px 0 !important;
    border-color: rgb(18, 28, 42) transparent transparent !important;
  }
  
  .has-tooltip.tooltip-left:hover .tooltip-bubble,
  .has-tooltip.tooltip-left:focus-within .tooltip-bubble,
  .has-tooltip.tooltip-right:hover .tooltip-bubble,
  .has-tooltip.tooltip-right:focus-within .tooltip-bubble {
    transform: translate(-50%, 0) scale(1) !important;
  }
  
  /* Adjust default tooltips to be narrower on mobile */
  .has-tooltip .tooltip-bubble {
    min-width: 160px;
    max-width: 90vw;
    left: 50%;
    right: auto;
  }
}
