@font-face {
    font-family: 'Vetrino';
    src: url('fonts/Vetrino.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
}

@font-face {
    font-family: 'Connector';
    src: url('fonts/ConnectorTrial-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F5F0E8;
    color: #2C2C2C;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    padding-bottom: max(15px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: left;
}

.header {
    margin-bottom: 50px;
    text-align: center;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.avatar-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar {
    width: 120px;
    height: 140px;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 8px 40px rgba(44, 44, 44, 0.12),
        0 0 0 1px rgba(44, 44, 44, 0.04);
    transition: all 0.4s ease;
    opacity: 0;
    animation: profileAppear 1s ease forwards;
    animation-delay: 0.2s;
    position: relative;
    z-index: 2;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 50px rgba(44, 44, 44, 0.15),
        0 0 0 1px rgba(44, 44, 44, 0.08);
}

.avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid transparent;
    border-radius: 30px;
    background: linear-gradient(45deg, 
        rgba(245, 240, 232, 0.8), 
        rgba(255, 255, 255, 0.4)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    animation: ringAppear 1s ease forwards;
    animation-delay: 0.6s;
}

.profile-info {
    text-align: center;
    opacity: 0;
    animation: profileAppear 1s ease forwards;
    animation-delay: 0.4s;
}

.profile-name {
    font-family: 'Connector', sans-serif;
    font-size: 36px;
    font-weight: 500;
    color: #2C2C2C;
    letter-spacing: 1px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.profile-handle {
    font-size: 16px;
    font-weight: 400;
    color: #8A8A8A;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.profile-description {
    font-size: 14px;
    font-weight: 400;
    color: #6B6B6B;
    letter-spacing: 0.3px;
    line-height: 1.4;
    font-family: 'Connector', sans-serif;
}

.profile-description .highlight {
    color: #2C2C2C;
    font-weight: 500;
}

.header-decorative {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    animation: profileAppear 1s ease forwards;
    animation-delay: 0.8s;
}

.decorative-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(44, 44, 44, 0.2), 
        transparent);
}

.decorative-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(44, 44, 44, 0.3);
}

@keyframes profileAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ringAppear {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-90deg);
    }
    to {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
    max-width: 600px;
    width: 100%;
}

.social-link {
    display: block;
    text-decoration: none;
    color: #2C2C2C;
    transition: all 0.3s ease;
    padding: 20px 0;
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    position: relative;
    cursor: pointer;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.8);
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 8px;
    border-bottom: 1px solid transparent;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: overlay;
    position: relative;
    overflow: hidden;
}

/* Портрет для Instagram */
.social-link:nth-child(1):hover {
    background-image: linear-gradient(rgba(245, 240, 232, 0.3), rgba(245, 240, 232, 0.3)), url('img/IMG_1358.JPG');
    background-position: center 45%;
    background-size: 90%;
    background-blend-mode: normal;
}

/* Портрет для Telegram */
.social-link:nth-child(2):hover {
    background-image: linear-gradient(rgba(245, 240, 232, 0.3), rgba(245, 240, 232, 0.3)), url('img/IMG_1359.JPG');
    background-position: -10% 50%;
    background-size: 75%;
    background-blend-mode: normal;
}

/* Портрет для YouTube */
.social-link:nth-child(3):hover {
    background-image: linear-gradient(rgba(245, 240, 232, 0.3), rgba(245, 240, 232, 0.3)), url('img/IMG_1360.JPG');
    background-size: cover;
    background-blend-mode: normal;
}

/* Портрет для TikTok */
.social-link:nth-child(4):hover {
    background-image: linear-gradient(rgba(245, 240, 232, 0.3), rgba(245, 240, 232, 0.3)), url('img/IMG_1361.JPG');
    background-position: center 35%;
    background-size: cover;
    background-blend-mode: normal;
}

.link-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.link-text {
    flex: 1;
    text-align: left;
}

.link-title {
    font-family: 'Connector', sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2C2C2C;
    letter-spacing: 0.5px;
}

.restricted-note {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

.link-description {
    font-size: 14px;
    font-weight: 400;
    color: #6B6B6B;
    line-height: 1.4;
    max-width: 420px;
}

.link-number {
    font-size: 18px;
    font-weight: 300;
    color: #8A8A8A;
    margin-left: 20px;
    min-width: 30px;
    text-align: right;
    opacity: 0.7;
}

.social-link:hover .link-number {
    opacity: 1;
    color: #2C2C2C;
}

.social-link:hover .link-content {
    position: relative;
    z-index: 2;
}

.social-link:hover .link-title,
.social-link:hover .link-description {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.footer {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.footer p {
    font-size: 14px;
    color: #8A8A8A;
    font-weight: 400;
    margin-bottom: 10px;
}

.developer-credit {
    margin-top: 10px;
}

.developer-credit {
    margin-top: 15px;
    padding: 8px 0;
}

.developer-credit a {
    font-size: 14px;
    color: #8A8A8A;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.developer-credit a::before {
    content: '◦';
    margin-right: 8px;
    color: #BBBBBB;
    font-size: 12px;
}

.developer-credit a::after {
    content: '◦';
    margin-left: 8px;
    color: #BBBBBB;
    font-size: 12px;
}

.developer-credit a:hover {
    color: #2C2C2C;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: center;
        padding-top: 20px;
        padding-bottom: max(30px, calc(20px + env(safe-area-inset-bottom)));
    }
    
    .container {
        max-width: 100%;
    }
    
    .header {
        margin-bottom: 35px;
    }
    
    .profile-section {
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .avatar {
        width: 100px;
        height: 120px;
        border-width: 3px;
        border-radius: 20px;
        object-position: center 8%;
    }
    
    .avatar-ring {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-radius: 26px;
    }
    
    .profile-name {
        font-size: 28px;
        margin-bottom: 6px;
    }
    
    .profile-handle {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .profile-description {
        font-size: 13px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .header-decorative {
        gap: 8px;
    }
    
    .decorative-line {
        width: 30px;
    }
    
    .social-links {
        gap: 18px;
        margin-bottom: 20px;
    }
    
    .social-link {
        padding: 16px 0;
    }
    
    .link-title {
        font-size: 20px;
        font-weight: 500;
    }
    
    .restricted-note {
        font-size: 10px;
    }
    
    .link-description {
        font-size: 13px;
        max-width: 280px;
    }
    
    .link-number {
        font-size: 16px;
        margin-left: 12px;
    }
    
    .social-link:hover {
        padding-left: 12px;
        padding-right: 12px;
        margin-left: -12px;
        margin-right: -12px;
        background-size: cover;
    }
    
    .footer {
        margin-bottom: 40px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .developer-credit a {
        font-size: 13px;
        letter-spacing: 0.4px;
    }
    
    .developer-credit a::before {
        font-size: 10px;
        margin-right: 6px;
    }
    
    .developer-credit a::after {
        font-size: 10px;
        margin-left: 6px;
    }
}

/* Анимация загрузки */
.social-link {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.social-link:nth-child(1) { animation-delay: 0.2s; }
.social-link:nth-child(2) { animation-delay: 0.4s; }
.social-link:nth-child(3) { animation-delay: 0.6s; }
.social-link:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
} 