

/* Define Variables for Consistent Styling */
:root {
    --primary-color: #7c3aed; 
    --secondary-color: #38bdf8; 
    --text-color: #e5e5e5; 
    --text-muted: #a3a3a3;
    --card-background: #1f2937;
    --border-color: rgba(124, 58, 237, 0.4); 
    --bg-dark: #0b001a; 
}
/* 1. Global Reset for Responsiveness */
html {
   
    font-size: 100%;
    
    box-sizing: border-box; 
}


*,
*::before,
*::after {
    box-sizing: inherit;
}


body {
   
    margin: 0;
    padding: 0;
   
    background-color: var(--bg-dark, #0b001a); 
   
    max-width: 100vw; 
    
    overflow-x: hidden; 
}


@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


@keyframes iconPulse {
    from { filter: drop-shadow(0 0 5px var(--secondary-color, #38bdf8)); }
    to { filter: drop-shadow(0 0 10px var(--secondary-color, #38bdf8)); }
}


.contact-section {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
    background-color: var(--bg-dark); 
    padding: 4rem 2rem; 
    
    /* Initial state for entrance animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
}


/* --- 2. CONTACT INFO STYLING --- */

.contact-info {
    flex: 1;
    text-align: left;
    padding: 2rem;
    border-radius: 12px;
    background-color: rgba(31, 41, 55, 0.2); 
    
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.2); 
    transition: box-shadow 0.5s ease-in-out;
}

.contact-info:hover {
    box-shadow: 0 0 35px rgba(124, 58, 237, 0.4);
}

.contact-info h2 { 
    text-align: left; 
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
  
    text-shadow: 0 0 5px rgba(56, 189, 248, 0.5); 
}
.contact-info p { 
    color: var(--text-muted); 
    margin-bottom: 3rem; 
    line-height: 1.6;
}
.contact-info ul { 
    list-style: none; 
    padding: 0; 
    
    counter-reset: item-counter; 
}
.contact-info ul li {
    display: flex;
    align-items: center;
    gap: 1.5rem; 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
    
  
    opacity: 0; 
    transform: translateX(-20px);
    animation: slideInRight 0.5s ease-out forwards;
}


.contact-info ul li:nth-child(1) { animation-delay: 0.8s; }
.contact-info ul li:nth-child(2) { animation-delay: 1.0s; }
.contact-info ul li:nth-child(3) { animation-delay: 1.2s; }

.contact-info ul li:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}
.contact-info ul li i {
    color: var(--secondary-color);
    font-size: 1.8rem; 
    filter: drop-shadow(0 0 5px var(--secondary-color)); 
 
    animation: iconPulse 1.5s infinite alternate;
}


.contact-form { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
}
.contact-form input, 
.contact-form textarea {
    width: 100%; 
    padding: 1rem;
    background-color: var(--card-background); 
    border: 1px solid var(--border-color);
    border-radius: 10px; 
    color: var(--text-color); 
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}


.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none; 
    border-color: var(--primary-color); 
    /* Stronger, more focused glow */
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.8),
                0 0 5px rgba(124, 58, 237, 0.4) inset;
    transform: translateY(-1px); /* Subtle lift on focus */
}

.contact-form input::placeholder, 
.contact-form textarea::placeholder {
    color: var(--text-muted); 
    opacity: 0.8;
}
.contact-form textarea { 
    resize: vertical; 
}


.contact-form button.btn-primary {
    background-color: var(--primary-color);
    color: white; 
    border: none; 
    padding: 0.75rem 2rem; 
    border-radius: 8px;
    font-size: 1.1rem; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    align-self: flex-start; 
    text-transform: uppercase; 
    font-weight: bold; 
    letter-spacing: 1px;
}
.contact-form button.btn-primary:hover {
    background-color: color-mix(in srgb, var(--primary-color, #7c3aed) 90%, white);
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4); 
}


.contact-form button.btn-primary:active {
    background-color: color-mix(in srgb, var(--primary-color, #7c3aed) 80%, black);
    transform: translateY(0); /* Push back down */
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3); /* Softer shadow */
}


@media (max-width: 900px) {
    
    .contact-section {
  
        flex-direction: column;
        gap: 3rem;
        padding: 2rem 1rem;
    }
    .contact-info, .contact-form {
        flex: none;
        width: 100%;
    }
    .contact-info h2 {
        font-size: 1.8rem;
    }
    .contact-form button.btn-primary {
        
        width: 100%;
        align-self: center;
    }
}