/* ==========================================================================
   A.S ENGINEERING & SMART TECHNOLOGIES - CORE STYLES & DESIGN TOKENS
   Theme: High-Tech Industrial Engineering & Digital Cyber-Infrastructure
   ========================================================================== */

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

:root {
  /* Brand Primary Colors */
  --color-primary-dark: #07131D;        /* Deepest Midnight Industrial */
  --color-primary-steel: #0F2537;       /* Industrial Steel Blue */
  --color-primary-navy: #16324A;        /* Elevated Slate Navy */
  --color-primary-surface: #1E3F5C;     /* Subtle Surface Blue */
  
  /* Cyber Electric & High-Tech Cyan */
  --color-cyan-glow: #00E5FF;
  --color-cyan-bright: #00A8E8;         /* High-Tech Cyan */
  --color-cyan-deep: #007EA7;           /* Ocean Tech */
  --color-cyan-subtle: rgba(0, 168, 232, 0.12);
  --color-cyan-border: rgba(0, 168, 232, 0.28);
  
  /* Civil Engineering & Safety Accents */
  --color-amber-safety: #FF9900;        /* Safety/Civil Amber */
  --color-amber-glow: #FFB833;
  --color-amber-subtle: rgba(255, 153, 0, 0.14);
  --color-amber-border: rgba(255, 153, 0, 0.32);
  
  /* Neutral Palette */
  --color-text-main: #F1F5F9;           /* Pure Crisp Off-White */
  --color-text-muted: #94A3B8;          /* Modern Slate Gray */
  --color-text-dim: #64748B;
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-medium: rgba(255, 255, 255, 0.16);
  --color-glass-bg: rgba(15, 37, 55, 0.72);
  --color-glass-card: rgba(22, 50, 74, 0.58);
  --color-card-solid: #102436;
  
  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Dimensions & Spacing */
  --container-max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
  --shadow-cyan-glow: 0 0 25px rgba(0, 168, 232, 0.35);
  --shadow-amber-glow: 0 0 25px rgba(255, 153, 0, 0.35);
  
  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-primary-dark);
  color: var(--color-text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(0, 168, 232, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(255, 153, 0, 0.06) 0%, transparent 45%),
    linear-gradient(to bottom, #07131D 0%, #0B1C2B 50%, #07131D 100%);
  background-attachment: fixed;
}

/* Structural CAD Blueprint Grid Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  z-index: 0;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid var(--color-cyan-border);
  background: var(--color-cyan-subtle);
  color: var(--color-cyan-bright);
}

.section-label.amber {
  border-color: var(--color-amber-border);
  background: var(--color-amber-subtle);
  color: var(--color-amber-glow);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 18px;
  font-weight: 800;
}

.section-title .gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--color-cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title .gradient-amber {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--color-amber-safety) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 680px;
  line-height: 1.7;
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding-top: 110px;
  padding-bottom: 110px;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Primary Cyan / IT CTA */
.btn-cyan {
  background: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
  color: #FFFFFF;
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 168, 232, 0.3);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 168, 232, 0.5), 0 0 15px rgba(0, 229, 255, 0.4);
  color: #FFFFFF;
}

/* Primary Amber / Civil CTA */
.btn-amber {
  background: linear-gradient(135deg, #FF9900 0%, #E67300 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 179, 71, 0.5);
  box-shadow: 0 4px 20px rgba(255, 153, 0, 0.3);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 153, 0, 0.5), 0 0 15px rgba(255, 184, 51, 0.4);
  color: #FFFFFF;
}

/* Outline / Glass CTA */
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  border: 1px solid var(--color-border-medium);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  z-index: 1000;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(7, 19, 29, 0.92);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(0, 168, 232, 0.22);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

/* Brand Logo (Official 3D Metallic Badge) */
.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo-img {
  height: 52px;
  width: auto;
  max-width: 185px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 168, 232, 0.35));
  transition: transform var(--transition-fast);
}

.header-logo-img:hover {
  transform: scale(1.03);
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.25vw, 20px);
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: #CBD5E1;
  position: relative;
  padding: 8px 4px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-cyan-bright);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-tag {
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: var(--radius-sm);
  margin-left: 3px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: inline-block;
  vertical-align: middle;
}

.nav-tag.pk {
  background: var(--color-amber-subtle);
  color: var(--color-amber-safety);
  border: 1px solid var(--color-amber-border);
}

