/* ==========================================================================
   DataMinds Stylesheet - Custom Design System
   ========================================================================== */

/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --primary: #F6A200;
  --primary-dark: #F25400;
  --secondary: #FFC000;
  --primary-light: #FBAE40;
  
  --text: #3B3B3B;
  --text-dark: #000000;
  --text-light: #FFFFFF;
  --text-muted: #7A7A7A;
  
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --bg-card: #FFFFFF;
  
  --border: #EAEAEA;
  --border-focus: #FBAE40;
  
  /* Fonts */
  --font-headers: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1200px;
  --border-radius: 12px;
  --transition-speed: 0.3s;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 40px rgba(246, 162, 0, 0.12);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   Multilingual Display Logic
   ========================================================================== */
body.lang-en [data-lang]:not([data-lang="en"]) { display: none !important; }
body.lang-ru [data-lang]:not([data-lang="ru"]) { display: none !important; }
body.lang-kk [data-lang]:not([data-lang="kk"]) { display: none !important; }

/* Display blocks that should be block elements */
body.lang-en div[data-lang="en"], body.lang-en section[data-lang="en"] { display: block !important; }
body.lang-ru div[data-lang="ru"], body.lang-ru section[data-lang="ru"] { display: block !important; }
body.lang-kk div[data-lang="kk"], body.lang-kk section[data-lang="kk"] { display: block !important; }

/* Flex compatibility */
body.lang-en div.flex[data-lang="en"], body.lang-en section.flex[data-lang="en"] { display: flex !important; }
body.lang-ru div.flex[data-lang="ru"], body.lang-ru section.flex[data-lang="ru"] { display: flex !important; }
body.lang-kk div.flex[data-lang="kk"], body.lang-kk section.flex[data-lang="kk"] { display: flex !important; }

/* Grid compatibility */
body.lang-en div.grid[data-lang="en"], body.lang-en section.grid[data-lang="en"] { display: grid !important; }
body.lang-ru div.grid[data-lang="ru"], body.lang-ru section.grid[data-lang="ru"] { display: grid !important; }
body.lang-kk div.grid[data-lang="kk"], body.lang-kk section.grid[data-lang="kk"] { display: grid !important; }

