/* Corama Design System - Devin AI Complete Color Palette */
:root {
  /* AI Tech Dark Blue Color Palette */
  --primary-dark: #0f172a;
  --primary-navy: #1e293b;
  --secondary-navy: #334155;
  --accent-blue: #1e3a8a;
  --accent-cyan: #3b82f6;
  --accent-green: #60a5fa;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --background-primary: #0f172a;
  --background-secondary: #1e293b;
  --background-card: #334155;
  --border-color: #475569;
  
  /* AI Tech Gradient Variables */
  --gradient-primary: linear-gradient(90deg, #1e3a8a, #3b82f6, #60a5fa);
  --gradient-secondary: linear-gradient(120deg, #1e293b 30%, #334155, #475569 70%);
  --gradient-animated: linear-gradient(-45deg, #1e3a8a, #3b82f6, #60a5fa, #1e3a8a);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  
  /* Typography */
  --font-family: 'Inter', 'Jost', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
}

/* Sophisticated Animated Background System */
.hero-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #4facfe, #00f2fe, #667eea, #3b82f6, #1e40af, #0ea5e9);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  z-index: 0;
}

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

/* Sudden Animation Trigger */
.hero-section:hover .hero-animated-bg {
  animation-duration: 8s;
}

.animated-background {
  background: var(--gradient-animated);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* Floating Bubbles Animation Background */
.floating-bubbles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.6), rgba(59, 130, 246, 0.4), rgba(96, 165, 250, 0.3));
  animation: bubbleFloat 15s infinite linear;
  filter: blur(1px);
  box-shadow: 0 0 20px rgba(30, 58, 138, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.bubble:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.bubble:nth-child(2) {
  width: 60px;
  height: 60px;
  left: 20%;
  animation-delay: 2s;
  animation-duration: 14s;
}

.bubble:nth-child(3) {
  width: 100px;
  height: 100px;
  left: 35%;
  animation-delay: 4s;
  animation-duration: 16s;
}

.bubble:nth-child(4) {
  width: 40px;
  height: 40px;
  left: 50%;
  animation-delay: 6s;
  animation-duration: 10s;
}

.bubble:nth-child(5) {
  width: 70px;
  height: 70px;
  left: 65%;
  animation-delay: 8s;
  animation-duration: 13s;
}

.bubble:nth-child(6) {
  width: 90px;
  height: 90px;
  left: 80%;
  animation-delay: 10s;
  animation-duration: 15s;
}

.bubble:nth-child(7) {
  width: 50px;
  height: 50px;
  left: 15%;
  animation-delay: 12s;
  animation-duration: 11s;
}

.bubble:nth-child(8) {
  width: 120px;
  height: 120px;
  left: 75%;
  animation-delay: 14s;
  animation-duration: 18s;
}

@keyframes bubbleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translateY(50vh) rotate(180deg);
    opacity: 0.6;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Modern Typography System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base typography */
body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--background-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  text-align: center;
  margin: 4rem 0 2rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Utility classes */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.bg-primary { background-color: var(--background-primary); }
.bg-secondary { background-color: var(--background-secondary); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Hero Section Styles */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 20px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s ease forwards 0.3s;
  font-family: 'Inter', sans-serif;
  width: 100%;
  max-width: 1200px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: white;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.ai-text {
  background: linear-gradient(45deg, #4facfe, #00f2fe, #3b82f6);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 3s linear infinite;
}

.hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

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

/* Container improvements */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.main-container {
  min-height: calc(100vh - 200px);
  padding-top: var(--spacing-xl);
}

/* Card and content responsive styles */
.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  background-color: var(--background-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-lg);
}

.card-body {
  padding: var(--spacing-lg);
}

/* Modal responsive styles */
.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-lg);
}

.modal-body {
  padding: var(--spacing-lg);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-lg);
}

/* Responsive Design System */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
    --spacing-2xl: 2rem;
    --spacing-xl: 1.5rem;
  }
  
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .main-container {
    padding-top: var(--spacing-lg);
  }
  
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  h2 {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.375rem;
    --font-size-2xl: 1.125rem;
    --spacing-2xl: 1.5rem;
    --spacing-xl: 1rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* Form responsive styles */
.form-control {
  font-family: var(--font-family);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 0.2rem rgba(104, 153, 180, 0.25);
}

.form-label {
  font-family: var(--font-family);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

/* Responsive typography classes */
@media (max-width: 768px) {
  .responsive-title {
    font-size: var(--font-size-xl) !important;
  }
  
  .responsive-btn {
    padding: var(--spacing-md) var(--spacing-lg) !important;
    font-size: var(--font-size-base) !important;
  }
  
  /* Page title responsive adjustments */
  .page-title-section {
    height: 150px !important;
    padding: var(--spacing-lg) 0 !important;
  }
  
  .page-title-section h1 {
    font-size: var(--font-size-2xl) !important;
  }
  
  .page-title-section h2 {
    font-size: var(--font-size-lg) !important;
  }
}

@media (max-width: 480px) {
  .responsive-title {
    font-size: var(--font-size-lg) !important;
  }
  
  .responsive-btn {
    padding: var(--spacing-sm) var(--spacing-md) !important;
    font-size: var(--font-size-sm) !important;
  }
  
  /* Page title mobile adjustments */
  .page-title-section {
    height: 120px !important;
    padding: var(--spacing-md) 0 !important;
  }
  
  .page-title-section h1 {
    font-size: var(--font-size-xl) !important;
  }
  
  .page-title-section h2 {
    font-size: var(--font-size-base) !important;
  }
}

/* Mobile-First Responsive Utility Classes */
.mobile-hidden {
  display: block;
}

.mobile-visible {
  display: none;
}

.mobile-full-width {
  width: 100%;
}

.mobile-text-center {
  text-align: inherit;
}

.mobile-stack {
  flex-direction: row;
}

@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
  
  .mobile-visible {
    display: block !important;
  }
  
  .mobile-full-width {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .mobile-text-center {
    text-align: center !important;
  }
  
  .mobile-stack {
    flex-direction: column !important;
  }
  
  /* Responsive grid utilities */
  .row {
    flex-direction: column;
  }
  
  .col-md-6, .col-md-4, .col-md-3, .col-lg-6, .col-lg-4, .col-lg-3 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  /* Responsive spacing */
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  
  /* Responsive tables */
  .table-responsive-mobile {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Responsive images */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Responsive forms */
  .form-row {
    flex-direction: column;
  }
  
  .form-row > .col,
  .form-row > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 1rem;
  }
  
  /* Responsive buttons */
  .btn-group-responsive {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group-responsive .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  /* Extra small device adjustments */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Smaller font sizes for very small screens */
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  /* Touch-friendly button sizes */
  .btn {
    min-height: 44px;
    padding: 10px 16px;
  }
  
  /* Touch-friendly form inputs */
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Responsive modals */
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .modal-content {
    border-radius: var(--radius-md);
  }
}
