/* ===================================================
   ALLIED INTEGRATED SERVICES — GLOBAL STYLESHEET
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500&display=swap');

/* ─── Design Tokens ─────────────────────────────── */
:root {
  --primary:        #5ba3d9;
  --primary-glow:   rgba(91, 163, 217, 0.16);
  --primary-dark:   #2d6ea8;
  --gold:           #c8d8e8;
  --bg-deep:        #060d19;
  --bg-dark:        #0a1628;
  --bg-card:        #0f2040;
  --glass:          rgba(10, 22, 40, 0.92);
  --glass-light:    rgba(91, 163, 217, 0.07);
  --text-white:     #ffffff;
  --text-light:     #dce9f7;
  --text-dim:       #8aa8c8;
  --border:         rgba(91, 163, 217, 0.14);
  --border-hover:   rgba(91, 163, 217, 0.5);
  --silver:         #c5d8e9;
  
  /* Light Theme Additions */
  --bg-white:       #ffffff;
  --bg-light:       #f4f7fb;
  --text-dark:      #2b3f54;
  --text-xdark:     #0a1628;
  --border-light:   #e0eaf3;
  --shadow-light:   0 10px 30px rgba(10, 22, 40, 0.05);
  
  --trans-fast:     0.25s ease;
  --trans-med:      0.45s cubic-bezier(0.4,0,0.2,1);
  --trans-slow:     0.7s cubic-bezier(0.65,0,0.35,1);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      24px;
  --shadow-glow:    0 0 40px rgba(91,163,217,0.12), 0 20px 60px rgba(0,0,0,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ─── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── Global Utilities ───────────────────────────── */


.text-gradient {
  background: linear-gradient(130deg, #ffffff 0%, #a8c8e8 60%, #5ba3d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-pad { padding: 110px 0; }

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-label {
  display: inline-block;
  color: var(--primary);
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid rgba(91, 163, 217, 0.3);
  border-radius: 50px;
  background: rgba(91, 163, 217, 0.05);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-xdark);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--trans-fast);
  cursor: pointer;
  border: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 30px rgba(0,212,255,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-glow);
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
  transform: translateY(-2px);
}



/* ─── Inner Page Hero (non-homepage) ─────────────── */
.inner-hero {
  position: relative;
  padding: 180px 0 100px;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
  overflow: hidden;
}

.inner-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.inner-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300d4ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

.inner-hero-content { position: relative; z-index: 2; }

.inner-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.inner-hero .breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--trans-fast);
}

.inner-hero .breadcrumb a:hover { color: #fff; }
.inner-hero .breadcrumb span { color: var(--primary); }

.inner-hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
}

.inner-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  line-height: 1.75;
}

/* ─── Cards ──────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: var(--trans-med);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--trans-med);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 40px rgba(10, 22, 40, 0.1);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1.8rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-xdark);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-dark);
  font-size: 0.93rem;
  line-height: 1.75;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: var(--trans-fast);
}

.card .card-link:hover { gap: 0.8rem; }

/* ─── Grids ──────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* ─── Stats Strip ────────────────────────────────── */
.stats-strip {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── Divider ────────────────────────────────────── */
.divider-glow {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  margin: 1.5rem 0;
}

/* ─── Footer ─────────────────────────────────────── */
#site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 3.5rem;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.footer-brand .footer-logo img {
  height: 44px;
  filter: brightness(1.1);
}

.footer-logo-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-logo-brand .logo-text {
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.15em;
  font-weight: 800;
}

.footer-logo-brand .logo-tagline {
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: 'Fira Code', monospace;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.8;
  max-width: 300px;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--trans-fast);
}

.footer-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--glass-light);
}

.footer-col h5 {
  color: var(--text-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--trans-fast);
}

.footer-nav a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  padding: 1.8rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--trans-fast);
}

.footer-bottom-links a:hover { color: var(--primary); }

/* ─── Scroll Reveal Animation ────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1100px) {
  .floating-nav-container { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section-pad { padding: 70px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .mega-grid-4, .mega-grid-3, .mega-grid-5 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .mega-grid-4, .mega-grid-3, .mega-grid-5 { grid-template-columns: 1fr; }
  .inner-hero { padding: 140px 0 70px; }
}
