/* Extra interactive enhancements for Stonebrook Workspace */

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #007bff;
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0, 123, 255, 0.5);
  transition: width 0.2s, height 0.2s, background 0.2s;
}
body:hover .cursor-dot,
body:hover .cursor-outline {
  opacity: 1;
}
.cursor-outline.hover {
  width: 60px;
  height: 60px;
  background: rgba(0, 123, 255, 0.1);
  border-color: #007bff;
}

/* Magnetic Buttons */
.vs-btn, .magnetic {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Tilt Cards */
.service-style2,
.project-card,
.pricing-card,
.testi-card {
  transition: transform 0.15s ease-out, box-shadow 0.3s;
  transform-style: preserve-3d;
}
.service-style2:hover,
.project-card:hover {
  box-shadow: 0 20px 40px rgba(0, 80, 180, 0.15);
}

/* Quote Modal */
.quote-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}
.quote-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.quote-modal {
  background: #fff;
  border-radius: 20px;
  width: 95%;
  max-width: 520px;
  padding: 40px 36px;
  position: relative;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.quote-modal-overlay.active .quote-modal {
  transform: translateY(0) scale(1);
}
.quote-modal .close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.quote-modal .close-btn:hover {
  background: #e2e8f0;
  transform: rotate(90deg);
}
.quote-modal h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 28px;
  margin-bottom: 8px;
  color: #0f172a;
}
.quote-modal .subtitle {
  color: #64748b;
  margin-bottom: 28px;
  font-size: 15px;
}
.quote-form .form-group {
  margin-bottom: 18px;
}
.quote-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}
.quote-form textarea {
  resize: vertical;
  min-height: 90px;
}
.quote-form .submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
}
.quote-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}
.quote-form .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success state */
.quote-success {
  text-align: center;
  padding: 20px 0;
  display: none;
}
.quote-success.active {
  display: block;
}
.quote-success .icon {
  width: 70px;
  height: 70px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Floating Action Button */
.fab-quote {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #007bff, #00a0ff);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  cursor: pointer;
  z-index: 9990;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
}
.fab-quote:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(0, 123, 255, 0.5);
}
.fab-quote .tooltip {
  position: absolute;
  right: 70px;
  background: #0f172a;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(10px);
}
.fab-quote:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Water drop animation for loading or accents */
@keyframes drip {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(20px) scale(0.6); opacity: 0; }
}

/* Smooth scroll progress already exists, enhance circle */
.back-to-top .progress-circle {
  transition: transform 0.2s;
}
.back-to-top:hover .progress-circle {
  transform: scale(1.1);
}

/* Interactive service hover glow */
.service-style2 .service-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-style2:hover .service-icon {
  transform: scale(1.15) rotate(-8deg);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .cursor-dot, .cursor-outline { display: none !important; }
  .fab-quote { bottom: 80px; right: 20px; width: 52px; height: 52px; font-size: 20px; }
}
