/* footer.css - Premium Large Corporate Footer Styles */

.footer {
    background-color: var(--color-primary-blue);
    color: var(--color-white);
    padding: var(--spacing-xxl) 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    line-height: 1.6;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
}

.social-icon-btn:hover {
    background-color: var(--color-accent-main);
    color: var(--color-white);
    transform: scale(1.1);
}

.social-icon-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    position: relative;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    transition: color var(--transition-fast);
}

.footer-links-list a:hover {
    color: var(--color-sky-blue);
    padding-left: 2px;
}

.footer-links-list a.active {
    color: var(--color-sky-blue);
    font-weight: 600;
    border-bottom: 2px solid var(--color-sky-blue);
    display: inline-block;
    padding-bottom: 2px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-logo-bottom img {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Responsive Footer Layout */
@media (max-width: 991px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: span 2;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg) var(--spacing-md);
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .footer-bottom-bar {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}


/* Developer Tooltip Styles */
.developer-info-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.developer-trigger {
  margin: 0;
  font-size: 14px;
  color: #fff !important;
  transition: all 0.3s ease;
}

.developer-trigger .it-text {
  font-weight: 600;
  color: var(--eduskill-primary, #38bdf8);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.developer-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding-bottom: 25px; /* Added invisible bridge to prevent losing hover */
  width: 280px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s;
  z-index: 1000;
  pointer-events: none;
}

.developer-info-container:hover .developer-tooltip,
.developer-info-container:focus-within .developer-tooltip,
.developer-info-container.active .developer-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  /* Keep visible when hovering over the tooltip itself */
  transition-delay: 0s;
}

/* Add a slight delay when moving mouse away to make it feel more stable */
.developer-info-container .developer-tooltip {
    transition-delay: 0.1s;
}


.tooltip-content {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1);
  color: #fff;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.info-icon {
  width: 32px;
  height: 32px;
  background: rgba(56, 189, 248, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.tooltip-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.developers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.developer-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.dev-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s ease;
}

.developer-item:hover .dev-name {
  color: #38bdf8;
}

.dev-links {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.developer-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.developer-item:hover,
.developer-item:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15); /* Outer highlight ring */
  transform: translateY(-2px);
}

/* Ensure no ugly browser outlines show up on click */
.stretched-link:focus {
  outline: none;
}

.dev-avatar {
  width: 80px;
  height: 85px; /* Matching user's 600x650 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(56, 189, 248, 0.35);
  background: #0f172a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.dev-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.05); /* Zoom in to focus on the face as requested */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.developer-item:hover .dev-avatar img {
  filter: grayscale(100%);
  transform: scale(1.3); /* Slightly more zoom on hover */
}

.dev-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.dev-role {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.2;
  margin-bottom: 6px;
}

.portfolio-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 6px;
  width: 100%;
}

.portfolio-tag span {
  font-size: 7.5px; /* Minimal clean size */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(56, 189, 248, 0.6);
  white-space: nowrap;
}

.portfolio-tag::after {
  content: "";
  height: 1px;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.08);
}

.portfolio-tag i {
  display: none; /* Hide the icon to keep it clean */
}

.dev-links a {
  color: #64748b;
  font-size: 14px;
  transition: all 0.2s ease;
}

.dev-links a:hover {
  transform: translateY(-2px);
}

.dev-brand-logo {
  position: absolute;
  bottom: 10px;
  right: 12px;
  height: 18px; /* Larger size */
  width: auto;
  opacity: 0.5; /* Slightly less opaque by default to not distract */
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 10;
  transition: all 0.3s ease;
}

.developer-item:hover .dev-brand-logo {
  opacity: 0.9;
  transform: scale(1.05);
}

.dev-links a .fa-linkedin:hover {
  color: #0077b5;
}

.dev-links a .fa-instagram:hover {
  background: -webkit-linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(220, 39, 67, 0.3));
}

.dev-links a .fa-github:hover {
  color: #fff;
  background-color: #24292e;
  border-radius: 4px;
}

.tooltip-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-footer i {
  color: #10b981;
}

.tooltip-arrow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(30, 41, 59, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .developer-tooltip {
    width: 240px;
    bottom: auto;
    top: 100%;
    margin-top: 15px;
    margin-bottom: 0;
  }
  
  .tooltip-arrow {
    bottom: auto;
    top: -6px;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}


/* Footer Layout adjustments */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Developers Grid Layout */
.developer-tooltip {
    width: 480px; /* Make it wider to fit two side-by-side */
}
.developers-row {
    display: flex;
    gap: 12px;
}
.half-item {
    flex: 1;
    width: 50%;
}
.full-width-item {
    margin-bottom: 12px;
}

/* Mobile Bottom Sheet Flow */
@media (max-width: 768px) {
  .developer-tooltip {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: translateY(100%) !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 20px 20px 30px 20px !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98)) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5) !important;
    border-top: 1px solid rgba(56, 189, 248, 0.3) !important;
    z-index: 10000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
  }

  .developer-info-container.active .developer-tooltip {
    transform: translateY(0) !important;
  }

  .tooltip-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    max-height: 80vh;
    overflow-y: auto;
    padding: 0 !important;
  }

  .tooltip-arrow {
    display: none !important;
  }

  .tooltip-content::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 20px auto;
  }
  
  .developers-row {
      flex-direction: column;
  }
  .half-item {
      width: 100%;
  }
  
  .tooltip-close-btn {
      display: flex !important;
      position: absolute;
      top: 0px;
      right: 0px;
      background: rgba(255,255,255,0.1);
      border: none;
      color: white;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      align-items: center;
      justify-content: center;
      z-index: 10001;
  }
}

/* Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    font-size: 24px;
    background-color: var(--color-sky-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background-color: var(--color-white);
    color: var(--color-sky-blue);
    transform: translateY(-5px);
}
@media (max-width: 576px) {
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
}
