.contact-section {
    min-height: 100vh;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 30%, #2a0a2a 70%, #0a0a0a 100%);
}

.contact-blur-1 {
    height: 0;
    width: 50rem;
    position: absolute;
    top: 20%;
    right: -15%;
    box-shadow: 0 0 1000px 25px var(--primary-color);
    rotate: -60deg;
    z-index: -1;
    opacity: 0.4;
}

.contact-blur-2 {
    height: 0;
    width: 35rem;
    position: absolute;
    bottom: 30%;
    left: -10%;
    box-shadow: 0 0 800px 20px var(--secondary-color);
    rotate: 30deg;
    z-index: -1;
    opacity: 0.3;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-info {
    position: relative;
}

.contact-info h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #e7e7e7, var(--primary-color), var(--secondary-color), #5300a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(127, 66, 167, 0.6);
    position: relative;
}

.contact-info p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #b7b7b7;
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(127, 66, 167, 0.3);
    border-radius: 20px;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 66, 167, 0.2), transparent);
    transition: left 0.6s;
}

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    transform: translateY(-8px) rotateX(5deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(127, 66, 167, 0.4);
    border-color: var(--primary-color);
    background: rgba(127, 66, 167, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    animation: iconPulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(127, 66, 167, 0.5);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(127, 66, 167, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(127, 66, 167, 0.8);
    }
}

.contact-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #e7e7e7;
}

.contact-details p {
    font-size: 1rem;
    color: #a7a7a7;
    margin: 0;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-link {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(127, 66, 167, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: white;
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(127, 66, 167, 0.4);
    border-color: var(--primary-color);
}

.contact-form-container {
    position: relative;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(127, 66, 167, 0.2);
    border-radius: 30px;
    padding: 3rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), #5300a0, var(--primary-color));
    background-size: 400% 400%;
    border-radius: 30px;
    z-index: -1;
    animation: borderGlow 4s ease infinite;
    opacity: 0.7;
}

@keyframes borderGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #e7e7e7;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(127, 66, 167, 0.3);
    border-radius: 15px;
    font-size: 1rem;
    color: #e7e7e7;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(127, 66, 167, 0.4);
    background: rgba(127, 66, 167, 0.08);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #a5a5a5;
}

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

.submit-btn {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn::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.6s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(127, 66, 167, 0.5);
    background: linear-gradient(45deg, #8f52b7, #7610d5);
}

.submit-btn:active {
    transform: translateY(0);
}

.contact-3d-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.contact-3d-element {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    animation: contactFloat 8s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(127, 66, 167, 0.5);
}

.contact-3d-element:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    border-radius: 50%;
}

.contact-3d-element:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
    transform: rotate(45deg);
}

.contact-3d-element:nth-child(3) {
    bottom: 20%;
    left: 8%;
    animation-delay: 4s;
    border-radius: 30%;
}

.contact-3d-element:nth-child(4) {
    bottom: 30%;
    right: 5%;
    animation-delay: 6s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

@keyframes contactFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(0px) rotate(180deg);
    }
    75% {
        transform: translateY(20px) rotate(270deg);
    }
}

@media (max-width: 1300px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-info h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 1rem;
        gap: 3rem;
    }

    .contact-info h2 {
        font-size: 2.5rem;
    }

    .contact-info p {
        font-size: 1.1rem;
    }

    .contact-methods {
        gap: 1.5rem;
    }

    .contact-method {
        padding: 1.2rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .contact-details h3 {
        font-size: 1.1rem;
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
    }

    .social-link {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-control {
        padding: 1rem;
    }

    .submit-btn {
        padding: 1.2rem;
        font-size: 1rem;
    }
}