html {
  scroll-behavior: smooth;
}

/* Base Design Tokens & Reset */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Colors - Premium Navy Blue & White Palette */
  --primary-color: #0a2540;
  --primary-hover: #001326;
  --primary-light: #e6edf8;
  --bg-body: #030d1a;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);

  /* Spacing & Borders */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Navbar with Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}


.nav-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.nav-btn:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15);
  transform: translateY(-1px);
}

.nav-btn i {
  width: 16px;
  height: 16px;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 380px;
  margin-top: 80px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding: 0 24px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-title .highlight {
  color: var(--primary-color);
  background: linear-gradient(to right, #1d4ed8, #0a2540);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #f1f5f9;
  font-weight: 500;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Main Content Container */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* Controls Bar: Search & Stats */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.partner-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 480px;
  min-width: 280px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.search-box input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.search-box input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.1);
}

.search-box input:focus + .search-icon {
  color: var(--primary-color);
}

.stats-pill {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* Grid Layout */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Startup Card with Scroll-Reveal Base State */
.startup-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  height: 310px;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  min-width: 0; /* Prevents overflow from nowrap text inside CSS grid */
  
  /* Animation Base States */
  opacity: 0;
  transform: translateY(24px);
  
  /* Smooth fluid transitions for hover & reveal */
  transition: 
    background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.startup-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.startup-card:hover {
  transform: translateY(-6px);
  background-color: #e0f2fe;
  border-color: #0ea5e9;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.15);
}

/* Card Header/Logo Container */
.logo-container {
  width: 100%;
  height: 180px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  transition: var(--transition-smooth);
  position: relative;
}

.startup-card:hover .logo-container {
  border-color: rgba(10, 37, 64, 0.1);
  background-color: #ffffff;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.02));
  transition: var(--transition-smooth);
}

.startup-card:hover .logo-container img {
  transform: scale(1.03);
}

/* Initials Fallback */
.fallback-logo {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
}

.fallback-initials {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.fallback-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.9;
}

/* Card Body */
.card-content {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  overflow: hidden;
}

.company-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.3;
}

.startup-card:hover .company-name {
  color: var(--primary-color);
}

.vertical-pill {
  align-self: center;
  background-color: var(--bg-body);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-top: 6px;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.startup-card:hover .vertical-pill {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-color: rgba(10, 37, 64, 0.1);
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  background-color: var(--bg-card);
  max-width: 500px;
  margin: 40px auto 0;
  transition: var(--transition-smooth);
}

.empty-icon-container {
  width: 64px;
  height: 64px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-color);
}

.empty-icon-container i {
  width: 32px;
  height: 32px;
}

.empty-state h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

/* Footer Styling */
.footer {
  background-color: #ffffff;
  color: var(--text-muted);
  padding: 64px 24px 32px;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand {
  max-width: 480px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 54px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 40px 0 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .navbar {
    height: 64px;
  }

  .nav-logo {
    height: 40px;
  }

  .nav-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .hero-section {
    height: 260px;
    margin-top: 64px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .main-container {
    padding: 24px 12px 48px;
  }

  .controls-bar {
    margin-bottom: 24px;
  }

  .partner-heading {
    font-size: 1.3rem;
  }

  /* 2 columns on mobile view */
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .startup-card {
    padding: 12px 8px;
    height: auto;
    min-height: 180px;
  }

  .logo-container {
    height: 100px;
    padding: 8px;
  }

  .company-name {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}
