/* Oosal Web - Enhanced Styles with Raleway Font */

/* Import Raleway font */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Set Raleway as default font */
body {
  font-family: 'Raleway', sans-serif;
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    transform: translateY(30px); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Utility classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

.float {
  animation: float 3s ease-in-out infinite;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Oosal brand gradient ring effect */
.ring-gradient {
  box-shadow: 0 0 0 1px rgba(129, 154, 145, 0.2), 0 0 0 6px rgba(129, 154, 145, 0.08);
}

/* Custom hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #819a91, #6b8a7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, #819a91, #6b8a7a);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6b8a7a, #5a7365);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(129, 154, 145, 0.3);
}

/* Service category icons */
.service-icon {
  transition: all 0.3s ease;
}

.service-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Pricing card hover effects */
.pricing-card {
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(129, 154, 145, 0.15);
}

/* Testimonial cards */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Modal styles */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

.modal-content {
  animation: slideUp 0.3s ease-out;
}

/* Form styles */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(129, 154, 145, 0.15);
}

/* Role selection buttons */
.role-button {
  transition: all 0.3s ease;
}

.role-button:hover {
  transform: translateY(-2px);
}

.role-button.active {
  box-shadow: 0 4px 12px rgba(129, 154, 145, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #819a91;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b8a7a;
}

/* Focus states for accessibility */
.focus-ring:focus {
  outline: 2px solid #819a91;
  outline-offset: 2px;
}

/* Button press animation */
button:active {
  transform: scale(0.95);
}

/* Form validation styles */
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  .dark-mode {
    background-color: #1a1a1a;
    color: #ffffff;
  }
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.font-raleway {
  font-family: 'Raleway', sans-serif;
}

/* Enhanced button styles */
.btn-oosal {
  background: linear-gradient(135deg, #819a91, #6b8a7a);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-oosal:hover {
  background: linear-gradient(135deg, #6b8a7a, #5a7365);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(129, 154, 145, 0.3);
}

.btn-oosal-outline {
  border: 2px solid #819a91;
  color: #819a91;
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-oosal-outline:hover {
  background: #819a91;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(129, 154, 145, 0.2);
}

/* App Bar Enhancements */
.app-bar {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(129, 154, 145, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.app-bar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation Link Hover Effects */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #819a91, #6b8a7a);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Active navigation state */
nav a.text-oosal-600 {
  color: #5a7365 !important;
  font-weight: 600;
}

nav a.text-oosal-600::after {
  width: 100%;
}

/* Logo Animation */
.logo-container {
  transition: all 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-container:hover .logo-text {
  color: #6b8a7a;
}

/* Mobile Menu Animation */
.mobile-menu {
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
}

/* Button Hover Effects */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Responsive App Bar */
@media (max-width: 768px) {
  .app-bar {
    padding: 0.5rem 0;
  }
  
  .logo-container {
    gap: 0.5rem;
  }
  
  .logo-text {
    font-size: 1.125rem;
  }
  
  .logo-subtitle {
    font-size: 0.625rem;
  }
}

/* Additional Animations */
.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Interactive Service Cards */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(129, 154, 145, 0.2);
}

/* Interactive Feature Cards */
.feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(129, 154, 145, 0.25);
}

/* Form Validation Styles */
.field-error {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Loading Button States */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Hover Effects */
.hover-lift-enhanced {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift-enhanced:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 30px 60px rgba(129, 154, 145, 0.3);
}

/* Pulse Animation for CTAs */
.pulse-cta {
  animation: pulseCTA 2s infinite;
}

@keyframes pulseCTA {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(129, 154, 145, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(129, 154, 145, 0);
  }
}

/* Smooth Transitions for All Interactive Elements */
button, a, .service-card, .feature-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States for Accessibility */
button:focus, a:focus, input:focus, select:focus {
  outline: 2px solid #819a91;
  outline-offset: 2px;
}

/* Disabled State Styling */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Success State for Forms */
.form-success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Error State for Forms */
.form-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}