/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

/* --- Lenis Recommended CSS --- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- COMPLETELY HIDE SCROLLBAR --- */
::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
  background: transparent;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  width: 100%;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.loaded {
  overflow-y: visible;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  all: unset;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 1.2s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 1.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navbar Container --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
  transition: height 0.3s ease;
}

/* --- Logo --- */
.logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 900;
  font-size: 24px;
  color: #3d4094;
  letter-spacing: -1px;
}

.logo-img {
  width: 6rem;
  margin-top: 8px;
}

/* --- Desktop Menu --- */
.desktop-menu {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: #4b5563;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #3d4094;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover,
.dropdown-trigger:hover {
  color: #3d4094;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  color: #4b5563;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  white-space: nowrap;
  gap: 4px;
}

.caret-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
}

/* --- Desktop Dropdown --- */
.dropdown-parent {
  position: relative;
  padding: 10px 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0px;
  background-color: white;
  border-radius: 12px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  min-width: 180px;
  z-index: 100;
}

.dropdown-menu.right-align {
  left: auto;
  right: 0;
}

.dropdown-menu.wide {
  width: 288px;
}

.dropdown-menu.medium {
  width: 240px;
}

.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-parent:hover .caret-icon {
  transform: rotate(180deg);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #374151;
  margin: 4px;
  border-radius: 8px;
  transition:
    background-color 0.15s,
    color 0.15s;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: #eef2ff;
  color: #4f46e5;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn-container {
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  color: #4b5563;
  padding: 8px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1200px) {
  .desktop-menu {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-menu-btn-container {
    display: none;
  }
}

/* --- Mobile Menu Styles --- */
.mobile-menu {
  display: block;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 49;
  transform: translateX(100%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}

@media (min-width: 1200px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-nav-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 100px;
}

.mobile-link {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.mobile-dropdown-btn {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.mobile-dropdown-content {
  display: none;
  margin-top: 8px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.mobile-dropdown-content.show {
  display: block;
  animation: slideDown 0.3s ease;
}

.mobile-sub-link {
  display: block;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563;
  border-bottom: 1px solid #e2e8f0;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* --- Ventures Content --- */
.logo-section {
  padding: 80px 20px;
  background-color: #ffffff;
  flex-grow: 1;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.logo-item {
  flex: 0 0 calc(33.33% - 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo-item:hover {
  transform: scale(1.05);
}

.logo-item img {
  max-width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 15px;
}

.logo-item span {
  font-weight: 600;
  color: #3d4094;
  font-size: 0.9rem;
}

/* --- Footer Styles (Original Restored) --- */
.footer-section {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 80px 0 30px 0;
  font-family: "Roboto", sans-serif;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: #ffffff;
  font-family: "Fredoka", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #ed3338;
  border-radius: 2px;
}

.footer-logo img {
  width: 6rem;
}

.footer-about-text {
  color: #9ca3af;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 300px;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #d1d5db;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: #ed3338;
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: #d1d5db;
  align-items: flex-start;
}

.footer-contact i {
  color: #ed3338;
  font-size: 1.5rem;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .logo-item {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .logo-item {
    flex: 0 0 100%;
  }
}
