@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --brand-cyan: #00C4DE;
    --brand-blue: #0088C2;
    --brand-purple: #0066A0;
    --brand-orange: #004D7A;
    --brand-yellow: #003555;
    --brand-navy: #FFFFFF;
    --brand-dark: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #FFFFFF;
    color: var(--text-primary);
    overflow-x: hidden;
  }

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: var(--text-primary);
  }

  p {
    color: var(--text-secondary);
  }
}

@layer components {
  .gradient-text {
    background: linear-gradient(135deg, #00C4DE, #0088C2, #0066A0, #004D7A, #003555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
  }

  .glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  .glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 136, 194, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 136, 194, 0.1);
  }

  .glow-cyan {
    box-shadow: 0 0 20px rgba(0, 196, 222, 0.3), 0 0 40px rgba(0, 196, 222, 0.1);
  }

  .glow-purple {
    box-shadow: 0 0 20px rgba(0, 102, 160, 0.3), 0 0 40px rgba(0, 102, 160, 0.1);
  }

  .glow-orange {
    box-shadow: 0 0 20px rgba(0, 77, 122, 0.3), 0 0 40px rgba(0, 77, 122, 0.1);
  }

  .btn-brand {
    @apply px-8 py-3 rounded-full font-semibold transition-all duration-300;
    background: linear-gradient(135deg, #00C4DE, #0088C2);
    color: white;
  }

  .btn-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 136, 194, 0.3);
  }

  .btn-brand-outline {
    @apply px-8 py-3 rounded-full font-semibold transition-all duration-300;
    border: 2px solid #0088C2;
    color: #0088C2;
    background: transparent;
  }

  .btn-brand-outline:hover {
    background: #0088C2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 136, 194, 0.3);
  }

  .section-padding {
    @apply py-20 px-4 md:px-8 lg:px-16;
  }

  .container-custom {
    @apply max-w-7xl mx-auto;
  }

  .grid-pattern {
    background-image: 
      linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
  }

  .card-light {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .card-light:hover {
    box-shadow: 0 20px 40px rgba(0, 136, 194, 0.1);
    border-color: rgba(0, 136, 194, 0.2);
  }
}

@layer utilities {
  .text-gradient {
    background: linear-gradient(135deg, #00C4DE, #0088C2, #0066A0, #004D7A, #003555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .bg-brand-gradient {
    background: linear-gradient(135deg, #00C4DE 0%, #0088C2 25%, #0066A0 50%, #004D7A 75%, #003555 100%);
  }

  .animate-gradient {
    background-size: 200% 200%;
    animation: gradient 8s ease infinite;
  }

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

  .hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 136, 194, 0.15);
  }

  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
  }
  75% {
    border-radius: 60% 40% 60% 30% / 60% 40% 30% 70%;
  }
}

@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(30px, 10px) scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes scroll {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

@layer base {
  ::selection {
    background: rgba(0, 136, 194, 0.2);
    color: #0F172A;
  }

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

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

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00C4DE, #0088C2);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0088C2, #0066A0);
  }

  input, textarea, select {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #0F172A;
  }

  input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #0088C2;
    box-shadow: 0 0 0 3px rgba(0, 136, 194, 0.1);
  }
}
