:root {
    --primary-color: #6C63FF;
    --secondary-color: #FF6B6B;
    --background: #151515;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --hover-bg: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--background);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    min-height: 100vh;
}

.form-wrapper {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}

input:focus ~ label,
input:valid ~ label,
textarea:focus ~ label,
textarea:valid ~ label {
    transform: translateY(-2rem) scale(0.8);
    color: var(--primary-color);
}

.input-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

input:focus ~ .input-animation,
textarea:focus ~ .input-animation {
    width: 100%;
}

.submit-btn {
    position: relative;
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
}

.btn-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-animation {
    transform: scaleX(1);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-btn:hover {
    transform: translateX(10px);
    background: var(--hover-bg);
}

.social-btn i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .form-wrapper {
        padding: 1.5rem;
    }
}