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

:root {
    --bg-light: #f5f5f5;
    --bg-gradient-start: #e8e8e8;
    --bg-gradient-end: #f0f0f0;
    --text-dark: #2a2a2a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --card-white: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --divider: #000000;
    --linkedin-blue: #0077b5;
}

.dark-mode {
    --bg-light: #1a1a1a;
    --bg-gradient-start: #0f0f0f;
    --bg-gradient-end: #1a1a1a;
    --text-dark: #ffffff;
    --text-medium: #cccccc;
    --text-light: #999999;
    --card-white: #2a2a2a;
    --card-shadow: rgba(0, 0, 0, 0.5);
    --divider: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-dark);
    min-height: 100vh;
    padding: 3rem;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    min-height: calc(100vh - 6rem);
}

/* Theme Toggle */
.language-toggle {
    position: fixed;
    top: 2rem;
    right: calc(2rem + 44px + 0.75rem);
    width: 44px;
    height: 44px;
    border: 2px solid var(--text-dark);
    background: var(--card-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.language-toggle:hover {
    transform: scale(1.1);
    border-color: var(--linkedin-blue);
    color: var(--linkedin-blue);
}

.dark-mode .language-toggle {
    border-color: var(--text-dark);
    background: var(--card-white);
    color: var(--text-dark);
}

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border: 2px solid var(--text-dark);
    background: var(--card-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    color: var(--text-dark);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--linkedin-blue);
    color: var(--linkedin-blue);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.dark-mode .theme-toggle {
    border-color: var(--text-dark);
    background: var(--card-white);
    color: var(--text-dark);
}

.dark-mode .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.dark-mode .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Top Left Memoji */
.top-label {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.top-memoji-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-memoji {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding-top: 4rem;
    width: 100%;
}

/* Left Section */
.left-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 2rem;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
}

.greeting-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    align-items: flex-start;
    flex: 1;
}

.greeting-text .linkedin-button {
    align-self: center;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
}

.main-greeting {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.name {
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    margin: 0;
    transition: color 0.3s ease;
}

.title {
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--text-dark);
    font-family: 'Inter', monospace;
    margin-top: 0.5rem;
    margin: 0 0 2rem 0;
    text-align: center;
    width: 100%;
}

.lang-cs .greeting-text {
    align-items: flex-start;
}

.lang-cs .title {
    text-align: left;
    align-self: flex-start;
}

/* LinkedIn Button */
.linkedin-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--text-dark);
    color: var(--card-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--text-dark);
    text-align: center;
    margin-top: 1rem;
}

.linkedin-button:hover {
    background: var(--linkedin-blue);
    border-color: var(--linkedin-blue);
    color: var(--card-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.dark-mode .linkedin-button {
    background: var(--card-white);
    color: var(--text-dark);
    border-color: var(--card-white);
}

.dark-mode .linkedin-button:hover {
    background: var(--linkedin-blue);
    border-color: var(--linkedin-blue);
    color: var(--card-white);
}

/* Right Section */
.right-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 2rem;
    width: 100%;
}

/* Memoji Wrapper */
.memoji-wrapper {
    flex: 0 0 auto;
    max-width: 250px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.memoji-image {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    align-self: flex-start;
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.business-card {
    background: var(--card-white);
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--card-shadow);
    position: relative;
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-height: fit-content;
    box-sizing: border-box;
}

.dark-mode .business-card {
    border-color: rgba(255, 255, 255, 0.1);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Card Logo */
.card-logo {
    margin-bottom: 1rem;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border: 2px solid var(--divider);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--divider);
    transform: rotate(45deg);
}

.logo-letter {
    position: absolute;
    font-weight: 700;
    font-size: 1rem;
    color: var(--divider);
}

.logo-p {
    top: 6px;
    left: 10px;
}

.logo-k {
    bottom: 6px;
    right: 10px;
}

/* Card Content */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-content-with-memoji {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    min-height: 200px;
    position: relative;
}


.card-text-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 1rem;
    position: relative;
    z-index: 2;
}

.card-memoji-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.card-memoji-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    margin: 0 auto;
}

.card-name,
.card-company {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.card-title,
.card-tagline {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-divider {
    width: 35px;
    height: 1px;
    background: var(--divider);
    margin: 0.4rem 0;
}

.card-info {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.email-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--linkedin-blue);
    text-decoration: underline;
}

.phone-reveal {
    cursor: pointer;
    color: var(--text-dark);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.phone-reveal:hover {
    color: var(--linkedin-blue);
}

.phone-number {
    color: var(--text-dark);
}

.card-skills-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.card-skills {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
}

.skill-item {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

/* Code-like styling for skills */
.skill-item.code-text {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
    background: rgba(248, 248, 248, 0.5);
    padding: 0.75rem;
    border: 1px solid rgba(229, 229, 229, 0.5);
    border-radius: 0;
    margin: 0;
}

.dark-mode .skill-item.code-text {
    background: rgba(20, 20, 20, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.code-keyword {
    color: #0000ff;
    font-weight: 600;
}

.dark-mode .code-keyword {
    color: #569cd6;
}

.code-module {
    color: #267f99;
    font-weight: 500;
}

.dark-mode .code-module {
    color: #4ec9b0;
}

.code-string {
    color: #008000;
}

.dark-mode .code-string {
    color: #6a9955;
}

.code-number {
    color: #098658;
    font-weight: 500;
}

.dark-mode .code-number {
    color: #b5cea8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .memoji-wrapper {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 2rem 1.5rem;
    }

    .main-content {
        padding-top: 3rem;
        gap: 2rem;
    }

    .main-greeting {
        font-size: 1.4rem;
    }

    .name {
        font-size: 3.5rem;
    }

    .title {
        font-size: 1.8rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .memoji-wrapper {
        max-width: 180px;
    }
    
    .business-card {
        max-width: 100%;
        min-width: auto;
    }

    .card-content-with-memoji {
        flex-direction: column;
        gap: 1rem;
    }

    .card-text-content {
        width: 100%;
    }

    .card-memoji-wrapper {
        width: 120px;
        min-width: 100px;
    }

    .card-memoji-image {
        max-width: 120px;
    }

    .top-label {
        position: fixed;
        top: 1.5rem;
        left: 1.5rem;
    }

    .language-toggle {
        top: 1.5rem;
        right: calc(1.5rem + 40px + 0.75rem);
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .theme-toggle {
        top: 1.5rem;
        right: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .linkedin-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1.5rem 1rem;
    }

    .main-greeting {
        font-size: 1.2rem;
    }

    .name {
        font-size: 2.8rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .memoji-wrapper {
        max-width: 200px;
    }
    
    .business-card {
        padding: 1.25rem;
    }

    .card-content-with-memoji {
        flex-direction: column;
        gap: 0.75rem;
        min-height: auto;
    }

    .card-text-content {
        width: 100%;
    }

    .card-memoji-wrapper {
        width: 100px;
        min-width: 80px;
    }

    .card-memoji-image {
        max-width: 100px;
    }

    .top-label {
        top: 1rem;
        left: 1rem;
    }

    .language-toggle {
        top: 1rem;
        right: calc(1rem + 36px + 0.5rem);
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .linkedin-button {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
}

