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

:root {
    --bg-color: #fdfdfd;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.1);
    --nav-bg: rgba(253, 253, 253, 0.8);
    --border-color: #f1f5f9;
    --card-bg: #f8fafc;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

[data-theme="dark"] {
    --bg-color: #020617;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #818cf8;
    --accent-glow: rgba(129, 140, 248, 0.1);
    --nav-bg: rgba(2, 6, 23, 0.8);
    --border-color: #1e293b;
    --card-bg: #0f172a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

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

.control-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-radius: 8px;
}

.control-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.lang-btn {
    font-weight: 700;
    font-size: 0.8rem;
}

/* Hero Section */
main.container {
    flex: 1;
    padding: 6rem 2rem;
}

main {
    flex: 1;
    padding: 6rem 0;
}

.hero {
    margin-bottom: 5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.01em;
}

/* Sections */
section {
    margin-bottom: 5rem;
}

section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-tag {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* List Items */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    background-color: transparent;
}

.item:hover {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.item-icon {
    width: 48px;
    height: 48px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.item-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.item-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* About Page Narrative Styles */
.profile-section {
    text-align: center;
    margin-bottom: 4rem;
}

.profile-section h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid var(--bg-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.narrative-content {
    max-width: 700px;
    margin: 0 auto;
}

.narrative-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.narrative-content p strong {
    color: var(--accent);
}

.language-section {
    max-width: 980px;
    margin: 5rem auto 0;
}

.language-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.language-heading h2 {
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.language-heading p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.language-card {
    background: linear-gradient(180deg, var(--card-bg), color-mix(in srgb, var(--card-bg) 82%, var(--bg-color) 18%));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    transition: var(--transition);
}

.language-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
}

.language-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.language-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.language-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.org-narrative {
    margin-bottom: 2rem;
}

.org-narrative h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.org-narrative ul {
    list-style: none;
    padding-left: 0;
}

.org-narrative li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.org-narrative li strong {
    color: var(--text-primary);
}

/* Organization Experience Styles */
.org-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.org-item {
    margin-bottom: 0.5rem;
}

.org-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.org-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    flex: 1;
}

.org-name::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: 1rem;
}

.org-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.org-details {
    list-style: none;
    padding-left: 0.5rem;
}

.org-details li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    display: flex;
    gap: 0.5rem;
    line-height: 1.4;
}

.org-details li::before {
    content: "•";
    color: var(--text-secondary);
}

/* Contact Page */
.contact-info {
    max-width: 500px;
}

.security-key {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin-top: 2rem;
    overflow-x: auto;
}

.key-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

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

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.social-icon:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.social-icon img {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) invert(1);
}

.social-icon.instagram { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.social-icon.facebook { background-color: #1877f2; }
.social-icon.linkedin { background-color: #0077b5; }
.social-icon.x { background-color: #111827; }
.social-icon.github { background-color: #24292f; }
.social-icon.gitlab { background-color: #fc6d26; }
.social-icon.telegram { background-color: #229ed9; }

/* Responsive */
@media (max-width: 600px) {
    .nav-links {
        gap: 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    .language-grid {
        grid-template-columns: 1fr;
    }

    .language-card {
        padding: 1.4rem;
    }

    .language-heading h2 {
        font-size: 1.35rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

section {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
