body {
    background-color: #f8f8fa; color: #1d1d1f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; text-align: center; overflow: hidden;
}
#matrix-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.profile-img { position: absolute; top: 30px; right: 30px; width: 100px; height: 100px; border-radius: 18px; object-fit: cover; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); border: 1px solid rgba(0, 0, 0, 0.05); }
.content { width: 90%; max-width: 650px; padding: 40px 50px; background-color: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 24px; border: 1px solid rgba(0, 0, 0, 0.05); }
h1 { font-size: 3.5rem; font-weight: 600; margin-bottom: 1rem; letter-spacing: -1px; }

#bio-text {
    font-size: 1.25rem; color: #555; line-height: 1.7; margin-bottom: 2rem; font-weight: 400;
    min-height: 84px; /* Prevents layout shift */
}
#typewriter-cursor { display: inline-block; background-color: #555; width: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { from, to { background-color: transparent } 50% { background-color: #555; } }

.action-buttons { display: flex; justify-content: center; gap: 15px; margin-top: 1.5rem; flex-wrap: wrap; }
.action-buttons a, .action-buttons button {
    background-color: #fff; color: #333; border: 1px solid #ddd; border-radius: 8px;
    padding: 10px 20px; font-size: 1rem; font-weight: 500; text-decoration: none;
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    transition: all 0.2s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.action-buttons a:hover, .action-buttons button:hover { border-color: #bbb; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.action-buttons i { font-size: 1.2rem; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: none; align-items: center; justify-content: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content { background: #fff; padding: 40px; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); width: 90%; max-width: 500px; position: relative; transform: scale(0.95); transition: transform 0.3s ease; text-align: left; }
.modal-overlay.show .modal-content { transform: scale(1); }
.modal-content h2 { margin-top: 0; margin-bottom: 8px; color: #1d1d1f; font-size: 2rem; font-weight: 600; }
.modal-subtitle { font-size: 1rem; color: #666; margin-top: 0; margin-bottom: 25px; line-height: 1.5; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 2.5rem; color: #aaa; cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: #333; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 500; color: #333; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #e5e5e5; border-radius: 8px; background-color: #f9f9f9; font-family: inherit; font-size: 1rem; box-sizing: border-box; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #007aff; box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { width: 100%; background-color: #007aff; color: white; font-weight: 600; border: none; padding: 14px 20px; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: background-color 0.2s ease; }
.contact-form button:hover { background-color: #005ecb; }
.contact-form button:disabled { background-color: #cce4ff; cursor: not-allowed; }
.form-group-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-group-consent input { width: auto; margin-top: 3px; }
.form-group-consent label { margin-bottom: 0; font-size: 0.8rem; color: #666; }
.form-group-consent label a { color: #007aff; text-decoration: none; }
.form-group-consent label a:hover { text-decoration: underline; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .profile-img { width: 80px; height: 80px; top: 20px; right: 20px; }
    .content { padding: 30px 25px; }
    h1 { font-size: 2.5rem; }
    #bio-text { font-size: 1.1rem; min-height: 100px; }
    .action-buttons { flex-direction: column; align-items: center; }
    .action-buttons a, .action-buttons button { width: 100%; max-width: 300px; justify-content: center; }
    .modal-content { padding: 30px 25px; }

       .action-buttons a, .action-buttons button { 
        width: 100%; max-width: 300px; justify-content: center; 
        margin-left: auto; margin-right: auto;   }
}

/* --- Footer Styling --- */
footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}
footer small {
    font-size: 0.8rem;
    color: #888;
}
footer a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}
footer a:hover {
    color: #007aff;
}