/* Custom styles for Secondary Investment Market */

/* YouTube Player Overlay */
.youtube-player-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.youtube-player-popup {
  position: relative;
  width: 80%;
  max-width: 800px;
  aspect-ratio: 16/9;
}

.youtube-player-popup iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9998;
}

/* Hero Section Enhancements */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('../img/hero-bg.jpg') center/cover no-repeat;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
}

/* Mobile optimization for hero background */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: white;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btns .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero-btns .btn-outline {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.hero-btns .btn-outline:hover {
  background: var(--accent-color);
  color: white;
}

/* Video Button Styling */
.hero-video {
  text-align: center;
}

.video-button-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-span-small {
  display: block;
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.video-span-large {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}

.video-wrap {
  margin-top: 1rem;
}

.youtube-link {
  cursor: pointer;
}

.play-button {
  background: var(--accent-color);
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.play-button:hover {
  background: var(--contrast-color);
  transform: translateY(-2px);
}

.play-icon {
  font-size: 1.2rem;
}

/* Investment Philosophy Section */
.philosophy {
  padding: 80px 0;
}

.philosophy .video-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.philosophy .video-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.philosophy .video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.philosophy-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}

.philosophy-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--default-color);
}

/* About Section */
.about {
  padding: 80px 0;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}

.about-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--default-color);
}

