:root {
    --bg-gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --bg-gradient-light: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    --text-color-dark: #ffffff;
    --text-color-light: #1a1a1a;
    --bio-color-dark: #a0a0a0;
    --bio-color-light: #666666;
    --link-bg-dark: rgba(255, 255, 255, 0.1);
    --link-bg-light: rgba(0, 0, 0, 0.05);
    --footer-color-dark: #666;
    --footer-color-light: #888;
}

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

html[data-theme="dark"] {
    --bg-gradient: var(--bg-gradient-dark);
    --text-color: var(--text-color-dark);
    --bio-color: var(--bio-color-dark);
    --link-bg: var(--link-bg-dark);
    --footer-color: var(--footer-color-dark);
}

html[data-theme="light"] {
    --bg-gradient: var(--bg-gradient-light);
    --text-color: var(--text-color-light);
    --bio-color: var(--bio-color-light);
    --link-bg: var(--link-bg-light);
    --footer-color: var(--footer-color-light);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.3s ease;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--link-bg);
    border: #fff ;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

html[data-theme="dark"] .sun-icon,
html[data-theme="light"] .moon-icon {
    opacity: 1;
    transform: scale(1);
}

html[data-theme="dark"] .moon-icon,
html[data-theme="light"] .sun-icon {
    opacity: 0;
    transform: scale(0.5);
}

.container {
    max-width: 672px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
}

.profile {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-image {
    width: 128px;
    height: 128px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 4px rgba(128, 128, 128, 0.2);
}

@media (max-width: 480px) {
    .profile-image {
        width: 96px;
        height: 96px;
    }
}

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

.profile h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
}

.bio {
    color: var(--bio-color);
    max-width: 400px;
    margin: 0 auto;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(0.75rem, 2vw, 1rem);
    background: var(--link-bg);
    backdrop-filter: blur(5px);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.link-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.link svg {
    width: clamp(16px, 4vw, 20px);
    height: clamp(16px, 4vw, 20px);
}

.link-title {
    font-weight: 500;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.external-icon {
    opacity: 0.5;
}

@media (max-width: 480px) {
    .external-icon {
        display: none;
    }
}

footer {
    margin-top: 3rem;
    text-align: center;
    color: var(--footer-color);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
}

/* Hover colors for different platforms */
html[data-theme="dark"] .link[data-platform="github"]:hover { background: #24292e; }
html[data-theme="dark"] .link[data-platform="twitter"]:hover { background: #1DA1F2; }
html[data-theme="dark"] .link[data-platform="linkedin"]:hover { background: #0077B5; }
html[data-theme="dark"] .link[data-platform="instagram"]:hover { background: #E4405F; }
html[data-theme="dark"] .link[data-platform="youtube"]:hover { background: #FF0000; }
html[data-theme="dark"] .link[data-platform="portfolio"]:hover { background: #9333EA; }
html[data-theme="dark"] .link[data-platform="king"]:hover { background: #9333EA; }
html[data-theme="dark"] .link[data-platform="varshith"]:hover { background: #FF0000; }

html[data-theme="light"] .link[data-platform="github"]:hover { background: #f6f8fa; }
html[data-theme="light"] .link[data-platform="twitter"]:hover { background: #e8f5fd; }
html[data-theme="light"] .link[data-platform="linkedin"]:hover { background: #e1f0f8; }
html[data-theme="light"] .link[data-platform="instagram"]:hover { background: #fdf0f3; }
html[data-theme="light"] .link[data-platform="youtube"]:hover { background: #fee2e2; }
html[data-theme="light"] .link[data-platform="portfolio"]:hover { background: #f3e8ff; }
html[data-theme="light"] .link[data-platform="king"]:hover { background: #9333EA; }
html[data-theme="light"] .link[data-platform="varshith"]:hover { background: #fee2e2; }