@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

html {
  font-size: 14px;
  overflow-x: clip;
  width: 100%;
}

body {
  overflow-x: clip;
  width: 100%;
}

:root {
  /* Edimart Brand Colors - Adapted for Dark Theme */
  --brand-teal: #0D808C;
  --brand-teal-light: #52c0cc;
  --brand-gold: #E7CE67;

  /* Override Bootstrap Body Background for Mask Transparency */
  --bs-body-bg: white;

  /* Deep Backgrounds (Matching Acolad's dark blue vibe but with Edimart Teal) */
  --bg-dark-1: white;
  --bg-dark-2: #003845;
  --bg-card: #004654;

  /* Gradients */
  --gradient-hero: linear-gradient(180deg, #005365 0%, #002b36 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Functional Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-accent: #E7CE67;

  /* ===== DESIGN SYSTEM: SPACING SCALE ===== */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  --spacing-2xl: 80px;
  --spacing-3xl: 120px;

  /* ===== DESIGN SYSTEM: TYPOGRAPHY SCALE ===== */
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-md: 1.125rem;
  /* 18px */
  --font-size-lg: 1.25rem;
  /* 20px */
  --font-size-xl: 1.5rem;
  /* 24px */
  --font-size-2xl: 2rem;
  /* 32px */
  --font-size-3xl: 2.5rem;
  /* 40px */
  --font-size-4xl: 3.5rem;
  /* 56px */

  /* ===== DESIGN SYSTEM: SHADOWS ===== */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.3);
  --shadow-glow-teal: 0 0 30px rgba(13, 128, 140, 0.4);

  /* ===== DESIGN SYSTEM: TRANSITIONS ===== */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  --radius-default: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container-width: 1280px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* STRICY NO BLUE RULE - Override Bootstrap Defaults */
a {
  color: var(--brand-teal-light);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--brand-gold);
}

.btn-primary {
  background-color: var(--brand-teal);
  border-color: var(--brand-teal);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #005f6b !important;
  /* Darker Teal */
  border-color: #005f6b !important;
}

/* Custom Standard Components */
.btn-primary-gradient {
  background: linear-gradient(135deg, var(--brand-teal) 0%, #005365 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
  transition: var(--transition-base);
  box-shadow: 0 4px 15px rgba(13, 128, 140, 0.3);
  display: inline-block;
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 128, 140, 0.5);
  color: white;
  text-decoration: none;
}

.btn-secondary-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50px;
  padding: 10px 30px;
  font-weight: 600;
  transition: var(--transition-base);
  display: inline-block;
}

.btn-secondary-outline:hover {
  border-color: var(--brand-teal);
  color: var(--brand-teal-light);
  background: rgba(13, 128, 140, 0.1);
  text-decoration: none;
}

/* Gold Gradient Button (Technology Section) */
.btn-gold-gradient {
  background: linear-gradient(135deg, var(--brand-gold) -11%, #B8860B 100%);
  color: #002b36;
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 700;
  transition: var(--transition-base);
  box-shadow: 0 4px 15px rgba(231, 206, 103, 0.4);
  display: inline-block;
  text-decoration: none;
}

.btn-gold-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 206, 103, 0.6);
  color: #002b36;
  text-decoration: none;
}

/* Light Mode Secondary (for white backgrounds) */
.bg-light-alt .btn-secondary-outline {
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

.bg-light-alt .btn-secondary-outline:hover {
  background: var(--brand-teal);
  color: white;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
}

/* Regular Text Links (Pill Style) */
.nav-link:not(.nav-icon-only) {
  padding: 8px 16px !important;
  border-radius: var(--radius-default);
  position: relative;
  /* Ensure z-index works */
  z-index: 1002;
  /* Sit above navbar background */
}

/* Accessibility Focus Overrides (No Blue) */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  /* Replace #258cfb with Brand Teal */
  box-shadow: 0 0 0 0.1rem var(--bg-dark-1), 0 0 0 0.25rem var(--brand-teal);
  border-color: var(--brand-teal);
}

/* Remove Teal Focus Ring for Navbar Links (User Request: "Only Gold") */
/* The Gold Underline (::after) serves as the focus indicator here. */
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link:focus-visible,
.navbar-nav .nav-link.show {
  box-shadow: none !important;
  border-color: transparent !important;
  outline: none !important;
  color: var(--brand-teal) !important;
  /* Ensure text stays teal, not default active blue */
}

