/* Local Font Definitions */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Inter-Bold.woff2') format('woff2');
}

/* CSS Reset and Basic Setup */
:root {
    --background-color: #0d1117;
    --surface-color: #161b22;
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-text-color: #e6edf3;
    --secondary-text-color: #8b949e;
    --brand-color: #58a6ff;
    --brand-color-hover: #388bfd;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    background-image: radial-gradient(circle at 15% 50%, rgba(88, 166, 255, 0.1), transparent 30%),
                      radial-gradient(circle at 85% 30%, rgba(88, 166, 255, 0.05), transparent 25%);
    color: var(--primary-text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    animation: fadeIn 1s ease-out;
}

/* Main Content container */
.main-content {
    background-color: var(--surface-color);
    border-radius: 1.5rem;
    max-width: 700px;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    padding: 3rem 3.5rem;
    text-align: center;
}

/* Header section with profile image */
.profile-header {
    animation: slideUp 0.8s ease-out 0.2s;
    animation-fill-mode: backwards;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid transparent;
    background: linear-gradient(var(--surface-color), var(--surface-color)) padding-box,
                linear-gradient(135deg, var(--brand-color), #2c5282) border-box;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.3);
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--brand-color);
    margin-bottom: 1.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-links a {
    color: var(--secondary-text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--brand-color);
    transform: scale(1.1);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* About Section */
.about-section {
    animation: slideUp 0.8s ease-out 0.4s;
    animation-fill-mode: backwards;
}

p {
    color: var(--secondary-text-color);
    line-height: 1.8;
    margin: 0 auto 1.5rem auto;
    max-width: 550px; /* Improve readability */
}

p:last-of-type {
    margin-bottom: 0;
}

/* Footer / CTA */
.profile-footer {
    margin-top: 3rem;
    animation: slideUp 0.8s ease-out 0.6s;
    animation-fill-mode: backwards;
}

.contact-btn {
    display: inline-block;
    background: var(--brand-color);
    color: #fff;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(88, 166, 255, 0.2);
}

.contact-btn:hover {
    background: var(--brand-color-hover);
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    body {
        padding: 1rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

    .profile-image {
        width: 110px;
        height: 110px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1rem;
    }
}