/* ================================================================
   PRAGBIS TECHNOLOGIES — GLOBAL DESIGN SYSTEM
   ================================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Outfit:wght@300;400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Core Colors */
  --clr-bg:          #03020A;
  --clr-bg-2:        #070D1F;
  --clr-bg-3:        #0A1428;
  --clr-accent:      #00E5C8;
  --clr-accent-dim:  rgba(0, 229, 200, 0.12);
  --clr-accent-glow: rgba(0, 229, 200, 0.25);
  --clr-gold:        #FFB347;
  --clr-white:       #FFFFFF;
  --clr-text:        #A8B2C8;
  --clr-border:      rgba(0, 229, 200, 0.18);
  --clr-border-dim:  rgba(255, 255, 255, 0.06);

  /* Typography */
  --ff-heading: 'Syne', sans-serif;
  --ff-body:    'Outfit', sans-serif;

  --fs-hero:  clamp(52px, 8vw, 118px);
  --fs-h2:    clamp(32px, 4vw, 56px);
  --fs-h3:    clamp(18px, 2vw, 26px);
  --fs-body:  clamp(14px, 1.1vw, 17px);
  --fs-small: clamp(12px, 0.9vw, 14px);

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container:   1280px;
  --gutter:      clamp(20px, 5vw, 60px);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;

  /* Transitions */
  --t-fast:  0.2s ease;
  --t-base:  0.35s ease;
  --t-slow:  0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--ff-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--ff-body); }
ul { list-style: none; }
input, textarea, select { font-family: var(--ff-body); }

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-accent); border-radius: 99px; }

/* ── Selection ─────────────────────────────────────────────────── */
::selection { background: var(--clr-accent); color: var(--clr-bg); }

/* ── Layout ────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ── Glass Card ─────────────────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--clr-border-dim);
  border-radius: var(--radius-md);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base), background var(--t-base);
}

.glass-card:hover {
  border-color: var(--clr-accent);
  background: rgba(0, 229, 200, 0.04);
  box-shadow: 0 0 40px rgba(0, 229, 200, 0.08), 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--clr-accent);
  color: var(--clr-bg);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: #1fffd8;
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 229, 200, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: var(--clr-accent);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--clr-accent);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base), color var(--t-base);
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--clr-accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0, 229, 200, 0.18);
}

/* ── Typography Utilities ──────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 14px;
}

.section-heading {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--clr-accent);
  position: relative;
}

.section-sub {
  font-size: var(--fs-body);
  color: var(--clr-text);
  line-height: 1.85;
  max-width: 720px;
}

.section-sub.center {
  margin: 0 auto;
  text-align: center;
}

/* ── Decorative ─────────────────────────────────────────────────── */
.cyan-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), transparent);
  border-radius: 99px;
  margin-bottom: 40px;
}

.cyan-line.center { margin: 0 auto 40px; }

.radial-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── Fade-up (GSAP initial state) ──────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(60px);
}

/* ── Star Rating ────────────────────────────────────────────────── */
.stars {
  display: flex;
  gap: 3px;
  color: var(--clr-gold);
  font-size: 14px;
}

/* ── Tag Chip ───────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--clr-accent-dim);
  color: var(--clr-accent);
  border: 1px solid rgba(0, 229, 200, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Page Hero Padding for Fixed Nav ─────────────────────────────── */
#hero, #about-hero, #services-hero, #products-hero, #solutions-hero,
#industries-hero, #contact-hero, #training-hero, .page-hero {
  padding-top: 80px;
}

/* ── Gradient Accent Divider ─────────────────────────────────────── */
.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), transparent);
  margin: 0 auto 32px;
  border-radius: 99px;
}

/* ── Subtle Gradient Border Accent ───────────────────────────────── */
.gradient-border-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
  opacity: 0.3;
}

/* ── Hover Lift Effect ───────────────────────────────────────────── */
.hover-lift {
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ── Focus & Active States ───────────────────────────────────────── */
.btn-primary:focus-visible,
.btn-outline:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 3px;
}

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

.btn-outline:active {
  transform: translateY(-1px) scale(0.98);
}

/* ── Back to Top Button ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: var(--clr-bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-base), transform var(--t-base);
  box-shadow: 0 4px 20px rgba(0,229,200,0.3);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,229,200,0.5);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .back-to-top { bottom: 80px; right: 16px; width: 40px; height: 40px; }
}

/* ── Mobile Bottom Padding for Fixed CTA ─────────────────────────── */
@media (max-width: 768px) {
  body { padding-bottom: 70px; }
}

/* ── Smooth Section Transitions ──────────────────────────────────── */
.section {
  transition: background var(--t-slow);
}

/* ── Responsive Grid ────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Visually hidden ─────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
