/* css/features.css */

/* Dark / Light mode smooth transition */
html {
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
body, .navbar, .services, .portfolio, .process, .stats, .about, .testimonials, .contact, .footer, .marquee {
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

/* Page Transition Curtain */
.page-transition-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 9999;
  transform: scaleX(0);
  transform-origin: left;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.page-transition-curtain .curtain-logo {
  height: clamp(5rem, 12vw, 10rem); /* Set the logo image size to be large like the previous text */
  width: auto;
  opacity: 0;
  display: block;
}

/* Floating Start Project Button */
.floating-start-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--accent);
  color: #000000;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}
.floating-start-btn.visible {
  transform: translateY(0);
  opacity: 1;
}
.floating-start-btn:hover {
  background-color: var(--accent-blue);
  color: #FFFFFF;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(239, 195, 131, 0.4);
}

@media (max-width: 768px) {
  .floating-start-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}


/* Scroll Progress Indicator */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 10000;
  background-color: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* Notification Toast System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.toast {
  background-color: var(--bg-card);
  color: var(--text-primary);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  width: 320px;
  border-left: 3px solid var(--accent);
  position: relative;
  overflow: hidden;
  pointer-events: auto;
}
.toast.error { border-left-color: #FF4444; }
.toast.info { border-left-color: #4499FF; }

.toast-content { flex-grow: 1; }
.toast-message { font-size: 0.9rem; line-height: 1.4; }
.toast-close {
  color: var(--text-muted);
  cursor: pointer;
}
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: inherit;
  width: 100%;
}
.toast.success .toast-progress { background-color: var(--accent); }
.toast.error .toast-progress { background-color: #FF4444; }
.toast.info .toast-progress { background-color: #4499FF; }

/* Dark Mode Toggle Navbar Styling */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-primary);
  transition: background-color var(--transition-hover);
  cursor: pointer;
}
.theme-toggle:hover {
  background-color: var(--bg-secondary);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