.about-image img {
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Investment Focus Cards */
.investment-focus {
  padding: 80px 0;
}

.investment-focus .card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.investment-focus .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.investment-focus .card-img-top {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 1rem;
}

.investment-focus .card:hover .card-img-top {
  transform: scale(1.05);
}

.investment-focus .card-body {
  padding: 1.5rem;
}

.investment-focus .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.investment-focus .card-text {
  color: var(--default-color);
  margin-bottom: 1.5rem;
}

/* Metrics Section */
.metrics {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.metric-counter {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap: 1px; */
  flex-wrap: wrap;
}

.metric-description {
  font-size: 1.1rem;
  color: #cccccc;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  max-width: 220px;
  word-wrap: break-word;
}

.counter-prefix,
.counter-suffix,
.counter-decimal {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.counter-decimal {
  margin: 0 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .metrics-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 25px;
    }
    
    .metric-card {
      min-height: 180px;
      padding: 30px 15px;
    }
    
    .metric-counter {
      font-size: 3rem;
      margin-bottom: 15px;
    }
    
    .counter-prefix,
    .counter-suffix,
    .counter-decimal {
      font-size: 3rem;
    }
    
    .metric-description {
      font-size: 1rem;
      max-width: 200px;
    }
  }

@media (max-width: 768px) {
    .metrics-grid {
      grid-template-columns: 1fr;
      gap: 20px;
      max-width: 400px;
    }
    
    .metric-card {
      min-height: 160px;
      padding: 25px 15px;
    }
    
    .metric-counter {
      font-size: 2.8rem;
      margin-bottom: 12px;
    }
    
    .counter-prefix,
    .counter-suffix,
    .counter-decimal {
      font-size: 2.8rem;
    }
    
    .metric-description {
      font-size: 0.95rem;
      max-width: 200px;
    }
  }

@media (max-width: 480px) {
    /* .metrics-grid {
      gap: 15px;
    } */
    
    .metric-card {
      min-height: 140px;
      padding: 20px 12px;
    }
    
    .metric-counter {
      font-size: 1.5rem;
      margin-bottom: 10px;
    }
    
    .counter-prefix,
    .counter-suffix,
    .counter-decimal {
      font-size: 1.5rem;
    }
    
    .metric-description {
      font-size: 1.1rem;
      max-width: 180px;
    }
  }

/* Ventures Section */
.ventures {
  padding: 80px 0;
}

.venture-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.venture-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.venture-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.venture-logo img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
}

.venture-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

.venture-card p {
  font-size: 0.9rem;
  color: var(--default-color);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.venture-card .btn {
  margin-top: auto;
}

/* Team Section */
.team {
  padding: 80px 0;
}

.team-member {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-img {
  margin-bottom: 1.5rem;
}

.member-img img {
  width: 100%;
  height: auto;
  max-height: 318px;
  object-fit: cover;
  border: 2px solid var(--accent-color);
}

.member-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.member-info span {
  color: var(--accent-color);
  font-weight: 500;
  display: block;
  margin-bottom: 1rem;
}

.member-info p {
  font-size: 0.9rem;
  color: var(--default-color);
  margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
  padding: 80px 0;
}

.contact-info {
  padding: 2rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--heading-color);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.info-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--heading-color);
}

.info-item p {
  color: var(--default-color);
  margin: 0;
}

/* Section Titles */
.section-title {
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  position: relative;
  display: inline-block;
}

/* .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
} */

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Contact Section Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
  /* Contact Information Section - Mobile Optimization */
  .contact .info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
  }
  
  .contact .info-item .icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  
  .contact .info-item .icon-box i {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
    display: block;
  }
  
  .contact .info-item .content {
    width: 100%;
  }
  
  .contact .info-item .content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff;
  }
  
  .contact .info-item .content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
  }
  
  /* Ensure perfect centering and spacing */
  .contact .info-box {
    text-align: center;
  }
  
  .contact .info-box h3 {
    margin-bottom: 1.5rem;
  }
  
  .contact .info-box > p {
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  /* Header and Navigation Mobile Improvements */
  .header {
    padding: 10px 0;
  }
  
  .header .logo h5.sitename {
    font-size: 1rem;
    display: none; /* Hide on mobile for better space utilization */
  }
  
  .header .logo img {
    max-height: 32px;
    margin-right: 5px;
  }
  
  .mobile-nav-toggle {
    font-size: 24px;
    margin-right: 5px;
  }
  
  /* Hero Section Mobile Optimization */
  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .hero-btns {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-btns .btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  
  /* Investment Focus Cards Mobile Optimization */
  .investment-focus .card {
    margin-bottom: 1.5rem;
  }
  
  .investment-focus .card-img-top {
    height: 180px;
    object-fit: cover;
  }
  
  .investment-focus .card-body {
    padding: 1.25rem;
  }
  
  .investment-focus .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .investment-focus .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Metrics Section Mobile Optimization */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
  }
  
  .metric-card {
    padding: 1.5rem 1rem;
  }
  
  .metric-counter {
    font-size: 2rem;
  }
  
  .metric-description {
    font-size: 0.85rem;
  }
  
  /* Ventures Section Mobile Optimization */
  .ventures .row {
    gap: 1rem;
  }
  
  .venture-card {
    padding: 1.25rem;
  }
  
  .venture-logo img {
    max-height: 60px;
    margin: 0 auto;
  }
  
  .venture-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .venture-card .card-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  /* Team Section Mobile Optimization */
  .team-member {
    margin-bottom: 1.5rem;
  }
  
  .member-img img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
  }
  
  .member-info h4 {
    font-size: 1.1rem;
  }
  
  .member-info .text-muted {
    font-size: 0.9rem;
  }
  
  .member-info p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  /* General Mobile Responsive Improvements */
  .video-button-container {
    padding: 1.5rem;
  }
  
  .video-span-large {
    font-size: 1.25rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .about-content h2,
  .philosophy-content h2 {
    font-size: 1.8rem;
  }
  
  .metric-number {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  /* Extra Small Devices - Enhanced Contact Section */
  .contact .info-item {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
  }
  
  .contact .info-item .icon-box {
    width: 50px;
    height: 50px;
    margin-bottom: 0.75rem;
  }
  
  .contact .info-item .icon-box i {
    font-size: 1.25rem;
  }
  
  .contact .info-item .content h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  
  .contact .info-item .content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .contact .info-box,
  .contact .contact-form {
    padding: 1.25rem 1rem !important;
  }
  
  .contact .info-box h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
  }
  
  .contact .info-box > p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  /* Navigation Mobile Improvements for Extra Small Devices */
  .mobile-nav-toggle {
    font-size: 22px;
    margin-right: 0;
  }
  
  .navbar-mobile {
    padding: 1rem;
  }
  
  .navbar-mobile ul {
    gap: 0.5rem;
  }
  
  .navbar-mobile a {
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem;
  }
  
  /* Hero Section - Extra Small Devices */
  .hero-content h1 {
    font-size: 1.4rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .hero-btns .btn {
    max-width: 220px;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  
  /* Investment Focus Cards - Extra Small Devices */
  .investment-focus .card {
    margin-bottom: 1rem;
  }
  
  .investment-focus .card-img-top {
    height: 160px;
  }
  
  .investment-focus .card-title {
    font-size: 1rem;
  }
  
  .investment-focus .card-text {
    font-size: 0.8rem;
  }
  
  /* Metrics Section - Extra Small Devices */
  .metrics-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  
  .metric-card {
    padding: 1.25rem 0.75rem;
  }
  
  .metric-counter {
    font-size: 1.75rem;
  }
  
  .metric-description {
    font-size: 0.8rem;
  }
  
  /* Ventures Section - Extra Small Devices */
  .venture-card {
    padding: 1rem;
  }
  
  .venture-logo img {
    max-height: 50px;
  }
  
  .venture-card .card-title {
    font-size: 0.95rem;
  }
  
  .venture-card .card-text {
    font-size: 0.8rem;
  }
  
  /* Team Section - Extra Small Devices */
  .member-img img {
    /* max-height: 180px; */
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
  }
  
  .member-info h4 {
    font-size: 1rem;
  }
  
  .member-info .text-muted {
    font-size: 0.85rem;
  }
  
  .member-info p {
    font-size: 0.8rem;
  }
  
  /* General Mobile Improvements for Extra Small Devices */
  .section-title h2 {
    font-size: 1.4rem;
  }
  
  .about-content h2,
  .philosophy-content h2 {
    font-size: 1.4rem;
  }
  
  .metric-number {
    font-size: 1.8rem;
  }
  
  /* Footer Mobile Improvements */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer h5 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer p,
  .footer a {
    font-size: 0.85rem;
  }
  
  .footer .social-links a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Animation Enhancements */
.hero-content,
.hero-video {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero-video {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth scrolling enhancement */
html {
  scroll-behavior: smooth;
}

/* Custom button styles */
.btn-primary {
  background: var(--accent-color);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--contrast-color);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}