/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Business Card Header */
.business-card {
    padding: 60px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

.name {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 16px;
    line-height: 0.9;
}

.subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.8;
}

.location {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    margin-bottom: 24px;
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hide Instagram on desktop */
.contact-item:nth-child(5) {
    display: none;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}


.contact-item .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.slogan {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    align-self: flex-start;
}

.slogan-line {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 0.85;
}

/* Photo Container */
.card-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.photo-container {
    position: relative;
    width: 160px;
    height: 200px;
    border: 2px solid #111;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #111;
    gap: 12px;
}

.profile-photo:not([src=""]):not([src="igor-photo.jpg"]) + .photo-placeholder {
    display: none;
}

.photo-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.photo-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* Keyboard Hint */
.keyboard-hint {
    display: flex;
    justify-content: center;
    margin: 40px auto 0;
    width: 100%;
}

.hint-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #999;
    letter-spacing: 0.5px;
}

kbd {
    background: transparent;
    color: #666;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #ddd;
    box-shadow: none;
    letter-spacing: 1px;
}

.qr-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.qr-code {
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid #111;
}


.qr-svg {
    width: 100%;
    height: 100%;
}

/* Terminal Section */
.terminal-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.terminal-file {
    background: #fff;
    border: 2px solid #111;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
}

.file-header {
    background: #111;
    color: #fff;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #111;
}

.file-content {
    padding: 24px;
    font-size: 16px;
    line-height: 1.7;
}

.file-content strong {
    font-weight: 700;
}

.project-link {
    color: #111;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    transition: transform 0.2s ease;
}


.arrow-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* CTA Bar */
.cta-bar {
    background: #111;
    color: #fff;
    padding: 24px 40px;
    margin-top: 80px;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.social-chips {
    display: flex;
    gap: 12px;
}

.chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    color: #111;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid #fff;
}


.chip:active {
    background: #111;
    color: #fff;
}

.chip .icon {
    width: 20px;
    height: 20px;
}

.cta-message {
    font-family: 'Bebas Neue', cursive;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    cursor: pointer;
    user-select: none;
    transition: letter-spacing 0.3s ease;
}


/* Mobile-First WOW Design for 2025 */
@media (max-width: 968px) {
    body {
        background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    }


    .business-card {
        padding: 20px 20px 40px;
    }

    .card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 50px;
        text-align: center;
    }

    /* Mobile Hero Section */
    .card-center {
        order: -1;
        margin-bottom: 0;
    }

    .photo-container {
        width: 180px;
        height: 220px;
        border: 3px solid #111;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    /* Typography Enhancement */
    .name {
        font-size: clamp(42px, 8vw, 64px);
        line-height: 0.85;
        margin-bottom: 12px;
        background: linear-gradient(135deg, #111, #444);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .subtitle {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
        opacity: 0.9;
    }

    .location {
        font-size: 16px;
        font-weight: 500;
        opacity: 0.7;
        margin-bottom: 32px;
    }

    /* Mobile Contact Links - 3+2 Grid (Pyramid Style) */
    .contacts {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 16px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .contact-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 2;
        justify-self: center;
    }

    .contact-item:nth-child(5) {
        grid-column: 2 / 4;
        grid-row: 2;
        justify-self: center;
    }

    /* Show Instagram on mobile */
    .contact-item:nth-child(5) {
        display: flex;
    }

    /* Slogan Enhancement */
    .slogan {
        display: none;
    }

    .slogan-line {
        font-size: clamp(48px, 12vw, 80px);
        line-height: 0.8;
        margin: 8px 0;
        background: linear-gradient(135deg, #111, #333);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* Replace email text with "Mail me" on mobile */
    .contact-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 2;
        justify-self: center;
        position: relative;
        color: transparent;
    }

    .contact-item:nth-child(4)::after {
        content: "Mail me";
        position: absolute;
        left: 32px;
        top: 0;
        height: 100%;
        display: flex;
        align-items: center;
        color: #111;
        font-weight: 500;
        font-size: 16px;
    }

    .contact-item:nth-child(4) .icon {
        color: #111;
    }

    /* Hide first row of footer buttons on mobile */
    .social-chips.left {
        display: none;
    }

    /* Hide keyboard hint on mobile */
    .keyboard-hint {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 100px;
    }

    .photo-container {
        width: 160px;
        height: 200px;
    }

    .contacts {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 16px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .contact-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 2;
        justify-self: center;
        position: relative;
        color: transparent;
    }

    .contact-item:nth-child(4)::after {
        content: "Mail me";
        position: absolute;
        left: 32px;
        top: 0;
        height: 100%;
        display: flex;
        align-items: center;
        color: #111;
        font-weight: 500;
        font-size: 16px;
    }

    .contact-item:nth-child(4) .icon {
        color: #111;
    }

    .contact-item:nth-child(5) {
        grid-column: 2 / 4;
        grid-row: 2;
        justify-self: center;
    }

    /* Mobile Terminal Cards */
    .terminal-section {
        margin: 40px auto 40px;
        padding: 0 20px;
        gap: 24px;
    }

    .terminal-file {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .file-header {
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 700;
        background: linear-gradient(135deg, #111, #333);
    }

    .file-content {
        padding: 24px 20px;
        font-size: 16px;
        line-height: 1.7;
        background: #fff;
    }

    /* Mobile CTA Bar */
    .cta-bar {
        padding: 16px 20px;
        background: #111;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .cta-content {
        flex-direction: row;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
    }

    .social-chips {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .chip {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .chip .icon {
        width: 16px;
        height: 16px;
    }


    .cta-message {
        font-size: 18px;
        text-align: center;
        flex: 1;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: clamp(36px, 10vw, 48px);
    }

    .slogan-line {
        font-size: clamp(40px, 14vw, 64px);
    }

    .photo-container {
        width: 140px;
        height: 175px;
    }

    .terminal-section {
        gap: 20px;
        margin: 30px auto 40px;
    }

    .file-content {
        font-size: 15px;
        line-height: 1.6;
        padding: 20px 16px;
    }

    .cta-message {
        font-size: 20px;
        letter-spacing: 1px;
    }
}





/* Focus states for accessibility */
.contact-item:focus,
.project-link:focus,
.chip:focus,
.qr-code:focus {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.chip:focus {
    outline-color: #fff;
}

/* Keyboard navigation highlight */
.chip.focused {
    background: #333;
    color: #fff;
}

