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

/* Animatable color properties */
@property --gradient-start {
    syntax: '<color>';
    initial-value: #1a1a2e;
    inherits: false;
}

@property --gradient-end {
    syntax: '<color>';
    initial-value: #16213e;
    inherits: false;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    transition: --gradient-start 0.5s ease, --gradient-end 0.5s ease;
}

.container {
    width: 100%;
    animation: fadeIn 0.6s ease-in;
}

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

.profile {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.profile-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

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

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-icon-link:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.35);
}

body.dark .social-icon-link {
    background: rgba(255, 255, 255, 0.1);
}

body.dark .social-icon-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
    max-width: 680px;
    margin: 0 auto;
}

.link-item {
    background: var(--link-bg, rgba(255, 255, 255, 0.95));
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--theme-text, #333);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease, background 0.5s ease, color 0.5s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
    backdrop-filter: blur(10px);
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: var(--link-hover, white);
}

.link-title {
    display: block;
    margin-bottom: 4px;
}

.link-description {
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

body.dark .link-description {
    color: rgba(255, 255, 255, 0.7);
}

/* Link with icon - flex layout */
.link-item.has-icon {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
}

.link-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #667eea;
    color: white;
    font-size: 20px;
    transition: background 0.5s ease;
}

.link-text {
    flex: 1;
    min-width: 0;
}

body.dark .link-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Panel Tabs */
.panel-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.panel-tab {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease, background 0.5s ease, color 0.5s ease;
}

.panel-tab:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.panel-tab.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

body.dark .panel-tab {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

body.dark .panel-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

body.dark .panel-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Swiper overrides */
.swiper {
    width: 100%;
    padding: 10px 0;
    overflow: visible;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    width: 85%;
    max-width: 720px;
    transition: opacity 0.3s, transform 0.3s;
    box-sizing: border-box;
}

.swiper-slide:not(.swiper-slide-active) {
    opacity: 0.35;
    pointer-events: none;
}

.swiper-slide-active {
    opacity: 1;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
}

.lang-current {
    font-size: 13px;
    font-weight: 700;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.25);
}

.lang-link {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.lang-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

body.dark .lang-current {
    background: rgba(255, 255, 255, 0.15);
}

body.dark .lang-link {
    color: rgba(255, 255, 255, 0.5);
}

body.dark .lang-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

/* Site Profile Icon */
.site-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.site-icon:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.7);
}

.site-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-icon-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

/* Site Profile Modal */
.site-modal {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 199;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-modal.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.site-modal-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 24px;
    min-width: 220px;
    max-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
}

body.dark .site-modal-card {
    background: rgba(30, 30, 50, 0.9);
}

.site-modal-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.08);
}

body.dark .site-modal-avatar {
    border-color: rgba(255, 255, 255, 0.15);
}

.site-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-modal-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

body.dark .site-modal-name {
    color: #fff;
}

.site-modal-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
}

body.dark .site-modal-bio {
    color: rgba(255, 255, 255, 0.7);
}

.site-modal-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #3498db;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 8px;
    background: rgba(52, 152, 219, 0.1);
    transition: background 0.2s ease;
}

.site-modal-link:hover {
    background: rgba(52, 152, 219, 0.2);
}

body.dark .site-modal-link {
    color: #5dade2;
    background: rgba(93, 173, 226, 0.15);
}

body.dark .site-modal-link:hover {
    background: rgba(93, 173, 226, 0.25);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .profile-name {
        font-size: 20px;
    }
    .link-item {
        padding: 16px;
        font-size: 15px;
    }
    .link-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        border-radius: 8px;
    }
    .link-item.has-icon {
        gap: 12px;
    }
    .lang-switcher {
        top: 16px;
        left: 16px;
    }
    .site-icon {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
    }
    .site-modal {
        top: 62px;
        right: 16px;
    }
    .swiper-slide {
        width: 90%;
    }
}
