* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000;
    padding: 20px;
}

.wrapper {
    display: flex;
    width: 100%;
    max-width: 500px;
    border: 5px solid #333;
    border-radius: 15px;
    overflow: hidden;
    transition: border 0.3s;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.wrapper:hover {
    border-color: #0ef;
}

.form-container {
    padding: 40px;
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: color 0.3s, box-shadow 0.3s;
}

h2, h3 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    transition: color 0.3s;
}

/* Adjusting the size of the background animation to prevent overflow */
.wrap .triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid transparent; /* Reduce size here */
    border-right: 30px solid transparent;
    border-bottom: 60px solid rgba(233, 30, 99, 0.7); /* Reduce height here */
    animation: move 10s infinite linear;
}

.wrap .triangle:nth-child(2) {
    border-bottom-color: rgba(0, 188, 212, 0.7);
    animation-duration: 12s;
}

.wrap .triangle:nth-child(3) {
    border-bottom-color: rgba(156, 39, 176, 0.7);
    animation-duration: 15s;
}

/* Keyframes to handle triangle animation */
@keyframes move {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-1000px); /* Adjust height to prevent overflow */
    }
}

.wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0; /* Lower z-index for background triangles */
    perspective: 1000px;
    overflow: hidden; /* Prevent background animations from causing scrolling */
}
.wrapper:hover button{
    color: #000;
    background: linear-gradient(45deg, #0ef, #0bb); /* Neon gradient background */
    box-shadow: 0 0 10px #0ef, 0 0 20px #0ef; /* Neon shadow effect */
}
/* Neon effect on hover for headlines */
.wrapper:hover h2,
.wrapper:hover h3 {
    color: #0ef;
}

.input-box {
    position: relative;
    margin: 20px 0;
    width: 100%;
}

.input-box input,
.input-box textarea {
    width: 100%;
    background: transparent;
    border: 2px solid #333;
    outline: none;
    border-radius: 5px;
    font-size: 1em;
    color: #fff;
    padding: 10px 10px 10px 40px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-box textarea {
    height: 50px;
}

.input-box input:focus,
.input-box textarea:focus {
    border-color: #0ef;
    box-shadow: 0 0 10px #0ef;
}

.input-box .icon {
    position: absolute;
    top: 55%;
    left: 10px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.5em;
    transition: color 0.3s, box-shadow 0.3s;
}

/* Remove background hover effect on icon, keep neon color */
.input-box:hover .icon {
    color: #0ef;
    text-shadow: 0 0 10px #0ef, 0 0 20px #0ef, 0 0 30px #0ef;
}

/* Button Styling */
/* Button Styling */
button {
    width: 70%;
    height: 50px;
    background: linear-gradient(45deg, #333, #444);
    border: none;
    outline: none;
    border-radius: 5px;
    cursor: pointer; /* Ensure the cursor is a pointer by default */
    font-size: 1.1em;
    color: #fff; /* Default text color */
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

/* Add hover effect */
button:hover {
    color: #000; /* Text color changes to black */
    background: linear-gradient(45deg, #0ef, #0bb); /* Neon gradient background */
    box-shadow: 0 0 10px #0ef, 0 0 20px #0ef; /* Neon shadow effect */
}
.form-container:hover input,
.form-container:hover textarea,
.form-container:hover .icon {
    border-color: #0ef;
}

/* Social Icons */
.social-container {
    text-align: center;
    margin: 30px 0 0 0; /* Adjust margin to space it from form */
}

.social-container h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.social-icons {
    display: flex;
    justify-content: center;
}

.social-icons a {
    margin: 0 10px;
    color: #fff;
    font-size: 1.5em;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #0ef;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 10px;
    }
}

/* Triangle Styling */
.tri {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 5px solid transparent; /* Reduced size */
    border-right: 5px solid transparent; /* Reduced size */
    border-bottom: 10px solid lightgray; /* Light gray color */
    transform-origin: 50% 50%;
    animation: randomMovement 10s infinite ease-in-out;
    opacity: 0.8;
}

/* Keyframes for random movement */
@keyframes randomMovement {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(150px, 100px) rotate(180deg); }
    50% { transform: translate(-200px, -150px) rotate(360deg); }
    75% { transform: translate(250px, -100px) rotate(540deg); }
    100% { transform: translate(0, 0) rotate(720deg); }
}