.contact-section {
    background-color: #03040f;
    color: white;
    min-height: 100vh;
    position: relative;
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animated Stars Background */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.container {
    position: relative;
    z-index: 2;
}

/* Form Styling */
.form-container {
    width: 430px; /* Updated form width to 430px as requested */
    margin-right: 80px;
}



/* Social Media Section */
.social-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ff6b35;
}

.social-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.social-section {
    text-align: left; /* Set text alignment to left for large devices */
}

.social-icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start; /* Set icons to left align for large devices */
}


.social-icon:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .form-container {
        width: 100%;
        max-width: 430px; /* Updated max-width to match new form width */
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .contact-form {
        padding: 30px 20px;
        width: 100%;
        height: auto; /* Auto height for mobile responsiveness */
        min-height: 520px; /* Adjusted min-height proportionally */
        margin-bottom: 36px;
    }
    
    .social-section {
        text-align: left; /* Keep text left-aligned on mobile */
    }
    
    .social-icons {
        justify-content: center; /* Center icons on mobile devices */
        
    }
}

@media (max-width: 576px) {
    .form-title {
        font-size: 1.8rem;
    }
    
    .social-section h2 {
        font-size: 1.8rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .form-container {
        max-width: 100%;
    }
    
    .contact-form {
        width: 100%;
        min-height: 480px; /* Adjusted min-height for smaller screens */
    }
}


        /* form */


        
.contact-form {
  background: rgba(20, 20, 35, 0.85);
  padding: 40px;
  border-radius: 15px;
  border: 2px solid rgba(138, 43, 226, 0.4);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
  max-width: 420px;
  width: 100%;
  transition: 0.3s;
  margin-bottom: 36px;
}

.contact-form:hover {
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.6);
  border-color: rgba(138, 43, 226, 0.6);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #8a2be2;
  font-weight: 600;
}

/* Floating label animation */
.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid #a23ca2;
  background: transparent;
  outline: none;
  padding: 10px 5px;
  color: #fff;
  font-size: 16px;
  transition: 0.3s;
}

.form-group label {
  position: absolute;
  top: 10px;
  left: 5px;
  color: #bbb;
  font-size: 16px;
  pointer-events: none;
  transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom: 2px solid #ff4f9d;
  /* box-shadow: 0 1px 8px -2px #ff4f9d; */
  
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
  top: -12px;
  font-size: 13px;
  color: #ff4f9d;
}

    

@media (max-width: 576px) {
  .contact-form {
    padding: 25px;
  }
}

.btn-send {
        background: linear-gradient(45deg, #2696d5, #5b2ac6);
        border: none;
        border-radius: 50px;
        padding: 15px 30px;
        font-size: 17px;
        letter-spacing: 8px;
        font-weight: bold;
        color: white;
        width: 100%;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(38, 150, 213, 0.4);
    color: #e4c2ee;
}

.btn-send::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-send:hover::before {
    left: 100%;
}

        /* ALERT BOX */

        
     /* Overlay */
.alert-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Alert box */
.alert-box {
  background: #1e1e2f;
  color: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 20px rgba(93, 0, 255, 0.5);
  max-width: 350px;
  animation: pop 0.3s ease;
}

.alert-box.success {
  border-left: 6px solid #7300ff;
}
.alert-box.error {
  border-left: 6px solid #ff4d4d;
}

.alert-box button {
  margin-top: 15px;
  padding: 8px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  background: #8400ff9e;
  color: #000;
  transition: 0.2s;
}
.alert-box button:hover {
  background: #7602db;
}

@keyframes pop {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.social-media-icon {
  color: #fff; /* default icon color */
  font-size: 25px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.4s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 47, 0.2); /* transparent dark background */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 1;
  backdrop-filter: blur(4px); /* frosted glass effect */
}

.social-media-icon:hover {
  color: #fff; /* icon turns white */
  background: linear-gradient(135deg, rgba(182, 0, 254, 0.6), rgba(4, 136, 225, 0.6)); /* transparent gradient */
  transform: translateY(-6px); /* slight lift */
  box-shadow: 0 8px 20px rgba(131, 5, 215, 0.6);
}



/* Tablets (≤ 768px) */
@media (max-width: 768px) {
  .social-media-icon {
    font-size: 22px;
    padding: 12px;
    margin: 5px;
  }
}

/* Small devices (≤ 480px) */
@media (max-width: 480px) {
  .social-media-icon {
    font-size: 20px;
    padding: 10px;
    margin: 4px;
  }
}

/* Extra small devices (≤ 360px) */
@media (max-width: 360px) {
  .social-media-icon {
    font-size: 18px;
    padding: 8px;
    margin: 3px;
  }
}