/* Company Directory Dark Mode Styles */

/* Header styles from leadMagLand.css */
.inline-style-80297482 {
    width: 60%; 
    margin-top: 0px; 
    height: 32px; 
    width: auto;
}

/* Button styles */
.btn, 
.btn-sm{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  border-width: 1px;
  border-color: transparent;
  font-weight: 500;
  line-height: 1.375;
  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.btn{
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.btn-sm{
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

/* Hamburger button styles */
.hamburger svg>*:nth-child(1),
.hamburger svg>*:nth-child(2),
.hamburger svg>*:nth-child(3) {
  transform-origin: center;
  transform: rotate(0deg);
}

.hamburger svg>*:nth-child(1) {
  transition: y 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19), opacity 0.1s ease-in;
}

.hamburger svg>*:nth-child(2) {
  transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger svg>*:nth-child(3) {
  transition: y 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19), width 0.1s 0.25s ease-in;
}

.hamburger.active svg>*:nth-child(1) {
  opacity: 0;
  y: 11;
  transform: rotate(225deg);
  transition: y 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.1s 0.12s ease-out;
}

.hamburger.active svg>*:nth-child(2) {
  transform: rotate(225deg);
  transition: transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger.active svg>*:nth-child(3) {
  y: 11;
  transform: rotate(135deg);
  transition: y 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1), width 0.1s ease-out;
}

/* Navbar scrolled state - Dark Mode */
.navbar.scrolled {
  background-color: rgb(25 25 25);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Essential Tailwind utility classes for navbar - Dark Mode */
.fixed { position: fixed; }
.w-full { width: 100%; }
.z-30 { z-index: 30; }
.md\:bg-opacity-90 { background-color: rgba(25, 25, 25, 0.9); }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; }
.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.bg-white { background-color: rgb(25 25 25); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1); }

.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.h-16 { height: 4rem; }
.md\:h-20 { height: 5rem; }

.shrink-0 { flex-shrink: 0; }
.mr-4 { margin-right: 1rem; }

.hidden { display: none; }
.md\:flex { display: flex; }
.md\:grow { flex-grow: 1; }
.grow { flex-grow: 1; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.lg\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }

.font-medium { font-weight: 500; }
.ml-3 { margin-left: 0.75rem; }

.md\:hidden { display: none; }

.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }
.fill-current { fill: currentColor; }
.text-gray-900 { color: rgb(229 231 235); }

.absolute { position: absolute; }
.top-full { top: 100%; }
.h-screen { height: 100vh; }
.pb-16 { padding-bottom: 4rem; }
.z-20 { z-index: 20; }
.left-0 { left: 0; }
.w-full { width: 100%; }
.overflow-scroll { overflow: scroll; }
.bg-white { background-color: rgb(25 25 25); }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-gray-200 { border-color: rgb(64 64 64); }
.pl-4 { padding-left: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-medium { font-weight: 500; }
.justify-center { justify-content: center; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.-mr-1 { margin-right: -0.25rem; }
.shrink-0 { flex-shrink: 0; }

.text-gray-600 { color: rgb(229 231 235); }
.hover\:text-gray-900:hover { color: rgb(255 255 255); }

/* Override Tailwind reset for navbar lists */
.navbar ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.navbar li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure navbar links have no text decoration */
.navbar a {
  text-decoration: none !important;
}

.navbar a:hover {
  text-decoration: none !important;
}

/* Mobile menu specific overrides */
#mobile-nav ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#mobile-nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Pagination Controls */
.pagination-controls {
  margin-top: 2rem;
  text-align: center;
  padding: 2rem 0;
}

.pagination-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgb(43 43 43);
  color: rgb(229 231 235);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

.pagination-btn:hover {
  background-color: rgb(64 64 64);
  color: rgb(255 255 255);
  text-decoration: none;
}

.pagination-btn-prev {
  margin-right: 1rem;
}

.pagination-btn-next {
  margin-left: 1rem;
}

.pagination-info {
  color: rgb(229 231 235);
  font-weight: 500;
  margin: 0 1rem;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 0;
}

.no-results h2 {
  color: rgb(229 231 235);
  margin-bottom: 1rem;
}

.no-results p {
  color: rgb(156 163 175);
}

/* Clear Filters Button */
.clear-filters-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: rgb(64 64 64);
  color: rgb(229 231 235);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.875rem;
  margin-left: 1rem;
}

.clear-filters-btn:hover {
  background-color: rgb(96 96 96);
  color: rgb(255 255 255);
}

.clear-filters-btn i {
  margin-right: 0.5rem;
}
.text-gray-200 { color: rgb(229 231 235); }
.bg-gray-900 { background-color: rgb(43 43 43); }
.hover\:bg-gray-800:hover { background-color: rgb(64 64 64); }
.text-gray-400 { color: rgb(229 231 235); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #191919 0%, #2B2B2B 50%, #404040 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(43, 43, 43, 0.3);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.025em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: contrast(1.2) brightness(1.1);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
    position: relative;
}

.nav-links a:hover {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(43, 43, 43, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(64, 64, 64, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: contrast(1.2) brightness(1.1);
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 22px;
    color: #94a3b8;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Filters Section */
.filters-section {
    background: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 24px;
    margin: -40px auto 60px;
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(43, 43, 43, 0.2);
    border: 1px solid rgba(43, 43, 43, 0.3);
    position: relative;
    z-index: 2;
}

.filters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 43, 43, 0.1) 0%, rgba(64, 64, 64, 0.1) 100%);
    border-radius: 24px;
    pointer-events: none;
}

.filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.filter-select {
    padding: 16px 32px 16px 20px;
    border: 2px solid rgba(43, 43, 43, 0.3);
    border-radius: 12px;
    background: rgba(43, 43, 43, 0.8);
    color: #e2e8f0;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    backdrop-filter: blur(10px);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e2e8f0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.filter-select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Companies Grid */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.company-card {
    background: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(43, 43, 43, 0.2);
    border: 1px solid rgba(43, 43, 43, 0.3);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(43, 43, 43, 0.1) 0%, rgba(64, 64, 64, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.company-card:hover::before {
    opacity: 1;
}

.company-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.5);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.company-logo {
    width: 70px;
    height: 70px;
    min-width: 66px;
    min-height: 66px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2B2B2B 0%, #404040 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #60a5fa;
    border: 2px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.2);
    position: relative;
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    filter: none;
}

.company-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-card:hover .company-logo::before {
    opacity: 1;
}

.company-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    filter: contrast(1.1);
}

.company-description {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat-badge {
    padding: 8px 16px;
    background: rgba(43, 43, 43, 0.8);
    color: #60a5fa;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(96, 165, 250, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-badge:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
    border-top: 1px solid rgba(43, 43, 43, 0.3);
}

.footer p {
    color: #64748b;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .search-section {
        padding: 30px;
        margin: -20px auto 40px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .filters {
        justify-content: flex-start;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .company-card {
        padding: 24px;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo {
        font-size: 24px;
    }
}

/* Glow effects */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(96, 165, 250, 0.3); }
    50% { box-shadow: 0 0 40px rgba(96, 165, 250, 0.6); }
}

.company-card:hover .company-logo {
    animation: glow 2s ease-in-out infinite;
}