:root {
    --accent: #7a4cf2;
    --accent-2: #6fd4bb;
    --bg: #0d0d14;
    --bg-2: #15131f;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.1);
    --text: #e8e8f0;
    --text-muted: #a0a0b0;
    --shadow: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
    --bg: #eef1f6;
    --bg-2: #ffffff;
    --card: rgba(255, 255, 255, 0.75);
    --card-border: rgba(0, 0, 0, 0.08);
    --text: #1a1a2e;
    --text-muted: #555;
    --shadow: rgba(80, 60, 160, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/* Animated aurora background */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    z-index: -1;
    pointer-events: none;
}

body::before {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    top: -10vw;
    left: -10vw;
    animation: float1 14s ease-in-out infinite;
}

body::after {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    bottom: -12vw;
    right: -8vw;
    animation: float2 18s ease-in-out infinite;
}

[data-theme="light"] body::before,
[data-theme="light"] body::after {
    opacity: 0.35;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8vw, 6vh) scale(1.15); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-7vw, -5vh) scale(1.1); }
}

.card-container {
    position: relative;
    max-width: 720px;
    width: 100%;
    background: var(--card);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 60px var(--shadow);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 56px 36px 44px;
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.logo {
    max-width: 240px;
    height: auto;
    margin: 0 auto 24px;
}

.profile-pic {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 30px rgba(122, 76, 242, 0.4);
}

h1 {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 2.2em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    color: var(--text-muted);
    margin: 0 0 24px;
    font-weight: 400;
    font-size: 1.15em;
    letter-spacing: 0.3px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 28px;
    max-width: 560px;
}

.tech-stack span {
    font-size: 0.82em;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--text);
    background: rgba(122, 76, 242, 0.14);
    border: 1px solid rgba(122, 76, 242, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.tech-stack span:hover {
    transform: translateY(-2px);
    background: rgba(122, 76, 242, 0.28);
}

.description {
    max-width: 580px;
    margin: 0 auto 24px;
    color: var(--text-muted);
}

.book-time {
    margin-bottom: 16px;
}

.book-time a,
.contact-info a {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.book-time a:hover,
.contact-info a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 8px 0 28px;
}

.social-links a {
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--card-border);
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3em;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.social-links a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(122, 76, 242, 0.45);
}

.contact-info {
    font-size: 0.98em;
    color: var(--text-muted);
}

.contact-info p {
    margin: 4px 0;
}

/* Top controls */
.controls {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 100;
}

.language-switch button,
.theme-toggle {
    padding: 7px 13px;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle {
    width: 38px;
    padding: 7px 0;
}

.language-switch button:hover,
.theme-toggle:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.language-switch button.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-color: transparent;
}

@media (max-width: 600px) {
    .card-container {
        padding: 48px 22px 36px;
        border-radius: 20px;
    }
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    .logo {
        max-width: 200px;
    }
    h1 {
        font-size: 1.7em;
    }
    h2 {
        font-size: 1em;
    }
    .social-links {
        flex-wrap: wrap;
    }
}
