/* Section Title */
.section-title {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 24px;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 1px;
    background-color: var(--accent);
    transform: translateY(-50%);
}

/* Cards (Links & Projects) */
.link-card,
.project-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--fg);
    text-decoration: none;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.link-card {
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: border-color 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth), background 0.4s var(--transition-smooth);
}

.link-card i {
    font-size: 24px;
    color: var(--muted);
    transition: color 0.3s ease, transform 0.3s var(--transition-bounce);
}

.link-card span {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
}

/* Card Hover Effects */
.link-card::after,
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, center) var(--mouse-y, center), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.link-card:hover::after,
.project-card:hover::after {
    opacity: 1;
}

.link-card:hover,
.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.link-card:hover i {
    color: var(--fg);
    transform: scale(1.1);
}

/* Specific Colors for brands on hover */
.link-card.telegram:hover i {
    color: #229ED9;
}

.link-card.youtube:hover i {
    color: #FF0000;
}

.link-card.instagram:hover i {
    color: #E1306C;
}

.link-card.vk:hover i {
    color: #4C75A3;
}

.link-card.spotify:hover i {
    color: #1DB954;
}

.link-card.github:hover i {
    color: var(--github-brand);
}

.link-card.email:hover i {
    color: var(--accent);
}

/* Project Card Specifics */
.project-card {
    min-height: 180px;
    justify-content: space-between;
}

.project-card h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.project-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.project-tags {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--muted);
    transition: color 0.3s ease, background 0.3s ease;
}

.project-card:hover .project-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fg);
}

:root[data-theme="light"] .project-tag {
    background: rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .project-card:hover .project-tag {
    background: rgba(0, 0, 0, 0.08);
}

/* Spotify Widget */
.spotify-widget-container {
    margin-top: 80px;
    margin-bottom: 40px;
}

@media (min-width: 900px) {
    .spotify-widget-container {
        position: fixed;
        bottom: 32px;
        right: 32px;
        top: auto;
        z-index: 100;
        width: 300px;
        margin: 0;
    }
}

#spotify-now-playing {
    height: 154px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#spotify-now-playing iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#spotify-now-playing:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 32px;
    right: 32px;
    left: auto;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(var(--bg), 0.5);
    backdrop-filter: blur(12px);
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--transition-smooth);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
    border-color: var(--fg);
}

.theme-toggle__icon {
    width: 20px;
    height: 20px;
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle__icon--sun {
    opacity: 0;
    transform: rotate(90deg) scale(0);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E");
}

.theme-toggle__icon--moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}

:root[data-theme="light"] .theme-toggle__icon--sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E");
}

:root[data-theme="light"] .theme-toggle__icon--moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}