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

:root {
    --bg-dark: #0a0a0a;
    --text-warm: #FFF0D9;
    --accent-brown: #A89070;
    --accent-gold: #ECC07A;
    --accent-light: #E8D5B7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comfortaa', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.scrollable {
    overflow-y: auto;
    scrollbar-width: none; /* Для Firefox */
}

.scrollable::-webkit-scrollbar   {
    display: none;
}

/* Add hover shadow effect for the modal */
.modal:hover {
    box-shadow: 0px 6px 15px rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    filter: none !important;
}

/* Для браузеров на базе WebKit и стандартного поведения */
::selection {
    background: transparent;
    color: inherit;
}

/* Для Firefox */
::-moz-selection {
    background: transparent;
    color: inherit;
}

body {
    background: var(--bg-dark);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Добавляем отступ для мобильных */
}

footer {
    position: relative;
    z-index: 1;
    padding: 20px 20px 0px 20px;
    text-align: center;
    margin-left: 5vw;
    margin-right: 5vw;
    color: var(--accent-brown);
    animation: fadeIn 1s forwards ease-out;
}

webring {
    position: absolute;
    bottom: 0%;
    right: 0%;
    padding: 30px 50px;
    color: var(--accent-brown);
    font-size: 20px;
}

webring a {
    text-decoration: none;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Настройки для анимационного фона */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Основное модальное окно */
.modal {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px;
    width: 500px;
    text-align: center;
    box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: scale(0.8);
    animation: fadeIn 1s forwards ease-out;
    overflow: auto;
    max-height: 90vh;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
                border 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

/* Separate animation container */
.modal::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    animation: fadeIn 1s forwards ease-out;
}

/* Card header — replaces the old plain h1 */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    text-align: left;
}

.card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.monogram-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #1a1008;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(236, 192, 122, 0.3);
}

.terminal-prompt {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #d3c9c9;
    line-height: 1;
    align-self: flex-start;
    flex-shrink: 0;
}

.card-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-warm);
    line-height: 1.2;
}

.card-tagline {
    font-size: 12px;
    color: var(--accent-brown);
    margin-top: 2px;
}

.availability-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--accent-light);
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.green-dot {
    color: #4ade80;
    font-size: 8px;
    line-height: 1;
}

/* Контент */
.content {
    color: var(--accent-light);
    text-align: left;
}

/* Вкладки */
.tabs {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}

.tab {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-brown);
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.tab.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 2px;
}

.tab:hover {
    color: var(--accent-gold);
}

/* Общие стили для списков */
ul {
    list-style: none;
    padding-left: 10px;
}

ul li {
    margin: 5px 0;
    animation: fadeIn 0.6s forwards ease-out;
}

#skills ul li span {
    font-size: 12px;
}

/* Skill pill badges */
.skill-pill {
    margin-left: auto;
    background: rgba(236, 192, 122, 0.12);
    color: var(--accent-gold);
    border-radius: 10px;
    font-size: 11px;
    padding: 2px 8px;
    white-space: nowrap;
    font-weight: 400;
}

/* Social pill-buttons */
.socials-pills {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 !important;
}

.socials-pills li {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    margin-bottom: 0 !important;
}

.social-pill-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(236, 192, 122, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-warm) !important;
    font-size: 14px !important;
    text-decoration: none;
    width: 100%;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.social-pill-btn:hover {
    background: rgba(236, 192, 122, 0.1) !important;
    border-color: rgba(236, 192, 122, 0.4) !important;
    color: var(--accent-gold) !important;
}

i {
    font-size: 15px;
    text-align: center;
    width: 24px;
}

.tab-content li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Социальные сети */
ul.socials {
    list-style: none;
    padding: 0;
}

ul.socials li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

ul.socials li a {
    text-decoration: none;
    padding: 5px 0px;
    color: var(--text-warm);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

ul.socials i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

ul.socials li a:hover {
    color: var(--accent-gold);
}

/* Выделенные элементы */
.important {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-warm);
    transition: transform 0.3s ease-in-out;
    padding: 5px 0px;
    width: 50%;
}

.important:hover {
    transform: scale(1.1);
    color: var(--accent-gold);
}

/* Контейнер цитаты */
.quote-container {
    text-align: center;
    height: 50px;
    padding: 5px 0px;
}

/* Анимация появления */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Эффект при наведении */
.hover-effect {
    transform: scale(1.1);
    color: var(--accent-gold);
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Адаптивность */
@media (max-width: 500px) {
    body {
        padding: 20px;
    }

    #love li {
        flex-wrap: nowrap !important;
    }

    .modal {
        width: 100%;
        max-width: 350px;
        padding: 20px;
        transform: none !important;
        transition: none !important;
    }
    
    /* Отключаем эффекты на мобильных устройствах */
    .modal:hover {
        border: 2px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.05) !important;
        transform: none !important;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .important {
        font-size: 16px;
    }

    ul.socials li a {
        font-size: 16px;
    }
    
    webring {
        display: none;
    }
}

@media (max-width: 350px) {
    .modal {
        padding: 15px;
    }

    h1 {
        font-size: 22px;
    }

    .important {
        font-size: 15px;
    }

    ul.socials li a {
        font-size: 14px;
    }

    webring {
        display: none;
    }
}

.hidden {
    display: none;
}

