:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #ff4757;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic background gradient animation */
.background-animation {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 71, 87, 0.15), transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15), transparent 30%);
    z-index: -1;
    animation: pulse 15s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, 2%); }
}

.container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    z-index: 1;
}

.profile {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

.profile-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, var(--primary-color), #3b82f6);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.3);
}

.profile-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-color);
}

.profile h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile p {
    font-size: 1.1rem;
    font-weight: 300;
    color: #94a3b8;
}

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

/* Glassmorphism Link Cards */
.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: fadeInUp 0.5s ease-out backwards;
}

/* Staggered load animation */
.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 i {
    position: absolute;
    left: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* Hover effects */
.link-card:hover {
    transform: translateY(-4px) scale(1.02);
    background: var(--card-hover);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.link-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Subtle shine animation on hover */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

.link-card:hover::before {
    left: 150%;
}

footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    animation: fadeIn 1s ease-out 1s backwards;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Legal Pages Styling */
.legal-container {
    max-width: 800px;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.back-link:hover {
    transform: translateX(-5px);
}

.legal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease-out backwards;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.legal-content a {
    color: #3b82f6;
    text-decoration: none;
}
.legal-content a:hover {
    text-decoration: underline;
}

