
:root {
    --transition-speed: 0.3s;
}

.theme-dark {
    --bg-primary: #0a0f1d;
    --bg-secondary: #131c2e;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #6366f1;
    --card-bg: rgba(19, 28, 46, 0.8);
    --gradient-start: #0a0f1d;
    --gradient-mid: #2d1b4d;
    --gradient-end: #131c2e;
}

.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #4f46e5;
    --card-bg: rgba(255, 255, 255, 0.9);
    --gradient-start: #f8fafc;
    --gradient-mid: #e2e8f0;
    --gradient-end: #f1f5f9;
}

body {
    background: linear-gradient(145deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
    min-height: 100vh;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpath d='M12 8v8'%3E%3C/path%3E%3Cpath d='M8 12h8'%3E%3C/path%3E%3C/svg%3E") 12 12, auto;
}

.link-card {
    backdrop-filter: blur(12px);
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'%3E%3C/path%3E%3Cpath d='M12 5l7 7-7 7'%3E%3C/path%3E%3C/svg%3E") 12 12, pointer;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.link-card:hover::before {
    transform: translateX(100%);
}

.link-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.profile-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='4'%3E%3C/circle%3E%3C/svg%3E") 12 12, pointer;
}

.nav-pills {
    display: inline-flex;
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: 9999px;
    gap: 0.5rem;
}

.nav-pill {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.nav-pill.active {
    background: var(--accent);
    color: white;
}

.theme-toggle {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'%3E%3C/circle%3E%3Cpath d='M12 1v2'%3E%3C/path%3E%3Cpath d='M12 21v2'%3E%3C/path%3E%3Cpath d='M4.22 4.22l1.42 1.42'%3E%3C/path%3E%3Cpath d='M18.36 18.36l1.42 1.42'%3E%3C/path%3E%3Cpath d='M1 12h2'%3E%3C/path%3E%3Cpath d='M21 12h2'%3E%3C/path%3E%3Cpath d='M4.22 19.78l1.42-1.42'%3E%3C/path%3E%3Cpath d='M18.36 5.64l1.42-1.42'%3E%3C/path%3E%3C/svg%3E") 12 12, pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stories-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stories-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    margin: 0 auto;
    touch-action: pan-y pinch-zoom;
}

.story-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.story-progress {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    gap: 4px;
}

.progress-bar {
    height: 2px;
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.progress-bar .fill {
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 2px;
    transition: width linear;
}

.story-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.story-close {
    position: absolute;
    top: 40px;
    right: 20px;
    color: white;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.story-navigation {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    z-index: 1000;
    cursor: pointer;
}

.story-prev {
    left: 0;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") 16 16, w-resize;
}

.story-next {
    right: 0;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") 16 16, e-resize;
}

.story-content button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent);
}

.link-card:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.link-card:hover:after {
    opacity: 1;
    transform: scale(1);
}

@keyframes subtle-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.profile-image:hover {
    animation: subtle-pulse 2s infinite;
    box-shadow: 0 0 20px var(--accent);
}