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

:root {
    /* Modern color palette inspired by Reactive Resume */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --border-color: #334155;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1f3a 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem 120px 1rem; /* Extra padding bottom for fixed footer */
    width: 100%;
}

/* Card Container */
.central-content-card {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
}

.central-myself-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2rem;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Language Switcher */
.language-switcher {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

#language-buttons {
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 6px;
    transition: var(--transition);
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.profile-image-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.profile-pic-card {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.profile-pic-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.profile-name {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.02em;
    margin: 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Headlines Section */
.headlines-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: center;
}

.headline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.5;
}

.subheadline {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Links Section */
.links-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.links-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.link-item {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.link-item:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.link-item:active {
    transform: translateY(0);
}

/* Social Media Section */
.social-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0.9);
    transition: var(--transition);
}

.social-link:hover .social-icon {
    filter: brightness(1.2);
}

/* Counter Section */
.counter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.counter-link {
    display: inline-block;
    text-decoration: none;
}

.counter-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
    font-weight: 400;
}

/* Footer - Fixed and Larger */
footer,
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

.footer-main {
    width: 100%;
    max-width: 1400px;
    text-align: center;
}

.footer-main p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

/* Legacy styles for compatibility */
.myself-card {
    display: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .central-myself-card {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .profile-pic-card {
        width: 140px;
        height: 140px;
    }

    .profile-name {
        font-size: 1.875rem;
    }

    .headline {
        font-size: 1.25rem;
    }

    .subheadline {
        font-size: 1rem;
    }

    .links-card {
        flex-direction: column;
        gap: 0.5rem;
    }

    .link-item {
        width: 100%;
        max-width: 280px;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .social-icon {
        width: 22px;
        height: 22px;
    }
}

@media screen and (max-width: 480px) {
    main {
        padding: 1rem 0.5rem;
    }

    .central-myself-card {
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }

    .profile-pic-card {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .headline {
        font-size: 1.125rem;
    }

    .subheadline {
        font-size: 0.9375rem;
    }

    .link-item {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

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

.central-myself-card > * {
    animation: fadeInUp 0.6s ease-out backwards;
}

.central-myself-card > *:nth-child(1) {
    animation-delay: 0.1s;
}

.central-myself-card > *:nth-child(2) {
    animation-delay: 0.2s;
}

.central-myself-card > *:nth-child(3) {
    animation-delay: 0.3s;
}

.central-myself-card > *:nth-child(4) {
    animation-delay: 0.4s;
}

.central-myself-card > *:nth-child(5) {
    animation-delay: 0.5s;
}

.central-myself-card > *:nth-child(6) {
    animation-delay: 0.6s;
}
