:root {
    --bg-black: #000000;
    --bg-void: #0a001a;
    --purple-main: #1a0033;
    --purple-neon: #a020f0;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --glass-bg: rgba(26, 0, 51, 0.4);
    --glass-border: rgba(160, 32, 240, 0.2);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --primary-glow: rgba(160, 32, 240, 0.4);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Language Selector Top bar --- */
.topbar-glass {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(26, 0, 51, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 5px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: fadeInDown 1s ease-out;
}

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

.lang-btn {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    font-size: 0.9rem;
    transition: var(--transition);
    border-radius: 20px;
}

.lang-btn:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px var(--purple-neon);
}

.lang-btn.active {
    color: var(--text-white);
    background: rgba(160, 32, 240, 0.3);
    box-shadow: inset 0 0 10px rgba(160, 32, 240, 0.5);
}

.lang-divider {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

/* --- Atmospheric Background --- */
.void-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a0033 0%, #0a001a 40%, #000000 100%);
    background-size: 150% 150%;
    animation: gradientMove 10s ease infinite alternate;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.stars-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.nebula {
    position: absolute; width: 200%; height: 200%; top: -50%; left: -50%;
    background: radial-gradient(ellipse at center, rgba(140, 130, 150, 0.15) 0%, rgba(80, 70, 95, 0.05) 40%, transparent 60%);
    z-index: 0; pointer-events: none;
    opacity: var(--nebula-opacity, 0.5);
    animation: nebulaPulse 25s ease-in-out infinite alternate;
}
.scanline {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 2px, rgba(255,255,255,0.03) 3px, transparent 4px);
    z-index: 1; pointer-events: none; opacity: 0.2;
}
.cursor-glow {
    position: fixed; width: 250px; height: 250px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: 0;
    transform: translate(-50%, -50%); opacity: 0;
    transition: opacity 0.8s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.5s ease;
    mix-blend-mode: screen; filter: blur(30px);
}
@keyframes nebulaPulse { from { transform: scale(1) rotate(0deg); filter: brightness(0.8); } to { transform: scale(1.1) rotate(3deg); filter: brightness(1.1); } }

/* --- Layout --- */
.container { width: 100%; max-width: 450px; padding: 20px; z-index: 10; margin-top: 50px; }
.card-wrapper { display: flex; flex-direction: column; align-items: center; text-align: center; animation: fadeIn 1s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Profile --- */
.profile-section { margin-bottom: 40px; }
.logo-container {
    position: relative; width: 120px; height: 120px; margin: 0 auto 20px;
    border-radius: 30px; /* Adapted from tailwind rounded-3xl */
    display: flex; justify-content: center; align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(160, 32, 240, 0.4);
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
.logo-glow {
    position: absolute; width: 140%; height: 140%;
    background: radial-gradient(circle, rgba(160, 32, 240, 0.2) 0%, transparent 70%);
    animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.15); opacity: 0.6; } }
.logo-icon { z-index: 2; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 10px; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(160,32,240,0.5)); transition: var(--transition); }
.logo-icon img:hover { transform: scale(1.1); filter: drop-shadow(0 0 20px var(--purple-neon)); }

.title { font-size: 2.2rem; font-weight: 800; letter-spacing: 2px; margin-bottom: 5px; text-shadow: 0 0 20px rgba(160, 32, 240, 0.5); }
.subtitle { font-size: 1rem; color: var(--text-gray); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 4px; }

/* --- Links --- */
.links-section { width: 100%; display: flex; flex-direction: column; gap: 15px; }
.link-btn {
    text-decoration: none; color: var(--text-white); padding: 16px 24px; border-radius: 12px;
    display: flex; align-items: center; gap: 15px; 
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, background 0.6s ease, text-shadow 0.6s ease, backdrop-filter 0.6s ease, -webkit-backdrop-filter 0.6s ease;
    position: relative; overflow: hidden;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: var(--glass-bg);
}
.link-btn.show {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.link-btn:hover {
    transform: translateX(10px) scale(1.03) translateZ(0);
    background: rgba(160, 32, 240, 0.25);
    border-color: var(--hover-glow, var(--purple-neon));
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px var(--hover-glow, var(--purple-neon)), inset 0 0 10px rgba(255,255,255,0.05);
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}
.link-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}
.link-btn:hover::before { left: 100%; }
.link-btn i:first-child { font-size: 1.4rem; width: 30px; text-align: center; color: var(--purple-neon); }
.link-btn span { font-weight: 600; font-size: 1.1rem; flex-grow: 1; text-align: left;}
.link-btn .arrow { opacity: 0; transform: translateX(-10px); transition: var(--transition); color: var(--text-muted); font-size: 0.9rem; }
.link-btn:hover .arrow { opacity: 1; transform: translateX(0); color: var(--hover-glow); }

/* --- Contact Mini Section --- */
.contact-section { margin-top: 50px; text-align: center; width: 100%; max-width: 500px; margin-left: auto; margin-right: auto; }
.contact-heading { 
    font-family: 'Outfit', sans-serif; letter-spacing: 4px; font-weight: 600; 
    font-size: 13px; margin-bottom: 25px; color: rgba(255,255,255,0.4); text-transform: uppercase;
}
.contact-box {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    padding: 16px 20px; border-radius: 12px;
    margin-bottom: 12px; text-decoration: none; transition: 0.3s;
}
.contact-box:hover { background: rgba(160, 32, 240, 0.08); border-color: rgba(160, 32, 240, 0.4); }
.contact-group { display: flex; align-items: center; gap: 15px; }
.contact-group i { color: var(--purple-neon); font-size: 18px; }
.contact-group span.email-txt { color: rgba(255,255,255,0.8); font-family: monospace; font-size: 15px; letter-spacing: 0.5px; }
.contact-badge {
    background: transparent; border: 1px solid rgba(160, 32, 240, 0.3);
    color: var(--purple-neon); font-size: 11px; padding: 4px 12px; border-radius: 20px; font-weight: 600; letter-spacing: 0.5px;
}

/* --- Footer --- */
.footer-section { margin-top: 50px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); letter-spacing: 1px; width: 100%; }
.footer-content { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;}
.social-mini { display: flex; gap: 15px; }
.social-mini a { color: rgba(255,255,255,0.4); font-size: 1.2rem; transition: var(--transition); }
.social-mini a:hover { color: var(--text-white); text-shadow: 0 0 10px var(--purple-neon); }

/* --- Responsive & Mobile --- */
@media screen and (max-width: 480px) {
    .container { padding: 15px; margin-top: 20px; }
    .profile-section .title { font-size: 1.5rem; }
    .profile-section .subtitle { font-size: 0.9rem; }
    .logo-container { width: 80px; height: 80px; }
    .link-btn { padding: 12px 16px; font-size: 0.9rem; margin-bottom: 12px; }
}

@media (pointer: coarse), (max-width: 768px) {
    /* Disable complex mouse glow effects explicitly on touch devices */
    .cursor-glow { display: none !important; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: var(--purple-main); border-radius: 3px; }

@media (max-width: 480px) {
    .container { padding: 15px; }
    .title { font-size: 1.8rem; }
    .footer-content { flex-direction: column; gap: 15px; text-align: center; }
}