/* NUCLEAR OPTION: ID-Specific Overrides to kill the teal focus ring */
#solutionsDropdown:focus,
#solutionsDropdown:active,
#solutionsDropdown.show,
#industriesDropdown:focus,
#industriesDropdown:active,
#industriesDropdown.show,
#langDropdown:focus,
#langDropdown:active,
#langDropdown.show {
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
  border-color: transparent !important;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: var(--bg-dark-1);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

/* --- NAVBAR TRANSITIONS --- */
.navbar {
  background: white !important;
  width: 100%;
  z-index: 1000;
  padding: 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Remove Transparent State Logic (Enforce White) */
.navbar-transparent {
  background-color: white !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

.nav-link {
  color: var(--brand-teal) !important;
  position: relative;
  padding-bottom: 24px;
  border-bottom: none !important;
  /* Fixes Teal "underline" (border) overriding Pseudo-element */
  text-decoration: none !important;
  /* Ensure no default underline */
}

/* Ensure Logo Always Visible */
.navbar-brand-logo {
  height: 90px;
  margin-bottom: 0;
  /* REMOVED -30px to stop hover/overhang effect */
  display: block !important;
  position: relative;
  z-index: 1001;
  box-shadow: none;
}

.site-search-nav-item {
  position: relative;
  min-width: 0;
}

.site-search-form {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal) !important;
  z-index: 2;
}

.site-search-icon {
  font-size: 0.95rem;
}

.site-search-form .site-search-icon {
  color: var(--brand-teal);
}

.site-search-input {
  width: 0;
  min-width: 0;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(13, 128, 140, 0.18);
  border-radius: 999px;
  background: transparent;
  color: var(--brand-teal);
  opacity: 0;
  pointer-events: none;
  transition: width var(--transition-base), padding var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.site-search-input::placeholder {
  color: rgba(0, 83, 101, 0.55);
}

.site-search-form.is-open .site-search-input {
  width: min(26vw, 280px);
  min-width: 160px;
  padding: 0 42px 0 16px;
  background: rgba(255, 255, 255, 0.96);
  opacity: 1;
  pointer-events: auto;
}

.site-search-input:focus {
  width: min(36vw, 420px);
  outline: none;
  border-color: rgba(13, 128, 140, 0.45);
  box-shadow: 0 0 0 4px rgba(13, 128, 140, 0.08);
}

.site-search-clear {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(0, 83, 101, 0.7);
  padding: 0;
  z-index: 2;
}

.site-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(46vw, 560px);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  background: rgba(8, 17, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  padding: 18px;
  z-index: 1200;
}

.site-search-result-item {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: white;
}

.site-search-result-item:hover {
  background: rgba(13, 128, 140, 0.12);
  border-color: rgba(13, 128, 140, 0.2);
  color: white;
}

.site-search-result-url {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.site-search-result-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.site-search-result-snippet {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

/* Gold Underline Logic */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 20px;
  right: 100%;
  height: 3px;
  background: var(--brand-gold) !important;
  transition: right 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link.show::after {
  right: 20px;
  opacity: 1;
}

/* Hide White Text Logo (Obsolete) */
.logo-white-text {
  display: none !important;
}

/* --- MOBILE SPECIFIC FIXES --- */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    width: fit-content;
  }

  /* Ensure Icon Logo is HIDDEN on mobile if we want the Text Logo */
  /* The HTML has d-lg-block for the icon, so it hides automatically on mobile. */
  /* We just need to ensure mobile logo SHOWS. */

  .navbar-brand-logo {
    display: none !important;
    /* Hide the big desktop icon on mobile */
  }

  .navbar-brand-logo-mobile {
    display: block !important;
    height: 30px;
    width: auto;
  }

  .site-search-form.is-open .site-search-input {
    width: 132px;
    min-width: 132px;
  }

  .site-search-input:focus,
  .site-search-form.is-open .site-search-input:focus {
    width: 180px;
  }

  .site-search-results {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 76px;
    width: auto;
    max-height: 60vh;
  }

  /* Filter to turn White into Brand Teal (#0D808C) */
  .menu-logo-filter {
    filter: brightness(0) saturate(100%) invert(36%) sepia(35%) saturate(996%) hue-rotate(142deg) brightness(94%) contrast(90%);
  }

}

@media (max-width: 991px) {

  /* 1. Mobile Mega Menu Scrolling Fix */
  .mega-menu {
    max-height: 60vh;
    overflow-y: auto;
    /* Ensure it behaves nicely in flow */
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    /* REMOVED display: block; - Let Bootstrap handle toggle via .show */
  }

  /* Fix sticky/fixed position overlapping if any */
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
  }

  /* 2. Right-aligned Chevron for Submenus (Exclude Icons like Globe) */
  .navbar-nav .nav-item.dropdown>.nav-link:not(.nav-icon-only) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Hide default Bootstrap Caret for Text Links Only */
  .navbar-nav .nav-item.dropdown>.nav-link:not(.nav-icon-only)::after {
    display: none;
  }

  /* Custom Chevron using Border (No Font Dependency) only for text links */
  .navbar-nav .nav-item.dropdown>.nav-link:not(.nav-icon-only)::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--brand-teal);
    /* Use brand color */
    border-bottom: 2px solid var(--brand-teal);
    transform: rotate(45deg);
    /* Point Down */
    margin-left: auto;
    /* Push to right */
    transition: transform 0.2s ease;
    order: 2;
    /* Ensure it's visually at the end if flex direction weirdness */
  }

  /* Optional: Rotate when expanded */
  .navbar-nav .nav-item.dropdown>.nav-link:not(.nav-icon-only)[aria-expanded="true"]::before {
    transform: rotate(225deg);
    /* Point Up */
  }
}

