/* Contact Page Styles */

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .contact-info {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-text h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.3rem;
}

.contact-text p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.social-links h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
}


.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 1.2rem;
    position: relative;
}

body.light-theme .social-link {
    background-color: rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.social-link::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-bg);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.social-link:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Contact Form */
.contact-form {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

body.light-theme .contact-form {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    transition: var(--transition);
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 12px 30px;
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    background: rgba(136, 136, 136, 0.1);
    border-radius: 8px;
    margin-top: 2rem;
}

.form-success i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.form-success h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
}

/* Responsive Design for Contact Page */
@media screen and (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-link::after {
        display: none;
    }
}
/* Vanta Birds Background */
.vanta-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#contact {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.contact-content {
    position: relative;
    z-index: 2;
}

/* Add blur effect to contact containers */
.contact-info,
.contact-form {
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    background: rgba(15, 15, 15, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.light-theme .contact-info,
body.light-theme .contact-form {
    background: rgba(245, 245, 245, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Remove the old background patterns */
#contact {
    background: none !important;
}

body.light-theme #contact {
    background: none !important;
}
/* Form Error Messages */
.form-error {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for submit button */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}
/* Ensure Vanta container is properly positioned */
.vanta-container {
    position: fixed !important;  /* ← CHANGE from absolute to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#contact {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: none !important; /* ← FORCE no background */
}

.contact-content {
    position: relative;
    z-index: 2;
}

/* Remove ALL old backgrounds */
#contact {
    background: none !important;
}

body.light-theme #contact {
    background: none !important;
}

/* Social Icons Brand Colors on Hover */
.social-link:hover i {
    color: inherit !important;
}

/* GitHub - Black */
.social-link[title="GitHub"]:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* LinkedIn - Blue */
.social-link[title="LinkedIn"]:hover {
    background-color: #0077b5 !important;
    color: #ffffff !important;
}

/* LeetCode - Orange/Yellow with WHITE icon */
.social-link[title="LeetCode"]:hover {
    background-color: #ffa116 !important;
    color: #ffffff !important;
}

/* HackerRank - Green with WHITE icon */
.social-link[title="HackerRank"]:hover {
    background-color: #00ea64 !important;
    color: #ffffff !important;
}

/* HyperSkill - Blue */
.social-link[title="HyperSkill"]:hover {
    background-color: #4a76ee !important;
    color: #ffffff !important;
}

/* Spotify - Green */
.social-link[title="Spotify"]:hover {
    background-color: #1db954 !important;
    color: #ffffff !important;
}

/* Discord - Purple */
.social-link[title="Discord: kkprofessional"]:hover {
    background-color: #5865f2 !important;
    color: #ffffff !important;
}

/* Ensure ALL icons turn white on hover */
.social-link:hover i {
    filter: brightness(0) invert(1) !important;
}

/* Remove any specific filters for LeetCode and HackerRank */
.social-link[title="LeetCode"]:hover i,
.social-link[title="HackerRank"]:hover i {
    filter: brightness(0) invert(1) !important;
}