/* ==========================================================================
   SurajExpo Enterprise UX Design System
   ========================================================================== */

:root {
  /* Color Palette */
  --color-primary-navy: #0B1120;
  --color-primary-slate: #1E293B;
  --color-accent-blue: #2563EB;
  --color-accent-light: #3B82F6;
  --color-text-main: #334155;
  --color-text-muted: #64748B;
  --color-text-light: #F8FAFC;
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F1F5F9;
  --color-bg-dark: #0F172A;

  /* Typography */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* 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-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
body {
  font-family: var(--font-family-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.5;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--color-primary-navy);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 18px;
}

.fw-medium {
  font-weight: 500;
}

/* Typography Utilities */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg, var(--color-accent-blue), #0ea5e9);
}

/* Layout Core */
.enterprise-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 12px;
}

.section-desc {
  margin-bottom: 32px;
}

/* UI Components: Buttons */
.btn-enterprise {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent-blue);
  color: var(--color-text-light);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-text-light);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary-navy);
  border: 1px solid var(--color-text-muted);
}

.btn-outline:hover {
  border-color: var(--color-primary-navy);
  background-color: var(--color-bg-light);
  color: var(--color-primary-navy);
}

/* UI Components: Cards */
.enterprise-card {
  background: var(--color-bg-white);
  border-radius: 10px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
}

.enterprise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-light);
}

.icon-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.icon-title-group h3 {
  margin-bottom: 0;
}

.card-icon {
  font-size: 24px;
  color: var(--color-accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Portfolio & Case Studies */
.portfolio-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: var(--color-bg-light);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech-badge {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  border-radius: 100px;
  border: 1px solid #e2e8f0;
}

/* Navigation (Sticky/Glassmorphism) */
.enterprise-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-normal);
}

.enterprise-nav.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
}

/* Hero Section Base */
.hero-wrapper {
  padding: 8rem 0 6rem;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.hero-wrapper h1,
.hero-wrapper h2,
.hero-wrapper p {
  color: var(--color-text-light);
}

/* Utilities */
.dark-bg {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.dark-bg h2,
.dark-bg h3 {
  color: var(--color-text-light);
}

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

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-6 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

/* Grid System (Minimal CSS Grid) */
.grid-system {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Hover Dropdown Menu fix for Enterprise Nav */
@media (min-width: 768px) {
  .enterprise-dropdown:hover>.dropdown-menu {
    display: block !important;
    margin-top: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  .card-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }

  .grid-system {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
}