@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #60a5fa; /* Added for cohesive gradients */
    --bg-gradient: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%); /* Richer background to make glass pop */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.4);
    --text-main: #1f2937;
    --text-secondary: #444e52;
    --text-muted: #6b7280;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: var(--text-main);
}

.container {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    animation: fadeIn 0.5s ease-out forwards;
}

@media (min-width: 1024px) {
    .container {
        grid-template-columns: repeat(5, 1fr);
    }
    .sidebar { grid-column: span 2; }
    .content { grid-column: span 3; }
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img-container {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: linear-gradient(to top right, var(--primary), var(--secondary));
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2); /* Added subtle matching shadow */
}

.profile-img-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-img-inner i {
    width: 4rem;
    height: 4rem;
    color: #d1d5db;
}

.profile-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.role-text {
    color: var(--primary);
    font-weight: 500;
}

.career-location-text, .career-location-text a {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 1rem;
    text-decoration: none;
}

.bio-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.social-btn {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5); /* Glass effect */
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: var(--primary); /* Tie icon color to theme */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

.contact-info-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    padding: 0.85rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-color);
    color: var(--primary);
    font-size: 1.1rem;
}

.info-content p:first-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-muted);
}

.info-content p:last-child {
    font-weight: 500;
}

.info-content a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-content a:hover {
    color: var(--primary);
}

/* Form Styles */
.form-card {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column; 
}

@media (min-width: 768px) {
    .form-card { padding: 2.5rem; }
}

.form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

#contactForm {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-left: 0.25rem;
}

.message-group {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.message-group textarea {
    flex-grow: 1;
    resize: none;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.5);
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

.form-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.form-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.form-submit:active {
    transform: scale(0.98);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success State */
.hidden { display: none !important; }

#successMessage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0;
    gap: 1.5rem;
    flex-grow: 1;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-link {
    color: var(--primary);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.reset-link:hover {
    text-decoration: underline;
}

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