/* Modern UI/UX with Liquid Glass Morphism & Animations */

/* ==================== COLORS & GRADIENTS ==================== */
:root {
  --navy: #0F172A;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --glass-light: rgba(255, 255, 255, 0.25);
  --glass-dark: rgba(15, 23, 42, 0.25);
  --gradient-amber: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --gradient-navy: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --glow-amber: 0 0 30px rgba(245, 158, 11, 0.5);
  --glow-blue: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* ==================== TYPOGRAPHY & BASE ==================== */
* {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  overflow-x: hidden;
}

/* ==================== GLASS MORPHISM COMPONENTS ==================== */

/* Glass containers - liquid effect */
.glass-container {
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.glass-container-dark {
  background: var(--glass-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Card with glass effect */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(31, 38, 135, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-button {
  background: var(--glass-light);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 24px;
  cursor: pointer;
  font-weight: 600;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 38, 135, 0.2);
}

.glass-button:active {
  transform: translateY(0);
}

/* ==================== ANIMATIONS ==================== */

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Fade out animation */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Slide in from top */
@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-top {
  animation: slideInTop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Bounce animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.bounce-on-hover:hover {
  animation: bounce 0.6s ease-in-out;
}

/* Glow animation */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  }
}

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

/* Pulse animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Shimmer animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.1) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Rotate animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate-spin {
  animation: rotate 3s linear infinite;
}

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

/* Scale up animation */
@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-up {
  animation: scaleUp 0.5s ease-out forwards;
}

/* ==================== HEADER ENHANCEMENTS ==================== */

header {
  background: var(--gradient-navy) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

header a {
  position: relative;
  overflow: hidden;
}

header a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

header a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==================== BUTTONS ==================== */

.btn-primary {
  background: var(--gradient-amber);
  border: none;
  color: var(--navy);
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 28px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--amber);
  color: var(--amber);
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 26px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  background: var(--amber);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

/* ==================== CARDS & SECTIONS ==================== */

.service-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(31, 38, 135, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(245, 158, 11, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--gradient-amber);
  transition: left 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.service-card:hover::before {
  left: 0;
}

/* ==================== MODAL & OVERLAY ==================== */

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

.modal-content {
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==================== FORM ELEMENTS ==================== */

input, textarea, select {
  transition: all 0.3s ease;
  border-radius: 12px;
}

input:focus, textarea:focus, select:focus {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* ==================== GRADIENT TEXT ==================== */

.gradient-text {
  background: var(--gradient-amber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ==================== ICON ANIMATIONS ==================== */

.icon-hover {
  transition: all 0.3s ease;
  display: inline-block;
}

.icon-hover:hover {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

/* ==================== LOADER ==================== */

.loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(245, 158, 11, 0.2);
  border-top: 4px solid var(--amber);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .glass-card {
    border-radius: 12px;
    padding: 16px;
  }

  .service-card {
    padding: 20px;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* ==================== STAGGER ANIMATIONS ==================== */

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ==================== SCROLLBAR STYLING ==================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(245, 158, 11, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--amber);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--amber-dark);
}
