/* ========================================
   CSS Reset & Variables
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Modern Gold & Black Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4d365;
    --accent-gold-dark: #b8941f;
    --accent-grey: #2a2a2a;
    --accent-black: #000000;

    /* Social Media Brand Colors */
    --twitter: #1DA1F2;
    --youtube: #FF0000;
    --tiktok: #000000;
    --tiktok-highlight: #FE2C55;
    --discord: #5865F2;
    --instagram: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(147, 51, 234, 0.3);
}

/* ========================================
   Base Styles
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.jpg') center center / cover no-repeat;
    opacity: 0.15;
    z-index: -3;
    filter: grayscale(20%);
}

/* ========================================
   Background Effects
   ======================================== */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(244, 211, 101, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(184, 148, 31, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.85) 100%);
    z-index: -2;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-gold);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-gold-light);
    top: 50%;
    right: -175px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-gold-dark);
    bottom: -150px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ========================================
   Profile Section
   ======================================== */
.profile-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    border: 4px solid rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-medium), 0 0 30px rgba(212, 175, 55, 0.2);
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium), 0 0 50px rgba(212, 175, 55, 0.4);
}

.avatar-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: var(--radius-full);
    background: linear-gradient(45deg, var(--accent-gold-dark), var(--accent-gold), var(--accent-gold-light));
    z-index: 1;
    opacity: 0.5;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.profile-name {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold), var(--accent-gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.profile-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 400px;
    margin: 0 auto;
}

/* ========================================
   Social Links Section
   ======================================== */
.links-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.social-link:hover::before {
    transform: translateX(0);
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(26, 26, 26, 0.85);
}

.social-link:active {
    transform: translateY(-2px);
}

.link-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-link:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
}

.link-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.link-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.link-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.link-arrow {
    font-size: 1.2rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ========================================
   Platform-Specific Styles - Gold Theme
   ======================================== */
.social-link.twitter .link-icon {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light)) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.social-link.twitter:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.4);
}

.social-link.youtube .link-icon {
    background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-gold)) !important;
    box-shadow: 0 4px 15px rgba(184, 148, 31, 0.3);
}

.social-link.youtube:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(184, 148, 31, 0.4);
}

.social-link.tiktok .link-icon {
    background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-gold-light)) !important;
    box-shadow: 0 4px 15px rgba(184, 148, 31, 0.3);
}

.social-link.tiktok:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.3);
}

.social-link.telegram .link-icon {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light)) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.social-link.telegram:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(212, 175, 55, 0.4);
}

.social-link.sheets .link-icon {
    background: linear-gradient(135deg, var(--accent-gold-light), #f4d365) !important;
    box-shadow: 0 4px 15px rgba(244, 211, 101, 0.3);
}

.social-link.sheets:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(244, 211, 101, 0.4);
}

.social-link.discord .link-icon {
    background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-gold)) !important;
    box-shadow: 0 4px 15px rgba(184, 148, 31, 0.3);
}

.social-link.discord:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(184, 148, 31, 0.4);
}

.social-link.instagram .link-icon {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), #f4d365) !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.social-link.instagram:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(244, 211, 101, 0.4);
}

/* Icon color consistency */
.link-icon i {
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.social-link:hover .link-icon i {
    color: #0a0a0a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer p {
    opacity: 0.7;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(5) {
    animation-delay: 0.5s;
}

.fade-in:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-bio {
        font-size: 1rem;
    }

    .social-link {
        padding: 1rem 1.25rem;
    }

    .link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .link-title {
        font-size: 1rem;
    }

    .link-subtitle {
        font-size: 0.85rem;
    }

    .orb {
        filter: blur(60px);
    }
}

@media (max-width: 480px) {
    .avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.75rem;
    }

    .social-link {
        padding: 0.9rem 1rem;
    }

    .link-content {
        gap: var(--spacing-sm);
    }
}