/* Custom Styles for Roichil Website */

/* Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font-inter: 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--font-inter);
}

/* Gradient Text Animation */
@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-gradient-text {
  background-size: 200% auto;
  animation: gradient 3s ease infinite;
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Glow Effect */
.glow-hover:hover {
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.4), 0 0 60px rgba(14, 165,233, 0.3);
}

/* Text Balance */
.text-balance {
  text-wrap: balance;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0ea5e9;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Modal Styles */
#project-modal {
  animation: fadeIn 0.3s ease-out;
}

#project-modal .bg-white {
  animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal Image Overlay */
#project-modal img {
  transition: transform 0.3s ease;
}

#project-modal:hover img {
  transform: scale(1.05);
}

/* Modal Close Button */
#project-modal button[onclick="closeProjectModal()"] {
  transition: all 0.2s ease;
}

#project-modal button[onclick="closeProjectModal()"]:hover {
  transform: rotate(90deg);
  background: #f3f4f6;
}

/* Modal Content Spacing */
#project-modal .space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Modal Services List */
#modal-services li {
  transition: transform 0.2s ease;
}

#modal-services li:hover {
  transform: translateX(4px);
}

/* Responsive Modal */
@media (max-width: 640px) {
  #project-modal .sm\:max-w-4xl {
    max-width: 100%;
    margin: 0;
  }
  
  #project-modal .sm\:my-8 {
    margin-top: 0;
    margin-bottom: 0;
  }
}

