/* --- In Personal Portfolio/component_stylings/contact.css --- */

#contact {
    
    max-width: 75rem;
    margin: 0 auto;
    padding: 3rem 2rem !important;

    background-color: rgba(27, 27, 29, 0.85);
    border-radius: 24px;
}

#contact h2 {
    /* "Get in touch." */
    font-size: 2.5rem;
    color: #f5f5f5;
    margin-bottom: 3rem;
    text-align: center; /* Center the main header */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Text on left, form slightly larger */
    gap: 3rem;
    width: 100%;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h3 {
    font-size: 1.75rem;
    color: #f5f5f5;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1rem;
    color: var(--c-content);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: auto; /* Pushes to the bottom */
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    
    /* Glass effect */
    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%; /* Circular */
    
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.social-link:hover {
    background-color: color-mix(in srgb, var(--c-glass) 30%, transparent);
    border-color: var(--c-light);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--c-light);
    transition: fill 0.3s ease;
}

.social-link:hover svg {
    fill: var(--c-action);
}

/* --- Form Styling --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--c-light);
    
    /* Glass effect for inputs */
    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    
    padding: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    /* Highlight with action color */
    border-color: var(--c-action);
    box-shadow: 0 0 10px color-mix(in srgb, var(--c-action), transparent 70%);
}

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

/* Re-using the Primary Button style from about.css */
.contact-form button {
    /* Sizing and Shape */
    padding: 0.75rem 1.75rem;
    border-radius: 99em;
    font-size: 0.9rem;
    width: 100%; /* Make button full width */
    margin-top: 1rem;

    /* Font */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* Effects */
    cursor: pointer;
    transform: translateY(0);
    transition: background-color 0.3s ease, color 0.3s ease, 
                border-color 0.3s ease, box-shadow 0.3s ease, 
                transform 0.3s ease;

    /* Primary Button (Solid) */
    background-color: var(--c-action);
    color: var(--c-bg);
    border: 2px solid var(--c-action);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--c-action), transparent 70%);
}

.contact-form button:hover {
    background-color: color-mix(in srgb, var(--c-action), var(--c-light) 20%);
    border-color: color-mix(in srgb, var(--c-action), var(--c-light) 20%);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--c-action), transparent 60%);
    transform: translateY(-3px);
}

/* --- Footer --- */
.site-footer {
    padding: 0.5rem 1rem;
    text-align: center;
    max-width: 1100px; /* Matches your other content widths */
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

.site-footer p {
    font-size: 0.9rem;
    color: #ccc; /* A more muted text color */
    margin: 0.25rem 0;
    text-shadow: none; /* Make footer text flat and clean */
}

.site-footer .footer-credit {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #ccc; /* A more muted text color */
    letter-spacing: 0.5px;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 820px) {
    .contact-container {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 2.5rem;
    }

    .contact-info {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem; /* Remove auto margin */
    }
}