

        .existing-content {
            max-width: 800px;
            margin: 0 auto;
            padding: 40px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .existing-content h1 {
            color: #333;
            margin-bottom: 20px;
        }

        .existing-content p {
            color: #666;
            line-height: 1.6;
            margin-bottom: 30px;
        }

        #contactBtn {
 
            color: white;
            border: none;
            padding: 15px 35px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
   
        }

        #contactBtn:hover {
            transform: translateY(-2px);
  
        }

        #contactBtn:active {
            transform: translateY(0);
        }

        #contactModal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 900px;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(5px);
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease;
            overflow-y: auto;
            margin-bottom: 40px!important;
        }

        #contactModal.active {
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 1;
        }

        .contact-section {
            background: #141414;
            border-radius: 20px;
            padding: 50px;
            max-width: 600px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s ease;
            position: relative;
            margin: 20px;

        }

        #contactModal.active .contact-section {
            transform: scale(1);
        }

        .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: transparent;
            border: none;
            color: #aaa;
            font-size: 30px;
            cursor: pointer;
            line-height: 1;
            transition: color 0.2s;
            padding: 5px 10px;
        }

        .close-btn:hover {
            color: #fff;
        }

        .contact-section h2 {
            color: #fff;
            font-size: 32px;
            margin-bottom: 10px;
        }

        .contact-section .subtitle {
            color: #888;
            margin-bottom: 30px;
            font-size: 14px;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            color: #bbb;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 500;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            background: #000000;
            border: 1px solid #202020;
            border-radius: 10px;
            color: #fff;
            font-size: 15px;
            transition: border-color 0.3s, background 0.3s;
            font-family: inherit;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #171717;
            background: #111111;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }
/* Make modal content scrollable but hide native scrollbar, and add bottom space */
#contactModal .contact-section {
    max-height: 90vh;
         margin-bottom: 40px!important;
    overflow-y: auto; /* allow scrolling */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 48px; /* extra space under the form */
    scrollbar-width: none; /* Firefox - hide scrollbar */
    -ms-overflow-style: none; /* IE/Edge - hide scrollbar */
}

/* Hide webkit scrollbars (Chrome / Safari / Edge Chromium) while preserving scroll */
#contactModal .contact-section::-webkit-scrollbar {
    width: 0;
    height: 0;
}
/* ...existing code... */
        .submit-btn {
   width: 200px;
    padding: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border: none;
    border-radius: 20px;
    color: rgb(0, 0, 0);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block !important;
    margin: 0 auto 24px auto !important; /* center button and add bottom space */

       
        }

        .submit-btn:hover {
            color:white;
            transition: all 0.9s ease;
            background: #000000;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .social-icons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
            padding-top: 30px;
                 margin-bottom: 40px!important;
            border-top: 1px solid #000000;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000000;
            border-radius: 50%;
            color: #efefef;
            text-decoration: none;
            font-size: 20px;
            transition: all 0.3s ease;
            border: 1px solid #2a3f5f;
        }

        .social-icon:hover {
            color: white;
            transform: translateY(-3px);
        }

        .social-icon.facebook:hover {
            background: #1877f2;
            box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
        }

        .social-icon.twitter:hover {
            background: #000000;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
        }

        .social-icon.instagram:hover {
            background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
            box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
        }

        .social-icon.linkedin:hover {
            background: #0077b5;
            box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
        }

        .social-icon.github:hover {
            background: #333;
            box-shadow: 0 5px 15px rgba(51, 51, 51, 0.4);
        }

        @media (max-width: 768px) {
            .contact-section {
                padding: 30px;
                width: 95%;
            }

            .contact-section h2 {
                font-size: 26px;
            }
        }

        /* Desktop-only: make contact modal content scrollable */
@media (min-width: 768px) {
  /* Ensure modal container uses a viewport-relative max height */
  #contactModal .contact-section {
    max-height: 80vh;         /* stay within viewport */
    overflow-y: auto;         /* enable vertical scrolling when content overflows */
    padding-right: 18px;      /* avoid content being hidden under scrollbar */
    box-sizing: border-box;
  }

  /* Optional: keep close button visible while scrolling */
  #contactModal .close-btn {
    position: sticky;
    top: 8px;
    z-index: 3;
  }
}

/* Thin, subtle custom scrollbar for WebKit browsers */
#contactModal .contact-section::-webkit-scrollbar {
  width: 10px;
}
#contactModal .contact-section::-webkit-scrollbar-track {
  background: transparent;
}
#contactModal .contact-section::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.35);
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.02);
}

/* Firefox scrollbar */
#contactModal .contact-section {
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.35) transparent;
}