/* Optimized styles that work with Three.js gradient background */

/* ---- Base Layout Styles ---- */
.goals-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Background is handled by Three.js */
  }
  
  .goals-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    /* Simple fade-in animation that's not resource intensive */
    opacity: 0;
    animation: simpleAppear 0.8s ease-out forwards;
  }
  
  @keyframes simpleAppear {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ---- Logo Styles (optimized) ---- */
  .goals-hero-logo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 0 30px rgba(66, 153, 225, 0.4);
    /* Simple subtle pulse that won't lag on mobile */
    animation: simplePulse 4s ease-in-out infinite;
  }
  
  @keyframes simplePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  
  .goals-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* ---- Typography Styles ---- */
  .goals-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    animation-delay: 0.3s;
    opacity: 0;
    animation: simpleAppear 0.8s ease-out 0.2s forwards;
  }
  
  .goals-hero-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    line-height: 1.5;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: simpleAppear 0.8s ease-out 0.4s forwards;
  }
  
  /* ---- Content Sections ---- */
  .goals-content-section {
    padding: 5rem 1rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg,
            rgba(44, 82, 130, 0.05) 0%,
            rgba(66, 153, 225, 0.1) 100%);
  }
  
  .goals-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .goals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
  }
  
  /* ---- Card Styles (optimized) ---- */
  .goals-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(44, 82, 130, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(66, 153, 225, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .goals-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(44, 82, 130, 0.15);
  }
  
  .goals-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .goals-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4299E1, #2C5282);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }
  
  .goals-card:hover .goals-icon {
    transform: scale(1.1);
  }
  
  .goals-card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2C5282;
    margin: 0;
    transition: color 0.3s ease;
  }
  #gradient-container {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 0 !important;
  }
  
  .goals-card:hover .goals-card-header h3 {
    color: #4299E1;
  }
  
  .goals-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .goals-card-content p {
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
  
  /* ---- Social Elements ---- */
  .social-logos {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .social-logo-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4299E1, #2C5282);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .social-logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.2);
  }
  
  /* ---- Lists ---- */
  .steps-list {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .steps-list li {
    margin-bottom: 0.8rem;
    color: #4A5568;
    position: relative;
  }
  
  .highlight {
    font-weight: 700;
    color: #2C5282;
  }
  
  /* ---- CTA Button ---- */
  .goals-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #4299E1, #2C5282);
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: fit-content;
    align-self: center;
    position: relative;
    overflow: hidden;
  }
  
  .goals-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 82, 130, 0.3);
  }
  
  /* ---- Responsive design ---- */
  @media (max-width: 1024px) {
    .goals-grid {
      gap: 1.5rem;
    }
    
    .goals-card {
      padding: 1.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .goals-grid {
      grid-template-columns: 1fr;
    }
    
    .goals-content-section {
      padding: 3rem 1rem;
    }
    
    .goals-hero-title {
      font-size: 3rem;
    }
    
    .goals-hero-subtitle {
      font-size: 1.2rem;
    }
    
    .goals-hero-logo {
      width: 180px;
      height: 180px;
    }
    
    .goals-card-header h3 {
      font-size: 1.2rem;
    }
  }
  
  @media (max-width: 480px) {
    .goals-card-header {
      flex-direction: column;
      text-align: center;
    }
    
    .goals-icon {
      margin-bottom: 0.5rem;
    }
    
    .goals-cta-btn {
      width: 100%;
    }
    
    .goals-hero-title {
      font-size: 2.5rem;
    }
    
    .goals-hero-logo {
      width: 150px;
      height: 150px;
    }
    
    /* Disable Three.js for very small screens if needed */
    .disable-threejs-mobile {
      display: none;
    }
  }

  