/* Modal Styling - Enhanced */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  @keyframes modalFadeIn {
    from { 
      opacity: 0;
      backdrop-filter: blur(0px);
    }
    to { 
      opacity: 1;
      backdrop-filter: blur(10px);
    }
  }
  
  .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin: 10vh auto;
    padding: 40px 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
  }
  
  .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--razzmatazz), var(--rajah));
  }
  
  @keyframes modalSlideIn {
    from { 
      transform: scale(0.8) translateY(-50px);
      opacity: 0;
    }
    to { 
      transform: scale(1) translateY(0);
      opacity: 1;
    }
  }
  
  .modal-content h2 {
    color: var(--st-patricks-blue);
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--st-patricks-blue), var(--ksu-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  
  .modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    margin: 15px 0;
    background: linear-gradient(135deg, var(--razzmatazz), var(--rajah));
    color: var(--white);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
  }
  
  .modal-btn:hover::before {
    left: 100%;
  }
  
  .modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
      0 12px 30px rgba(245, 0, 87, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  
  .modal-btn:active {
    transform: translateY(-1px);
  }
  
  .modal-btn ion-icon {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
  }
  
  .modal-btn:hover ion-icon {
    transform: scale(1.1);
  }
  
  #whatsappButton {
    background: linear-gradient(135deg, #25D366, #128C7E);
  }
  
  #whatsappButton:hover {
    box-shadow: 
      0 12px 30px rgba(37, 211, 102, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  
  #emailButton {
    background: linear-gradient(135deg, #F50057, #4285F4);
  }
  
  #emailButton:hover {
    box-shadow: 
      0 12px 30px rgba(234, 67, 53, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  
  .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--purple-navy);
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 12px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .close:hover {
    color: var(--winter-sky);
    background: rgba(245, 0, 87, 0.1);
    transform: rotate(90deg);
  }
  
  /* Glass Morphism Effect */
  .modal-content.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  
  /* Email Form Modal Styling */
  #emailModal .modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    max-width: 500px;
    text-align: left;
  }
  
  #emailModal .modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
  }
  
  #emailModal .modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  #emailModal .modal-content textarea,
  #emailModal .modal-content input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: inherit;
  }
  
  #emailModal .modal-content textarea:focus,
  #emailModal .modal-content input:focus {
    border-color: var(--winter-sky);
    box-shadow: 0 0 0 3px rgba(245, 0, 87, 0.1);
    transform: translateY(-2px);
  }
  
  #emailModal .modal-content textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
  }
  
  #emailModal .modal-content button[type="submit"] {
    background: linear-gradient(135deg, var(--razzmatazz), var(--rajah));
    color: var(--white);
    padding: 18px 24px;
    font-size: 1.1rem;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
  }
  
  #emailModal .modal-content button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 
      0 12px 30px rgba(245, 0, 87, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  
  #emailModal .modal-content button[type="submit"]:active {
    transform: translateY(-1px);
  }
  
  /* Notification Styling */
  #notification {
    display: none;
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #b8dfc2;
    border-radius: 12px;
    text-align: center;
    animation: notificationSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
  }
  
  #notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #28a745;
  }
  
  @keyframes notificationSlideIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  #notification p {
    margin: 0;
    font-weight: 500;
  }
  
  /* Discover Modal Enhancements */
  #discoverModal .modal-content {
    max-width: 600px;
  }
  
  #discoverModal .modal-content h2 {
    margin-bottom: 20px;
  }
  
  #discoverModal .modal-content p {
    color: var(--purple-navy);
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
  }
  
  #discoverModal .modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  #discoverModal .modal-content textarea,
  #discoverModal .modal-content input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: #ffffff;
  }
  
  #discoverModal .modal-content textarea:focus,
  #discoverModal .modal-content input:focus {
    border-color: var(--winter-sky);
    box-shadow: 0 0 0 3px rgba(245, 0, 87, 0.1);
    transform: translateY(-2px);
  }
  
  #discoverModal .modal-content textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  #discoverModal .modal-content button[type="submit"] {
    background: linear-gradient(135deg, var(--razzmatazz), var(--rajah));
    color: var(--white);
    padding: 18px 24px;
    font-size: 1.1rem;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  #discoverModal .modal-content button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 
      0 12px 30px rgba(245, 0, 87, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  
  /* Notification Modal */
  #notificationModal .modal-content {
    max-width: 450px;
  }
  
  #notificationModal .modal-content h2 {
    color: var(--winter-sky);
    margin-bottom: 15px;
  }
  
  #notificationModal .modal-content p {
    color: var(--purple-navy);
    line-height: 1.6;
    font-size: 1.1rem;
  }
  
  /* Responsive Modal Design */
  @media (max-width: 768px) {
    .modal-content {
      margin: 5vh auto;
      padding: 30px 20px;
      width: 95%;
    }
    
    .modal-content h2 {
      font-size: 1.8rem;
    }
    
    .modal-btn {
      padding: 16px 20px;
      font-size: 1rem;
    }
    
    #emailModal .modal-content,
    #discoverModal .modal-content {
      max-width: 95%;
    }
  }
  
  @media (max-width: 480px) {
    .modal-content {
      padding: 25px 15px;
    }
    
    .modal-content h2 {
      font-size: 1.6rem;
    }
    
    .modal-btn {
      padding: 14px 16px;
      font-size: 0.95rem;
    }
    
    .close {
      top: 15px;
      right: 15px;
      width: 35px;
      height: 35px;
      font-size: 24px;
    }
  }
  
  /* Loading States */
  .modal-btn.loading {
    pointer-events: none;
    opacity: 0.8;
  }
  
  .modal-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
  }
  
  /* Success States */
  .modal-btn.success {
    background: linear-gradient(135deg, #28a745, #20c997);
  }
  
  .modal-btn.success:hover {
    box-shadow: 
      0 12px 30px rgba(40, 167, 69, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }