/*
  Truelight Technology — Premium UI Styles
  - TailwindCSS handles utility classes
  - This file adds custom tokens, gradients, micro-interactions, and component styles
*/

:root {
  /* Apple/Google-inspired accents and neutrals */
  --accent-1: #0A84FF;  /* iOS Blue / Material Primary */
  --accent-2: #2F6BFF;  /* Deeper mid blue */
  --accent-3: #64D2FF;  /* Light electric blue */
  --text-1: #0f172a;    /* slate-900 */
  --text-2: #334155;    /* slate-700 */
  --text-3: #64748b;    /* slate-500 */
  --border: #e5e7eb;    /* slate-200 */
  --surface: #ffffff;
  --surface-subtle: #f8fafc; /* slate-50 */
}

/* Global */
html { scroll-behavior: smooth; }
body { background: var(--surface); color: var(--text-1); }
.font-sans { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Inter', 'Roboto', 'Segoe UI', Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif; }

/* Animated gradient background (hero) */
#hero-bg {
  background: radial-gradient(1200px 600px at 10% 10%, rgba(10, 132, 255, 0.08), transparent 60%),
              radial-gradient(800px 400px at 90% 20%, rgba(47, 107, 255, 0.08), transparent 50%),
              radial-gradient(600px 300px at 30% 80%, rgba(100, 210, 255, 0.08), transparent 55%);
  filter: blur(40px);
  animation: bgPulse 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.06); opacity: 1; }
}

/* Partner logos */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 200ms ease;
}
.partner-logo:hover {
  background: var(--surface);
  border-color: rgba(10, 132, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 24, 63, 0.06);
}

/* Service cards */
.service-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(2, 24, 63, 0.08);
  border-color: rgba(10, 132, 255, 0.25);
}
.service-icon { font-size: 28px; }
.service-title { margin-top: 8px; font-weight: 700; font-size: 1.1rem; }
.service-desc { margin-top: 6px; color: var(--text-2); }
.service-price { margin-top: 12px; font-weight: 600; color: var(--accent-2); }
.service-delivery { margin-top: 4px; color: var(--text-3); font-size: 0.9rem; }

/* Portfolio */
.portfolio-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 300ms ease, border-color 300ms ease;
}
.portfolio-card:hover { transform: translateY(-3px); border-color: rgba(10,132,255,0.25); }
.portfolio-thumb {
  height: 160px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.14), rgba(100, 210, 255, 0.12));
}
.portfolio-body { padding: 16px; }
.portfolio-body h4 { font-weight: 700; }
.portfolio-body p { color: var(--text-2); margin-top: 4px; }

/* Pricing cards */
.pricing-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  text-align: left;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(2, 24, 63, 0.08); border-color: rgba(10, 132, 255, 0.25); }
.pricing-card h3 { font-weight: 700; }
.pricing-card .price { margin: 8px 0 10px; font-weight: 800; color: #1d4ed8; }
.pricing-cta {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-1);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}
.pricing-cta:hover { opacity: 0.9; }

/* Testimonials */
/* Removed testimonials styles */

/* Form */
.label { display: block; font-size: 0.85rem; color: var(--text-2); margin-bottom: 6px; }
.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-1);
  outline: none;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.input:focus { border-color: rgba(10,132,255,0.38); box-shadow: 0 0 0 4px rgba(10,132,255,0.14); }

/* Typed text caret style */
.typed-cursor { color: rgba(100,116,139,0.8) !important; }

/* Buttons */
.btn-primary {
  background: var(--accent-1);
  color: #ffffff;
}
.btn-primary:hover { filter: saturate(1.05) brightness(0.98); }
.btn-outline {
  color: var(--text-1);
  border: 1px solid var(--border);
  background: transparent;
}
.btn-outline:hover {
  border-color: rgba(10,132,255,0.45);
  color: var(--accent-1);
}

/* Project cards */
.project-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  text-decoration: none;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(2, 24, 63, 0.1);
  border-color: rgba(10, 132, 255, 0.3);
}

.project-visual {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(100, 210, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 300ms ease;
}

.project-card:hover .project-icon {
  transform: scale(1.12) rotate(2deg);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.project-logo-text {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transition: transform 300ms ease, color 300ms ease;
}

.project-card:hover .project-logo-text {
  transform: scale(1.08);
  color: var(--accent-2);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 132, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 300ms ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link-text {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.project-info {
  padding: 20px;
}

.project-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-1);
  margin-bottom: 6px;
}

.project-desc {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.project-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .service-card, .pricing-card { padding: 16px; }
  
  /* Enhanced mobile project cards */
  .project-card {
    padding: 0;
    border-radius: 16px;
  }
  
  .project-visual { 
    height: 160px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(100, 210, 255, 0.06));
  }
  
  .project-icon { 
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
  }
  
  .project-info {
    padding: 16px;
  }
  
  .project-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .project-desc {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .project-tag {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  
  /* Disable hover effects on mobile */
  .project-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .project-card:hover .project-icon {
    transform: none;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
  }
  
  .project-overlay {
    display: none;
  }
}

/* Capabilities */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Hero abstract shapes */
.hero-shape {
  position: absolute;
  border-radius: 24px;
  filter: blur(24px);
  opacity: 0.35;
}
.hero-shape-1 { width: 160px; height: 160px; background: rgba(10,132,255,0.25); top: -20px; right: -10px; }
.hero-shape-2 { width: 180px; height: 180px; background: rgba(47,107,255,0.25); bottom: -20px; left: -10px; }
.hero-shape-3 { width: 120px; height: 120px; background: rgba(100,210,255,0.25); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.cap-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 6px 20px rgba(2, 24, 63, 0.06);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(2, 24, 63, 0.08); border-color: rgba(10,132,255,0.22); }
.cap-icon { font-size: 24px; color: var(--accent-1); }
.cap-title { margin-top: 10px; font-weight: 700; color: var(--text-1); }

/* Process steps */
.step-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(2, 24, 63, 0.05);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(2, 24, 63, 0.08); border-color: rgba(10,132,255,0.2); }
.step-icon { font-size: 22px; color: var(--accent-1); margin-bottom: 8px; }
.step-title { font-weight: 600; color: var(--text-1); font-size: 0.95rem; }

/* Why Choose Us */
.why-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 6px 20px rgba(2, 24, 63, 0.06);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(2, 24, 63, 0.08); border-color: rgba(10,132,255,0.22); }
.why-title { font-weight: 700; color: var(--text-1); }