.nav-tag.global {
  background: var(--color-cyan-subtle);
  color: var(--color-cyan-bright);
  border: 1px solid var(--color-cyan-border);
}

/* Nav Action CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.mobile-toggle {
  display: none;
  background: transparent;
  padding: 8px;
  color: #FFFFFF;
  border-radius: var(--radius-sm);
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(10, 25, 38, 0.97);
  backdrop-filter: blur(20px);
  z-index: 1050;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.7);
  border-left: 1px solid var(--color-cyan-border);
  transition: right 0.35s ease-in-out;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.mobile-drawer-close {
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  padding: 6px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 37, 55, 0.85);
  border: 1px solid rgba(0, 168, 232, 0.35);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0, 168, 232, 0.15);
}

.hero-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan-bright);
  box-shadow: 0 0 10px var(--color-cyan-bright);
  animation: pulseGlow 2s infinite ease-in-out;
}

.hero-tag span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-cyan-bright);
  letter-spacing: 0.05em;
}

.hero-headline {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}

.hero-headline .text-white {
  color: #FFFFFF;
}

.hero-headline .highlight-physical {
  background: linear-gradient(135deg, #FFFFFF 20%, #FFA834 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline .highlight-digital {
  background: linear-gradient(135deg, #00E5FF 0%, #0088CC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 35px rgba(0, 229, 255, 0.3);
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 45px;
}

/* Live KPI Ticker */
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border-subtle);
}

.kpi-item {
  display: flex;
  flex-direction: column;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.kpi-value.cyan {
  color: var(--color-cyan-bright);
}

.kpi-value.amber {
  color: var(--color-amber-safety);
}

.kpi-label {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Hero Visual Composite Card */
.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 168, 232, 0.3);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--shadow-cyan-glow);
  background: var(--color-card-solid);
}

.hero-visual-card img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.hero-visual-card:hover img {
  transform: scale(1.02);
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 19, 29, 0.92) 0%, rgba(7, 19, 29, 0.2) 60%, transparent 100%);
  pointer-events: none;
}

/* Floating Badges on Hero Visual */
.hero-badge-floating {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 37, 55, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.hero-badge-floating.top-right {
  top: 20px;
  right: 20px;
  border-color: var(--color-cyan-border);
}

.hero-badge-floating.bottom-left {
  bottom: 20px;
  left: 20px;
  border-color: var(--color-amber-border);
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon.cyan {
  background: var(--color-cyan-subtle);
  color: var(--color-cyan-bright);
  border: 1px solid var(--color-cyan-border);
}

.badge-icon.amber {
  background: var(--color-amber-subtle);
  color: var(--color-amber-safety);
  border: 1px solid var(--color-amber-border);
}

.badge-info h5 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.badge-info p {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

@keyframes floatAnim {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.float-slow {
  animation: floatAnim 4s ease-in-out infinite;
}

.float-delay {
  animation: floatAnim 4.5s ease-in-out infinite 1.5s;
}

/* ==========================================================================
   RESPONSIVE BASE BREAKPOINTS & MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 1140px) {
  .nav-menu, .header-actions {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .site-header {
    height: 72px;
  }

  .header-container {
    padding: 0 16px;
  }

  .header-logo-img {
    height: 44px;
    max-width: 155px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-padding {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-desc {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 50px;
    min-height: auto;
  }

  .hero-tag {
    margin-bottom: 16px;
    padding: 5px 12px;
  }

  .hero-tag span {
    font-size: 0.72rem;
  }

  .hero-headline {
    font-size: clamp(1.85rem, 6.5vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-subheadline {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 32px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .hero-visual-card img {
    height: 280px;
  }

  .hero-badge-floating {
    padding: 8px 12px;
    gap: 8px;
  }

  .hero-badge-floating .badge-icon {
    width: 28px;
    height: 28px;
  }

  .hero-badge-floating .badge-info h5 {
    font-size: 0.76rem;
  }

  .hero-badge-floating .badge-info p {
    font-size: 0.65rem;
  }

  .hero-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding-top: 20px;
  }

  .kpi-value {
    font-size: 1.35rem;
  }

  .kpi-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .header-logo-img {
    height: 40px;
    max-width: 140px;
  }

  .hero-headline {
    font-size: 1.8rem;
  }

  .hero-visual-card img {
    height: 240px;
  }

  .hero-badge-floating.top-right {
    top: 10px;
    right: 10px;
  }

  .hero-badge-floating.bottom-left {
    bottom: 10px;
    left: 10px;
  }
}
