:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --card-bg: #f5f5f5;
    --accent: #ff014f;
    --top-bar-bg: #faf7f2;
    --divider-color: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #e5e7eb;
    --card-bg: #1e293b;
    --accent: #ff4d6d;
    --top-bar-bg: #0b1220;
    --divider-color: rgba(255, 255, 255, 0.12);
}

/* Hide language-specific content until JavaScript loads */
[data-tr]:not(.lang-ready) {
    opacity: 0;
}

html.lang-loaded [data-tr] {
    opacity: 1;
    transition: opacity 0.1s ease-in;
}


body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    padding: 20px 60px;
    font-weight: bold;
    background: var(--top-bar-bg);
}

.nav-divider {
    border: none;
    border-top: 1px solid var(--divider-color);
    margin: 0;
}

/* Hero layout */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px 40px 40px;
    gap: 20px;
}

/* Left text */
.hero-text {
    flex: 1;
    max-width: 450px;
}

.subtitle {
    font-size: 12px;
    letter-spacing: 2px;
    color: #888;
}

.hero h1 {
    font-size: 46px;
    line-height: 1.2;
}

.accent {
    color: var(--accent);
}

.hero p {
    margin-top: 20px;
    color: #555;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-images {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-photo {
    max-width: 280px;
    max-height: 340px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}




.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-color);
}

.page {
    padding: 60px 40px 40px 40px;
}

.page h1 {
    margin-bottom: 40px;
    text-align: center;
}

.about {
    padding: 60px 40px 40px 40px;
    display: flex;
    justify-content: center;
}

.about-content {
    max-width: 720px;
    text-align: center;
}

.about-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 16px;
}

.about-content h1 {
    margin: 0 0 20px 0;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 16px 0;
    color: #555;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.card h3 {
    margin-top: 0;
}

.card p {
    color: #555;
}

.tech {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}

.hobby-card {
    text-align: center;
}

.character-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.contact-form {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto 60px auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
}

.contact-form button {
    padding: 12px;
    border: none;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
}

.contact-form button:hover {
    opacity: 0.9;
}

.contact-container {
    display: flex;
    gap: 60px;
    margin-top: 40px;
}

.contact-left {
    flex: 1;
    min-width: 300px;
}

.contact-right {
    flex: 1;
    min-width: 300px;
}

.contact-right > div {
    margin-bottom: 40px;
}

.social-media ul {
    list-style: none;
    padding: 0;
}

.social-media li {
    margin-bottom: 12px;
}

.social-media a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-media a:hover {
    text-decoration: underline;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 12px;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.btn-download {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.btn-download:hover {
    opacity: 0.9;
}

.cv-attachment {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.cv-attachment:hover {
    text-decoration: underline;
}

.cv-download ul {
    list-style: none;
    padding: 0;
}

.cv-download li {
    margin-bottom: 12px;
}

.contact-links-only {
    display: flex;
    gap: 80px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links-only > div {
    min-width: 250px;
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-images {
        margin-top: 40px;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

#theme-toggle::before {
    content: "☀️";
    display: inline-block;
}

html[data-theme="dark"] #theme-toggle::before {
    content: "🌙";
}

.language-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
}

.language-toggle button {
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-color);
}

.language-toggle button:hover {
    text-decoration: underline;
}

/* Copyright Footer */
.copyright {
    text-align: center;
    padding: 20px 20px;
    margin-top: 0;
    border-top: 1px solid var(--divider-color);
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.75rem;
}

.copyright p {
    margin: 0;
}

@media (max-width: 600px) {
    .copyright {
        padding: 14px 12px;
        font-size: 0.7rem;
    }
}
