/* ============================================
   AMAX DIGITAL - MAIN STYLESHEET
   Modern, Professional Design System
   ============================================ */

/* ============================================
   CSS VARIABLES - DESIGN SYSTEM
   ============================================ */
:root {
  /* Primary Colors - White, Black, Cyan */
  --primary-white: #ffffff;
  --primary-black: #000000;
  --primary-cyan: #85F2F2;
  --primary-cyan-dark: #6DD9D9;
  --primary-cyan-light: #A8F5F5;

  /* Dark Shades */
  --primary-dark: #0a0a0a;
  --primary-gray: #1a1a1a;

  /* Accent Colors */
  --accent-light: #f5f5f5;
  --accent-gray: #6b6b6b;
  --accent-dark: #2d2d2d;

  /* Neutral Colors - Grayscale */
  --neutral-900: #ffffff;
  --neutral-800: #f0f0f0;
  --neutral-700: #d4d4d4;
  --neutral-600: #a3a3a3;
  --neutral-500: #737373;
  --neutral-400: #525252;
  --neutral-300: #404040;
  --neutral-200: #262626;
  --neutral-100: #171717;
  --white: #ffffff;
  --black: #000000;

  /* Semantic Colors */
  --success: #85F2F2;
  --warning: #d4d4d4;
  --error: #a3a3a3;
  --info: #85F2F2;

  /* Typography */
  --font-primary: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-heading: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Font Sizes - Fluid Typography */
  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.625vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-2xl: clamp(2rem, 1.6rem + 2vw, 3rem);
  --fs-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --fs-4xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);

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

  /* Spacing System - 8px base */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 6rem;    /* 96px */
  --space-4xl: 8rem;    /* 128px */

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--neutral-700);
  background-color: var(--primary-black);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p {
  margin-bottom: var(--space-md);
  color: var(--neutral-600);
}

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

a:hover {
  color: var(--neutral-700);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style-position: inside;
  margin-bottom: var(--space-md);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-lg {
  padding: var(--space-4xl) 0;
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--white); }
.text-dark { color: var(--black); }
.text-light { color: var(--neutral-500); }
.text-white { color: var(--white); }

/* Background Colors */
.bg-primary {
  background-color: var(--neutral-100);
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
}
.bg-dark { background-color: var(--black); }
.bg-light {
  background-color: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.bg-white { background-color: var(--neutral-100); }

/* Display Utilities */
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }

/* Flexbox Utilities */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

/* Spacing Utilities */
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.m-0 { margin: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  
  padding: 0.875rem 2rem;
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--white);
  color: var(--black);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  border: 2px solid var(--white);
}

.btn-primary:hover {
  background-color: var(--black);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  border-color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--black);
}

.btn-white {
  background-color: var(--white);
  color: var(--black);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-white:hover {
  background-color: var(--neutral-700);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  color: var(--black);
}

.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: var(--fs-lg);
}

.btn-small {
  padding: 0.625rem 1.5rem;
  font-size: var(--fs-sm);
}

/* ============================================
   NAVIGATION - Modern Dark Header (Redesigned)
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 999;
  transition: all var(--transition-base);
  overflow: visible;
}

.navbar-container {
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  position: relative;
  overflow: visible;
}

.navbar-logo {
  font-size: var(--fs-lg);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 1001;
  position: relative;
}

.navbar-logo span {
  color: var(--neutral-500);
  font-weight: var(--fw-light);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar-menu li {
  margin: 0;
  padding: 0;
}

.navbar-link {
  font-weight: var(--fw-medium);
  color: var(--neutral-600);
  padding: 0.5rem 0.75rem;
  position: relative;
  transition: all var(--transition-fast);
  font-size: var(--fs-sm);
  letter-spacing: 0.5px;
  display: block;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: var(--white);
  transition: width var(--transition-base);
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--white);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 80%;
}

.navbar-cta {
  margin-left: var(--space-md);
}

.navbar-cta .btn {
  padding: 0.625rem 1.5rem;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.navbar-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Scrolled State */
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at top, #1a1a1a 0%, #000000 100%);
  overflow: hidden;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/hero/hero-tech-1.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  filter: grayscale(100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--white);
}

