/* Hero Website - Component Stylesheet
 * Consolidated from: tooltip.css, floating-photo.css, 
 * contact-separator.css, enhanced-contact.css
 * Version: 1.0.0
 */

/* ============================================
   TOOLTIP SYSTEM
   ============================================ */
.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-secondary), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 300px;
  min-width: 200px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tooltip.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Tooltip Arrow */
.tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.95);
}

/* Tooltip Position Variants */
.tooltip.top {
  margin-bottom: 10px;
}

.tooltip.top::before {
  top: 100%;
  bottom: auto;
  border-top-color: rgba(0, 0, 0, 0.95);
  border-bottom-color: transparent;
}

.tooltip.left {
  margin-right: 10px;
}

.tooltip.left::before {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-right-color: rgba(0, 0, 0, 0.95);
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.tooltip.right {
  margin-left: 10px;
}

.tooltip.right::before {
  right: 100%;
  left: auto;
  transform: translateY(-50%);
  border-left-color: rgba(0, 0, 0, 0.95);
  border-bottom-color: transparent;
  border-right-color: transparent;
}

/* Hover State for Elements with Tooltips */
.skill-tag[data-tooltip],
.achievement-card[data-tooltip],
.cert-item[data-tooltip] {
  position: relative;
  cursor: help;
}

.skill-tag[data-tooltip]:hover,
.achievement-card[data-tooltip]:hover,
.cert-item[data-tooltip]:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
}

/* Tooltip Content Styling */
.tooltip-content {
  position: relative;
  z-index: 1;
}

.tooltip-title {
  font-family: var(--font-primary), 'Playfair Display', serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
}

.tooltip-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

/* Tooltip for Achievement Cards (Wider) */
.achievement-card[data-tooltip] + .tooltip {
  max-width: 350px;
  min-width: 250px;
  font-size: 0.85rem;
}

/* Tooltip for Cert Items (Taller) */
.cert-item[data-tooltip] + .tooltip {
  max-width: 280px;
  min-width: 200px;
}

/* ============================================
   FLOATING PROFESSIONAL PHOTO
   ============================================ */
.floating-photo {
  position: fixed;
  top: var(--spacing-md);
  right: var(--spacing-md);
  z-index: 1001;
  opacity: 0.92;
  transition: opacity 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
  max-width: 300px;
  max-height: 400px;
}

.professional-photo {
  width: 60px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  filter: brightness(0.95) contrast(0.9);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* Hover effect for desktop */
@media (hover: hover) and (pointer: fine) {
  .floating-photo:hover {
    opacity: 1;
    z-index: 1002;
  }
  
  .floating-photo:hover .professional-photo {
    width: 240px;
    height: 320px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease;
  }
}

/* Adjust positioning to avoid navigation overlap */
@media (min-width:768px) {
  .floating-photo {
    top: calc(var(--spacing-md) + 60px);
    right: var(--spacing-lg);
  }
  
  .professional-photo {
    width: 75px;
    height: 100px;
  }
}

/* Show on mobile - keep fixed position */
@media (max-width: 768px) {
  .floating-photo {
    position: fixed;
    top: 10px;
    right: 10px;
    display: block;
    z-index: 1001;
    cursor: pointer;
  }
  
  .professional-photo {
    width: 50px;
    height: 67px;
    transition: all 0.3s ease;
  }
  
  /* Expanded state on click */
  .floating-photo.expanded {
    opacity: 1 !important;
  }
  
  .floating-photo.expanded .professional-photo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: auto;
    max-height: 80vh;
    z-index: 10000;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
  }
  
  .floating-photo.expanded::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    pointer-events: none;
  }
}

