:root {
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --text-color: #2c3e50;
    --accent-color: #3498db;
    --border-radius: 16px;
    --spacing: 2rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Language Visibility Logic */
body.lang-cs-active .lang-en { display: none !important; }
body.lang-en-active .lang-cs { display: none !important; }

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* Glassmorphism Classes */
.glass-header, .glass-footer, .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Header */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    margin-bottom: var(--spacing);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-switch button {
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.lang-switch button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lang-switch button.active {
    background: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Main Content */
main {
    padding-bottom: var(--spacing);
}

.section {
    margin-bottom: var(--spacing);
    scroll-margin-top: 100px; /* Offset for sticky header */
}

.glass-card {
    border-radius: var(--border-radius);
    padding: 2.5rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: var(--spacing);
    scroll-margin-top: 100px;
}

.profile-photo-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.placeholder-img {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.intro-text {
    max-width: 600px;
    margin: 0 auto;
}

/* About Me */
.content-text p {
    margin-bottom: 1rem;
}
.content-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-item {
    background-color: #e0e6ed;
    aspect-ratio: 1; /* Square images */
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* CV Button */
.btn-download {
    display: inline-block;
    background: var(--text-color);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    margin-top: 1.5rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.contact-item {
    font-size: 1.1rem;
}

.contact-item .label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
}

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

/* Footer */
.glass-footer {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .glass-card {
        padding: 1.5rem;
    }
    .profile-photo-placeholder, .profile-photo {
        width: 120px;
        height: 120px;
    }
}