.hero-subtitle {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--neutral-600);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-title {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-description {
  font-size: var(--fs-lg);
  color: var(--neutral-600);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  border-color: var(--neutral-300);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(80%) brightness(0.7);
  transition: all var(--transition-base);
}

.card:hover .card-image {
  filter: grayscale(60%) brightness(0.8);
}

.card-body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.card-text {
  color: var(--neutral-600);
  margin-bottom: var(--space-md);
  flex: 1;
  line-height: 1.7;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--white), var(--neutral-700));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  color: var(--black);
  margin-bottom: var(--space-md);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   SECTIONS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-subtitle {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--fs-3xl);
  color: var(--white);
  margin-bottom: var(--space-md);
  letter-spacing: -0.5px;
}

.section-description {
  font-size: var(--fs-base);
  color: var(--neutral-600);
  line-height: 1.8;
}

/* ============================================
   STATS / NUMBERS SECTION
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-lg);
}

.stat-number {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  margin-bottom: var(--space-xs);
  letter-spacing: -1px;
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--primary-dark);
  color: var(--neutral-600);
  padding: var(--space-3xl) 0 var(--space-lg);
  border-top: 1px solid var(--neutral-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3 {
  color: var(--white);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
}

.footer-section p,
.footer-section li {
  color: var(--neutral-500);
  margin-bottom: var(--space-sm);
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--neutral-500);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-200);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--neutral-500);
}

.footer-logo {
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: var(--fw-medium);
  color: var(--neutral-700);
  margin-bottom: var(--space-xs);
  font-size: var(--fs-sm);
  letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: var(--fs-base);
  font-family: var(--font-primary);
  color: var(--white);
  background-color: var(--neutral-200);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--neutral-500);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--white);
  background-color: var(--neutral-100);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   DARK THEME ENHANCEMENTS
   ============================================ */

/* Subtle gradient overlays for sections */
.section {
  position: relative;
}

/* Add subtle texture to dark backgrounds */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content is above the texture */
.navbar,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

/* White glow effect for interactive elements */
.btn-primary:hover,
.card:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Scroll Animation Classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CUSTOM UPDATES - Logo, Colors, Hero with Lottie
   ============================================ */

/* Logo Image Styling */
.logo-img {
  height: 45px;
  width: auto;
  transition: transform var(--transition-base);
}

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

/* Update Primary Buttons with Cyan */
.btn-primary {
  background-color: var(--primary-cyan);
  color: var(--black);
  box-shadow: 0 0 20px rgba(133, 242, 242, 0.3);
  border: 2px solid var(--primary-cyan);
}

.btn-primary:hover {
  background-color: var(--primary-cyan-dark);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(133, 242, 242, 0.5);
  border-color: var(--primary-cyan);
}

/* Hero Container with Lottie */
.hero-container {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.hero-content {
  min-width: 600px;
  max-width: 800px;
}

.hero-animation {
  width: 100%;
  max-width: 500px;
  height: 500px;
  margin: 0 auto;
}

/* Update Card Icon to use Cyan accent */
.card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--primary-cyan);
}

/* Update stat accent color */
.stat-number {
  color: var(--primary-cyan) !important;
}

/* Update section subtitle */
.section-subtitle {
  color: var(--primary-cyan);
}

.hero-subtitle {
  color: var(--primary-cyan);
}

/* Update checkmark colors */
h4[style*="color: var(--primary-cyan)"] {
  color: var(--primary-cyan) !important;
}

/* Card Image Wrapper for Service Cards */
.card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.1);
}

/* Update grid layouts to be less compressed */
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-2xl);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-2xl);
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* Card Padding for better spacing */
.card {
  padding: var(--space-2xl);
}

.card-body {
  padding: var(--space-lg);
}