/* --- GLOBAL COMPONENTS (Refactored) --- */

/* Typography - Moved from homepage.css for global consistency */
.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 30px;
  color: white;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 40px;
  /* Removed auto margins to allow left-align in PromptLoc */
}

/* Global Highlight / Underline - Moved from homepage.css */
.hero-highlight-text {
  color: inherit;
  display: inline;
  font-weight: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--brand-gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}

/* Disabled absolute-positioned underline because it breaks on wrap */
.hero-highlight-text::after {
  display: none;
}

/* Global Teal Gradient Text - Restore for Bento Title */
.text-gradient-teal {
  background: linear-gradient(90deg, var(--brand-teal), #4ecdc4, var(--brand-teal)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}

/* Global Gold Gradient Button - Standardized from Homepage */
/* Global Gold Gradient Button - Standardized from Homepage */
.btn-gold-gradient {
  background: linear-gradient(135deg, #e7ce67 0%, #b38728 100%);
  color: var(--brand-teal);
  border: none;
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 700;
  transition: var(--transition-base);
  box-shadow: 0 4px 15px rgba(231, 206, 103, 0.3);
  display: inline-block;
}

.btn-gold-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 206, 103, 0.5);
  color: #002b36;
}

/* Glass Badges */
.badge-glass-teal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 128, 140, 0.1);
  border: 1px solid rgba(13, 128, 140, 0.3);
  color: var(--brand-teal);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

}

/* Global Gold Pill - Moved from translation.css (.hero-pill-badge) */
.badge-pill-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(231, 206, 103, 0.15);
  border: 1px solid rgba(231, 206, 103, 0.3);
  color: var(--brand-gold);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Gold Outline Button - Moved from homepage.css for global consistency */
.btn-gold-outline {
  background: transparent;
  border: 2px solid var(--brand-gold);
  color: var(--brand-gold);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  /* Ensure no underline */
}

.btn-gold-outline:hover {
  background: var(--brand-gold);
  color: var(--brand-teal);
  box-shadow: 0 0 15px rgba(231, 206, 103, 0.4);
}

.badge-glass-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(231, 206, 103, 0.15);
  border: 1px solid rgba(231, 206, 103, 0.3);
  color: var(--brand-gold);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Ghost Buttons */
.btn-ghost {
  background: transparent;
  border: 2px solid transparent;
  /* Reserve space or just transparent */
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition-base);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
}

/* Specific ghost for LSP link */
.btn-ghost-bordered {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost-bordered:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transform: translateY(-2px);
}

/* --- GLOBAL UPLOAD CARD (Moved from translation.css) --- */
.mock-upload-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 500px;
  /* Default max-width, can be overridden */
}

/* Ensure children are styled globally too */
.mock-upload-card .upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 30px 20px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.mock-upload-card .upload-area:hover {
  border-color: var(--brand-gold);
  background: rgba(255, 255, 255, 0.1);
}

.mock-upload-card .upload-icon {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 15px;
  display: block;
}

.mock-upload-card .upload-text {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.mock-upload-card .upload-subtext {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.mock-upload-card .mock-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
}

.mock-upload-card .mock-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.95rem;
  width: 100%;
}

.mock-upload-card .mock-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.mock-upload-card .mock-input:focus {
  border-color: var(--brand-gold);
  background: rgba(0, 0, 0, 0.3);
  outline: none;
  box-shadow: none;
}
