/* ----------------- Section ----------------- */
.companies-section{
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #0a0a0a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

.companies-container{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    color: #e0e0e0;
  }
  
  .company-video{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 0;
  }

  .companies-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #BF9C56, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .companies-section > p {
    font-size: 16px;
    color: #bbb;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
  }
  
  /* ----------------- Grid ----------------- */
  .companies-grid {
    margin-top: 40px;
    width: 100%;
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
  
  /* ----------------- Company Card ----------------- */
  .company-card {
    background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 22px;
    height: 420px;
    padding: 28px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
  }
  
  .company-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(255, 215, 0, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
  }
  
  .company-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 20px rgba(212, 175, 55, 0.2);
  }
  
  .company-card:hover::before {
    opacity: 1;
  }
  
  /* ----------------- Card Content ----------------- */
  .card-content {
    position: relative;
    z-index: 2;
  }
  
  .company-logo {
    width: 70px;
    height: 70px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #000;
    font-weight: 700;
    font-size: 22px;
    transition: transform 0.3s;
    box-shadow: 0 0px 15px rgba(212, 175, 55, 0.5);
  }

  .company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
  }
  
  .company-card:hover .company-logo {
    transform: rotate(8deg) scale(1.1);
  }
  
  .company-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #BF9C56;
  }
  
  .company-card > p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.6;
  }
  
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }
  
  .tag {
    background: rgba(245, 215, 110, 0.1);
    color: #BF9C56;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 12px;
    border: 1px solid rgba(245, 215, 110, 0.3);
  }
  
  .learn-more {
    display: inline-block;
    color: #d4af37;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .learn-more:hover {
    color: #fff;
    text-shadow: 0 0 8px #d4af37;
    transform: translateX(5px);
  }
  
  /* ----------------- Floating Elements ----------------- */
  .floating-element {
    position: absolute;
    opacity: 0;
    transition: all 0.8s ease;
    z-index: 1;
  }
  
  .coin-1 {
    top: -20px;
    right: 30px;
    font-size: 36px;
  }
  
  .coin-2 {
    bottom: 30px;
    left: -20px;
    font-size: 28px;
  }
  
  .graph-line {
    bottom: -20px;
    right: 35px;
    font-size: 32px;
  }
  
  .company-card:hover .floating-element {
    opacity: 0.8;
    transform: translateY(-10px);
  }
  
  /* ----------------- Popup Overlay ----------------- */
  .popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2000;
    backdrop-filter: blur(6px);
    padding: 20px;
  }
  
  .popup-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* ----------------- Popup ----------------- */
  .popup {
    background: #111;
    border-radius: 24px;
    padding: 40px;
    max-width: 620px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    max-height: 90vh;
    border: 1px solid rgba(245, 215, 110, 0.25);
  }
  
  .popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #d4af37, #BF9C56);
    border-radius: 24px 24px 0 0;
  }
  
  .popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4af37, #BF9C56);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(245, 215, 110, 0.3);
  }
  
  .popup-icon i {
    color: #111;
    font-size: 34px;
  }
  
  .popup h2 {
    margin-bottom: 12px;
    font-size: 26px;
    font-weight: 700;
    color: #BF9C56;
    text-align: center;
  }
  
  .popup-info {
    margin-bottom: 20px;
  }
  
  .info-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    gap: 8px;
    justify-content: center;
  }
  
  .info-label {
    font-weight: 600;
    color: #BF9C56;
  }
  
  .info-value {
    color: #bbb;
  }
  
  .popup h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #BF9C56;
    text-align: center;
  }
  
  .popup p {
    font-size: 15px;
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.7;
    text-align: center;
  }
  
  /* ----------------- Services in Popup ----------------- */
  .popup-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
  }
  
  .feature {
    text-align: center;
    padding: 14px;
    border-radius: 14px;
    background: rgba(245, 215, 110, 0.05);
    border: 1px solid rgba(245, 215, 110, 0.2);
    max-width: 140px;
    transition: all 0.3s ease;
  }
  
  .feature h4 {
    font-size: 14px;
    color: #BF9C56;
    margin-bottom: 5px;
  }
  
  .feature p {
    font-size: 12px;
    color: #999;
  }
  
  .feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(245, 215, 110, 0.2);
  }
  
  /* ----------------- Button ----------------- */
  .close-btn {
    background: linear-gradient(to right, #d4af37, #BF9C56);
    color: #111;
    border: none;
    border-radius: 7px;
    padding: 3px 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
  }
  
  .close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(245, 215, 110, 0.3);
  }
  
  /* ----------------- Responsive ----------------- */
  @media (max-width: 768px) {
    .popup {
      padding: 25px 20px;
    }
  
    .popup h2 {
      font-size: 22px;
    }
  
    .popup-icon {
      width: 70px;
      height: 70px;
    }
  
    .popup-icon i {
      font-size: 28px;
    }
  
    .feature {
      max-width: 120px;
    }
  }
  