:root {
    --bg-color: #0f1216;
    --text-color: #f0f0f0;
    --accent-color: #4e80ee;
    --secondary-color: #2a3544;
    --card-bg: #1a1f26;
    --card-border: #2c3c52;
    --hover-color: #5e90fe;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem 1.5rem;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 25px rgba(78, 128, 238, 0.3);
}

#profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.1rem;
    color: #a0a8b8;
    max-width: 400px;
    margin: 0 auto;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-item:hover .icon {
    background-color: var(--accent-color);
}

.icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.platform-name {
    font-weight: 500;
    font-size: 1.1rem;
}

/* PGP Key section */
.pgp-key {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #c9d1d9;
    background-color: #0d1117;
    overflow-x: auto;
    white-space: pre;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pgp-key::before {
    content: 'Click to copy';
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background-color: var(--secondary-color);
    color: #a0a8b8;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pgp-key:hover::before {
    opacity: 1;
}

.pgp-key:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pgp-key.copied::before {
    content: 'Copied!';
    background-color: #10b981;
    color: white;
    opacity: 1;
}

.pgp-key::-webkit-scrollbar {
    height: 8px;
}

.pgp-key::-webkit-scrollbar-track {
    background: var(--card-bg);
}

.pgp-key::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.pgp-key::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
    color: #6c7989;
    padding: 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .contact-links {
        grid-template-columns: 1fr;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .pgp-key {
        font-size: 0.7rem;
        padding: 1rem;
    }
}

/* Animation for page load */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    animation: fadeIn 0.8s ease-out;
}

.contact-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}

#message {
    animation-delay: 0.2s;
}

#social {
    animation-delay: 0.4s;
}

#pgp {
    animation-delay: 0.6s;
}