/* Inline components */
body.lang-en span[data-lang="en"], body.lang-en strong[data-lang="en"] { display: inline !important; }
body.lang-ru span[data-lang="ru"], body.lang-ru strong[data-lang="ru"] { display: inline !important; }
body.lang-kk span[data-lang="kk"], body.lang-kk strong[data-lang="kk"] { display: inline !important; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-alt {
  background-color: var(--bg-alt);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-family: var(--font-headers);
  font-size: 0.95rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(246, 162, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(242, 84, 0, 0.4);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--bg);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* List with circles/thin outline icons */
.icon-list {
  list-style: none;
}

.icon-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.icon-list-circle {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-list-circle svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  stroke-width: 2px;
  fill: none;
}

/* Decorative Low-Poly SVG background */
.lowpoly-corner {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 450px;
  height: 350px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  transition: opacity var(--transition-speed) ease;
}

/* ==========================================================================
   Header and Navigation
   ========================================================================== */
.topbar {
  background-color: var(--text-dark);
  color: var(--bg-alt);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-info {
  display: flex;
  gap: 1.5rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary);
  fill: none;
}

.lang-selector {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: none;
  border: none;
  color: #AAAAAA;
  cursor: pointer;
  font-weight: 600;
  transition: color var(--transition-speed);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.lang-btn.active, .lang-btn:hover {
  color: var(--primary);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-speed) ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.logo img {
  height: 52px;
  width: auto;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.5rem 0;
  position: relative;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

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

/* Solutions Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background-color: var(--bg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  width: 250px;
  padding: 0.75rem 0;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-speed) ease;
  border-top: 3px solid var(--primary);
  z-index: 1100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text);
  transition: all var(--transition-speed);
}

.dropdown-item:hover {
  background-color: var(--bg-alt);
  color: var(--primary);
  padding-left: 1.75rem;
}

.header-cta {
  display: block;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1200;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  position: absolute;
  left: 0;
  transition: all var(--transition-speed) ease;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { top: 18px; }

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

/* ==========================================================================
   Page Layout & Routing
   ========================================================================== */
.view-container {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2;
  position: relative;
}

.view-container.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   1. Home Page Section
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--bg);
  padding: 120px 0 160px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-tagline {
  font-family: var(--font-headers);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
}

/* Metrics Card in Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.metric-circle-box {
  position: relative;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  backdrop-filter: blur(15px);
  border-radius: 50%;
  border: 1px solid rgba(246, 162, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  animation: float 6s ease-in-out infinite;
}

.metric-number {
  font-family: var(--font-headers);
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-family: var(--font-headers);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 1px;
  max-width: 220px;
  margin-top: 10px;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* ==========================================================================
   Grid & Card Layouts
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background-color: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(246, 162, 0, 0.3);
}

.card-num {
  font-family: var(--font-headers);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(246, 162, 0, 0.15);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  line-height: 1;
  transition: color var(--transition-speed) ease;
}

.card:hover .card-num {
  color: var(--primary);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2px;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   2. SAP Page Styles (Slide 5 Process)
   ========================================================================== */
.sap-hero {
  background: linear-gradient(135deg, #0A1128 0%, #102A43 100%);
  color: var(--text-light);
  padding: 100px 0;
  position: relative;
}

.sap-hero .section-title {
  color: var(--primary);
}

.sap-hero .section-subtitle {
  color: #CCCCCC;
}

/* Circular Interactive Layout */
.sap-interactive-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

.sap-diagram-wrapper {
  position: relative;
  width: 480px;
  height: 480px;
  margin: 0 auto;
}

/* Orbital Circle */
.sap-orbit-circle {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  border: 2px dashed rgba(246, 162, 0, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.sap-center-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headers);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-light);
  box-shadow: 0 0 40px rgba(246, 162, 0, 0.5);
  z-index: 10;
  border: 4px solid var(--bg);
}

/* Outer Module Group Nodes */
.sap-node {
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow);
  padding: 10px;
}

.sap-node:hover, .sap-node.active {
  border-color: var(--primary);
  box-shadow: 0 0 25px rgba(246, 162, 0, 0.3);
  transform: translate(-50%, -50%) scale(1.15) !important;
}

.sap-node.active {
  background-color: var(--primary);
  color: var(--text-light) !important;
}

.sap-node.active .sap-node-icon svg {
  stroke: var(--text-light);
}

.sap-node-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2px;
  margin-bottom: 4px;
}

.sap-node-label {
  font-family: var(--font-headers);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

/* Absolute coordinates matching orbital path */
.sap-node-1 { top: 8%; left: 50%; transform: translate(-50%, -50%); } /* Top */
.sap-node-2 { top: 29%; left: 86%; transform: translate(-50%, -50%); } /* Top Right */
.sap-node-3 { top: 71%; left: 86%; transform: translate(-50%, -50%); } /* Bottom Right */
.sap-node-4 { top: 92%; left: 50%; transform: translate(-50%, -50%); } /* Bottom */
.sap-node-5 { top: 71%; left: 14%; transform: translate(-50%, -50%); } /* Bottom Left */
.sap-node-6 { top: 29%; left: 14%; transform: translate(-50%, -50%); } /* Top Left */

/* Details Panel Card */
.sap-details-card {
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 380px;
  transition: all var(--transition-speed) ease;
}

.sap-details-title {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
}

.sap-details-modules {
  list-style: none;
}

.sap-details-modules li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.sap-details-modules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.sap-details-modules strong {
  color: var(--text-dark);
}

/* ==========================================================================
   3. ECM Pages (OpenText & Directum)
   ========================================================================== */
.feature-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-img-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   4. Custom Dev & Cooperation Models
   ========================================================================== */
.dev-process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.process-step {
  position: relative;
  text-align: center;
  background-color: var(--bg-card);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.process-arrow {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-arrow svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.process-step-num {
  font-family: var(--font-headers);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.process-step-title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.process-step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Models Grid */
.models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.model-card {
  border-top: 4px solid var(--primary);
}

/* ==========================================================================
   5. Contacts Page
   ========================================================================== */
.contacts-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info-list {
  list-style: none;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2px;
}

.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-info-text p {
  color: var(--text-muted);
}

/* Feedback Form styling */
.feedback-form {
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-family: var(--font-headers);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg-alt);
  transition: all var(--transition-speed);
  color: var(--text-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: var(--bg);
  box-shadow: 0 0 10px rgba(246, 162, 0, 0.1);
}

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

/* Map placeholder */
.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Toast Messages */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--text-dark);
  color: var(--bg);
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--primary);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #101010;
  color: #BBBBBB;
  padding: 80px 0 30px 0;
  border-top: 3px solid var(--primary);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  color: var(--text-light);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-links-title {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

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

.partner-logos-title {
  color: var(--text-light);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.partner-logos-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.partner-logos-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.partner-logo-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 110px;
  transition: all var(--transition-speed);
}

.partner-logo-item svg {
  max-width: 100%;
  max-height: 28px;
  fill: #888888;
  transition: fill var(--transition-speed);
}

.partner-logo-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
}

.partner-logo-item:hover svg {
  fill: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   Media Queries & Responsive Styling
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .sap-interactive-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .dev-process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .process-step:nth-child(3) .process-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Navigation mobile menu */
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    box-shadow: none;
    border-top: none;
    background-color: var(--bg-alt);
    margin-top: 0.5rem;
    text-align: center;
  }
  
  .header-cta {
    display: none;
  }
  
  /* Layout shifts */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-desc {
    margin: 0 auto 2rem auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 2rem;
  }
  
  .feature-list-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .feature-list-grid .feature-img-wrapper {
    order: -1;
  }
  
  .dev-process-grid {
    grid-template-columns: 1fr;
  }
  
  .process-arrow {
    display: none !important;
  }
  
  .models-grid {
    grid-template-columns: 1fr;
  }
  
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .feedback-form {
    padding: 2rem 1.5rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  /* Mobile layout for SAP Modules diagram (switches from circular orbital diagram to nice interactive tab cards) */
  .sap-diagram-wrapper {
    display: none; /* Hide orbital layout on mobile */
  }
  
  .sap-mobile-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
  }
  
  .sap-mobile-tab-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    font-family: var(--font-headers);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed);
  }
  
  .sap-mobile-tab-btn.active {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
  }
}

/* Default state for SAP Mobile Tabs */
.sap-mobile-tabs {
  display: none;
}
