/* ============================================================
   UVEOUS TECH — Design System
   Brand: Uveous Softtech Pvt. Ltd. | uveoustech.com
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --color-primary:       #1B4F9E;
  --color-primary-dark:  #143d7a;
  --color-primary-light: #2563c0;
  --color-accent:        #F4651E;
  --color-accent-dark:   #d4541a;
  --color-accent-light:  #ff7a38;
  --color-dark:          #1A1A2E;
  --color-dark-2:        #16213E;
  --color-dark-3:        #0F3460;

  /* Neutrals (Microsoft Fluent) */
  --color-gray-50:   #FAF9F8;
  --color-gray-100:  #F3F2F1;
  --color-gray-200:  #EDEBE9;
  --color-gray-300:  #E1DFDD;
  --color-gray-400:  #C8C6C4;
  --color-gray-500:  #ADB5BD;
  --color-gray-600:  #6C757D;
  --color-gray-700:  #495057;
  --color-gray-800:  #323130;
  --color-gray-900:  #201F1E;
  --color-white:     #FFFFFF;

  /* Semantic */
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error:   #EF4444;
  --color-info:    #3B82F6;

  /* Typography */
  --font-heading: 'Segoe UI WestEuropean', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-body:    'Segoe UI WestEuropean', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

  /* Font Sizes (fluid clamp) */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  clamp(2.5rem, 5vw, 4rem);
  --text-hero: clamp(2.75rem, 5.5vw, 4.5rem);

  /* Font Weights */
  --fw-regular:   400;
  --fw-medium:    400;
  --fw-semibold:  600;
  --fw-bold:      600;
  --fw-extrabold: 700;

  /* Line Heights */
  --lh-tight:   1.2;
  --lh-snug:    1.35;
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius (Strict Sharp) */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --radius-xl: 4px;
  --radius-full: 9999px;

  /* Shadows (Microsoft Depth) */
  --shadow-sm:  0 1.6px 3.6px 0 rgba(0,0,0,.13), 0 0.3px 0.9px 0 rgba(0,0,0,.11);
  --shadow-md:  0 3.2px 7.2px 0 rgba(0,0,0,.13), 0 0.6px 1.8px 0 rgba(0,0,0,.11);
  --shadow-lg:  0 6.4px 14.4px 0 rgba(0,0,0,.13), 0 1.2px 3.6px 0 rgba(0,0,0,.11);
  --shadow-xl:  0 12.8px 28.8px 0 rgba(0,0,0,.13), 0 2.4px 7.2px 0 rgba(0,0,0,.11);
  --shadow-blue: 0 3.2px 7.2px 0 rgba(27,79,158,.15);
  --shadow-orange: 0 3.2px 7.2px 0 rgba(244,101,30,.15);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(.34,1.56,.64,1);

  /* Z-index */
  --z-base:    1;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   200;
  --z-sticky:  300;
  --z-toast:   400;

  /* Layout */
  --container-max: 1280px;
  --nav-height: 72px;
  --section-py: clamp(4rem, 7vw, 6rem);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--color-gray-800);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-gray-900);
}
.text-white h1,.text-white h2,.text-white h3,
.dark-section h1,.dark-section h2,.dark-section h3 { color: var(--color-white); }

h1 { font-size: var(--text-hero); font-weight: var(--fw-extrabold); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
p  { line-height: var(--lh-relaxed); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title { margin-bottom: var(--space-4); }
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  line-height: var(--lh-relaxed);
  max-width: 640px;
}
.dark-section .section-subtitle { color: rgba(255,255,255,.7); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section { padding-block: var(--section-py); }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); }

.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-inline: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  transition: background var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6.4px 14.4px 0 rgba(27,79,158,.2);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,.1);
}

.btn-outline-blue {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline-blue:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-ghost {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  padding-inline: 0;
}
.btn-ghost svg { transition: transform var(--transition-base); }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-lg { padding: 1rem 2.25rem; font-size: var(--text-base); }
.btn-sm { padding: .5rem 1.25rem; font-size: var(--text-xs); }

/* ── Cards ── */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-glass {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: background var(--transition-base), border-color var(--transition-base);
}
.card-glass:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.25);
}
.card-border {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 2px;
  padding: var(--space-8);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.card-border:hover {
  box-shadow: 0 1.6px 3.6px 0 rgba(0,0,0,.13), 0 0.3px 0.9px 0 rgba(0,0,0,.11);
}

/* ── Dark Section ── */
.dark-section {
  background: #201f1e;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(27,79,158,.25) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: .03em;
}
.badge-ai {
  background: linear-gradient(135deg, #1B4F9E, #F4651E);
  color: var(--color-white);
}
.badge-new {
  background: rgba(34,197,94,.15);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,.3);
}
.badge-featured {
  background: rgba(244,101,30,.12);
  color: var(--color-accent);
  border: 1px solid rgba(244,101,30,.25);
}

/* ── Icon Box ── */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box-blue  { background: rgba(27,79,158,.12); color: var(--color-primary); }
.icon-box-orange{ background: rgba(244,101,30,.12); color: var(--color-accent);  }
.icon-box-white { background: rgba(255,255,255,.12); color: var(--color-white);  }

/* ── Stats ── */
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-primary);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-top: var(--space-2);
}

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-gray-700);
}
.form-control {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid var(--color-gray-400);
  border-radius: 2px;
  font-size: var(--text-sm);
  color: var(--color-gray-800);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--color-primary);
  border-width: 2px;
  padding: calc(.5rem - 1px) calc(.75rem - 1px);
}
.form-control::placeholder { color: var(--color-gray-400); }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 2.5rem; }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--color-gray-200);
  margin-block: var(--space-8);
}

/* ── Gradient Texts ── */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-blue {
  background: linear-gradient(135deg, #60a5fa, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(244,101,30,.4); }
  70%  { box-shadow: 0 0 0 16px rgba(244,101,30,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,101,30,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-ring { animation: pulse-ring 2s ease-in-out infinite; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transition: opacity .4s ease;
}
.reveal.visible {
  opacity: 1;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Divider Pattern ── */
.section-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.section-wave svg { display: block; }

/* ── Dot Pattern Overlay ── */
.dot-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  h2 { font-size: var(--text-3xl); }
  .container { padding-inline: var(--space-4); }
  .btn-lg { padding: .875rem 1.75rem; font-size: var(--text-sm); }
}
