:root {
    --primary: #0066cc;
    --secondary: #003366;
    --accent: #ff6600;
    --light: #f8f9fa;
    --dark: #212529;
    --gradient-start: #0066cc;
    --gradient-end: #003366;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    color: #333;
}

.linktree-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.linktree-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="20" cy="80" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.linktree-content {
    max-width: 650px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Profile Section */
.profile-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 700;
    margin: 0 auto 20px;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.profile-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.profile-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.profile-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
}

/* Section Headers */
.section-header {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    margin: 30px 0 20px 0;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Links Section */
.links-section {
    margin-bottom: 25px;
}

.link-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 24px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--secondary);
    border-color: var(--primary);
}

.link-button.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.link-button.primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.link-button.accent {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.link-button.accent:hover {
    background: #e55a00;
    border-color: #e55a00;
    color: white;
}

.link-button i {
    width: 24px;
    text-align: center;
    margin-right: 16px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.link-button span {
    flex: 1;
    text-align: left;
    font-size: 1rem;
}

/* Footer Section */
.footer-section {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .linktree-container {
        padding: 16px;
    }
    
    .linktree-content {
        max-width: 100%;
    }
    
    .profile-section {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .profile-title {
        font-size: 1.6rem;
    }
    
    .profile-subtitle {
        font-size: 1rem;
    }
    
    .link-button {
        padding: 14px 20px;
    }
    
    .section-header {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }
    
    .profile-title {
        font-size: 1.4rem;
    }
    
    .link-button {
        padding: 12px 16px;
    }
    
    .link-button i {
        margin-right: 12px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section,
.links-section,
.footer-section {
    animation: fadeInUp 0.6s ease forwards;
}

.links-section {
    animation-delay: 0.2s;
}

.footer-section {
    animation-delay: 0.4s;
}