:root {
    --primary-color: #00629B;
    /* IEEE Blue */
    --secondary-color: #00B5E2;
    /* IEEE Light Blue */
    --bg-gradient-start: #f8fafc;
    --bg-gradient-end: #e0f2fe;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-hover-bg: #ffffff;
    --text-main: #0f172a;
    --text-heading: #00629B;
    --text-muted: #64748b;
    --shadow-sm: 0 4px 6px -1px rgba(0, 98, 155, 0.05), 0 2px 4px -1px rgba(0, 98, 155, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 98, 155, 0.08), 0 4px 6px -2px rgba(0, 98, 155, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 98, 155, 0.1), 0 10px 10px -5px rgba(0, 98, 155, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Geometry */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 98, 155, 0.08), rgba(0, 181, 226, 0.08));
    filter: blur(60px);
    animation: floatShape 20s infinite alternate;
}

.background-animation::before {
    width: 600px;
    height: 600px;
    top: -10%;
    right: -10%;
}

.background-animation::after {
    width: 500px;
    height: 500px;
    bottom: -10%;
    left: -10%;
    animation-delay: -10s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(30px, 50px) rotate(10deg);
    }
}

.overlay {
    display: none;
    /* Removed noise overlay for cleaner look */
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    perspective: 1000px;
}

/* Profile Section */
.profile-section {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    margin-bottom: 0.5rem;
}

.profile-image-container {
    width: 140px;
    /* Slightly larger for logo */
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 0;
    /* Removed padding */
    background: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid white;
}

.profile-image-container:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.profile-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure logo fits nicely */
    padding: 10px;
    /* Inner padding for logo breathing room */
}

.profile-section h1 {
    font-size: 1.75rem;
    /* Larger title */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-heading);
    letter-spacing: -0.5px;
}

.profile-section h1 span {
    color: var(--text-main);
    /* Darker subtext */
    display: block;
    /* Force new line visually */
    font-size: 1.25rem;
    margin-top: 5px;
    font-weight: 600;
}

.profile-section p {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.5rem;
}

/* Links Section */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    /* More spacing */
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    /* Pill shape like reference */
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.8s ease-out backwards;
}

/* Stagger animations for links */
.link-card:nth-child(1) {
    animation-delay: 0.1s;
}

.link-card:nth-child(2) {
    animation-delay: 0.2s;
}

.link-card:nth-child(3) {
    animation-delay: 0.3s;
}

.link-card:nth-child(4) {
    animation-delay: 0.4s;
}

.link-card:nth-child(5) {
    animation-delay: 0.5s;
}

.link-card:nth-child(6) {
    animation-delay: 0.6s;
}

.link-card:hover {
    transform: translateY(-4px);
    background: var(--card-hover-bg);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.link-card::before {
    display: none;
    /* Remove subtle glass shine, using shadow lift instead */
}

.icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 1rem;
    background: transparent;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.link-card:hover .icon-box {
    color: var(--secondary-color);
    transform: scale(1.1);
    background: transparent;
}

.link-text {
    flex-grow: 1;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
    text-align: center;
    /* Center text like reference */
    margin-right: 32px;
    /* Balance the icon spacing to keep genuine center */
}

.share-icon {
    display: none;
    /* Hide share icon to match cleaner reference look */
}

/* Footer style matches clean theme */
footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-mini {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-mini a {
    color: var(--primary-color);
    background: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-mini a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }

    .profile-section h1 {
        font-size: 1.5rem;
    }
}