/* Print styles */
@media print {
  .floating-photo {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .floating-photo {
    opacity: 0.8;
  }
  
  .professional-photo {
    border-color: rgba(255, 255, 255, 0.3);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .floating-photo {
    transition: opacity 0.1s ease;
  }
}

/* Performance optimizations */
.professional-photo {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: opacity, transform;
}

/* Loading state */
.professional-photo.loading {
  filter: blur(5px) brightness(0.8);
  -webkit-filter: blur(5px) brightness(0.8);
}

/* Error state */
.professional-photo.error {
  filter: grayscale(100%) brightness(0.7);
  -webkit-filter: grayscale(100%) brightness(0.7);
  opacity: 0.5;
}

/* Alternative positioning for very wide screens */
@media (min-width: 1400px) {
  .floating-photo {
    right: var(--spacing-xl);
  }
}

/* Adjust for when navigation becomes sticky on scroll */
.nav-container.scrolled + * .floating-photo,
body.scrolled .floating-photo {
  top: var(--spacing-sm);
}

/* ============================================
   CONTACT SEPARATOR
   ============================================ */
.contact-separator {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  margin: 0 12px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  position: relative;
}

.contact-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 1);
  border-radius: 50%;
  z-index: 1;
}

/* Enhanced separator glow on hover */
.contact-info:hover .contact-separator {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

/* ============================================
   ENHANCED CONTACT SECTION
   ============================================ */

/* Engagement Highlights */
.engagement-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.engagement-item {
  background: var(--content-bg);
  border: 1px solid var(--content-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(30px);
}

.engagement-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.engagement-item:hover {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--glow-medium);
  transform: translateY(-4px);
}

.engagement-item h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
  color: var(--primary-white);
}

.engagement-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Contact Direct Section */
.contact-direct {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.contact-heading {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-white);
  font-weight: 500;
}

.contact {
  background: var(--content-bg);
  border: 1px solid var(--content-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xs) var(--spacing-md);
  display: inline-block;
  box-shadow: var(--glow-soft);
  transition: var(--transition-smooth);
}

.contact:hover {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--glow-medium);
  transform: translateY(-2px);
}

/* Ripple Effect */
.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-effect {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .tooltip {
    max-width: 280px;
    font-size: 0.8rem;
    padding: 10px 14px;
  }
  
  .tooltip-title {
    font-size: 0.85rem;
  }
  
  .tooltip-description {
    font-size: 0.75rem;
  }
  
  .contact-separator {
    width: 5px;
    height: 5px;
    margin: 0 8px;
  }
  
  .contact-separator::before {
    width: 2px;
    height: 2px;
  }
  
  .engagement-highlights {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .engagement-item {
    padding: calc(var(--spacing-md) * 0.75);
  }
  
  .contact-heading {
    font-size: 1.1rem;
  }
  
  .contact {
    padding: calc(var(--spacing-md) * 0.75);
    margin: 0 var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .tooltip {
    max-width: 250px;
    font-size: 0.75rem;
    padding: 8px 12px;
  }
  
  .tooltip::before {
    border-width: 4px;
  }
  
  .contact-info {
    font-size: 0.8rem;
    padding: calc(var(--spacing-md) * 0.75);
    margin: var(--spacing-md) 0.5rem 0;
    width: calc(100% - 1rem);
  }
  
  .engagement-highlights {
    gap: var(--spacing-sm);
  }
  
  .engagement-item {
    padding: var(--spacing-sm);
  }
  
  .contact-heading {
    font-size: 1rem;
  }
  
  .contact {
    padding: var(--spacing-sm);
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
  }
}

/* ============================================
   ACCESSIBILITY & HIGH CONTRAST
   ============================================ */
@media (prefers-contrast: high) {
  .contact-separator {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  
  .contact-info {
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .engagement-item,
  .contact {
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .engagement-item:hover,
  .contact:hover {
    border-color: rgba(255, 255, 255, 0.5);
  }
  
  .tooltip {
    background: #000000;
    border: 2px solid #ffffff;
    color: #ffffff;
  }
  
  .tooltip::before {
    border-bottom-color: #000000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-separator {
    transition: transform 0.1s ease;
  }
  
  .contact-info:hover .contact-separator {
    transform: none;
  }
  
  .tooltip {
    transition: opacity 0.1s ease, visibility 0.1s ease;
  }
  
  .floating-photo {
    transition: opacity 0.1s ease;
  }
}

/* Focus States */
.engagement-item:focus,
.contact:focus,
.skill-tag[data-tooltip]:focus,
.achievement-card[data-tooltip]:focus,
.cert-item[data-tooltip]:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .floating-photo {
    display: none;
  }
  
  .tooltip {
    display: none !important;
  }
  
  .contact-separator {
    background: #000;
    box-shadow: none;
  }
}


