/* ==================== ROOT VARIABLES ==================== */
:root {
    /* Background Colors - Exact from Reference */
    --primary-bg: #e8ecf1;
    --card-bg: rgba(255, 255, 255, 0.7);
    --white: #ffffff;
    --light-bg: #f9fafb;
    --light-gray: #f3f4f6;
    
    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    /* Gradient Colors - Exact from Reference */
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-blue: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-yellow: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-light-blue: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    
    /* Accent Colors */
    --accent-blue: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    
    /* Social Media Colors */
    --instagram: #E4405F;
    --github: #333;
    --email: #EA4335;
    --telegram: #0088cc;
    --whatsapp: #25D366;
    --javascript: #F7DF1E;
    --golang: #00ADD8;
    --python: #3776AB;
    
    /* Status Colors */
    --success-bg: #d1fae5;
    --success-text: #059669;
    --error-bg: #fee2e2;
    --error-text: #dc2626;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    
    /* Border Radius - Sharp Corners (0) */
    --radius: 0;
    
    /* Shadows */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: 0.3s ease;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #e8ecf1;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* ==================== GRADIENT BLOBS BACKGROUND ==================== */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    top: -200px;
    left: -150px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    bottom: -250px;
    right: -200px;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    bottom: 100px;
    right: 200px;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ==================== TOP HEADER ==================== */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: var(--gradient-purple);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text {
    font-weight: 700;
    font-size: 14px;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================== MAIN DASHBOARD ==================== */
.dashboard {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ==================== PROFILE HEADER ==================== */
.profile-header {
    background: white;
    border-radius: 0;
    padding: 25px;
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    text-align: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 0;
    border: none;
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    display: block;
    transition: transform var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.avatar:hover {
    transform: translateY(-3px);
}

.name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.verified {
    color: #1d9bf0;
    font-size: 1.25rem;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== SOCIAL ICONS ==================== */
.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: var(--spacing-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    background: white;
    transition: all var(--transition);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icon.instagram:hover {
    background: var(--instagram);
    color: white;
    border-color: var(--instagram);
}

.social-icon.github:hover {
    background: var(--github);
    color: white;
    border-color: var(--github);
}

.social-icon.email:hover {
    background: var(--email);
    color: white;
    border-color: var(--email);
}

.social-icon.telegram:hover {
    background: var(--telegram);
    color: white;
    border-color: var(--telegram);
}

/* ==================== SECTION DIVIDER ==================== */
.section-divider {
    margin: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: inline-block;
    background: var(--primary-bg);
    padding-right: var(--spacing-md);
}

/* ==================== LINKS GRID ==================== */
.links-grid {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.link-card {
    background: white;
    border-radius: 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

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

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.link-icon {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f3f4f6;
    transition: all var(--transition);
}

/* Link Card Color Themes */
.link-card.whatsapp .link-icon {
    color: var(--whatsapp);
    background: rgba(37, 211, 102, 0.1);
}

.link-card.telegram .link-icon {
    color: var(--telegram);
    background: rgba(0, 136, 204, 0.1);
}

.link-card.email .link-icon {
    color: var(--email);
    background: rgba(234, 67, 53, 0.1);
}

.link-card.javascript .link-icon {
    color: #1f2937;
    background: rgba(247, 223, 30, 0.2);
}

.link-card.golang .link-icon {
    color: var(--golang);
    background: rgba(0, 173, 216, 0.1);
}

.link-card.python .link-icon {
    color: var(--python);
    background: rgba(55, 118, 171, 0.1);
}

.link-card:hover .link-icon {
    transform: scale(1.1);
}

.link-content {
    flex: 1;
}

.link-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.link-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.link-arrow {
    font-size: 1.125rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.link-card:hover .link-arrow {
    transform: translateX(5px);
    color: var(--text-primary);
}

/* ==================== PROJECTS SECTION ==================== */
.projects-grid {
    display: grid;
    gap: 14px;
    margin-bottom: var(--spacing-lg);
}

.project-card {
    background: white;
    border-radius: 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Project color left-border */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
}

.project-blue::after  { background: #6366f1; }
.project-purple::after { background: #8b5cf6; }
.project-pink::after   { background: #ec4899; }
.project-green::after  { background: #10b981; }
.project-orange::after { background: #f59e0b; }

/* Icon background colors per theme */
.project-blue .project-icon-wrap  { background: rgba(99, 102, 241, 0.08); color: #6366f1; }
.project-purple .project-icon-wrap { background: rgba(139, 92, 246, 0.08); color: #8b5cf6; }
.project-pink .project-icon-wrap   { background: rgba(236, 72, 153, 0.08); color: #ec4899; }
.project-green .project-icon-wrap  { background: rgba(16, 185, 129, 0.08); color: #10b981; }
.project-orange .project-icon-wrap { background: rgba(245, 158, 11, 0.08); color: #f59e0b; }

.project-icon-wrap {
    width: 45px;
    height: 45px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.project-card:hover .project-icon-wrap {
    transform: scale(1.1);
}

.project-icon {
    font-size: 1.25rem;
}

.project-content {
    flex: 1;
    min-width: 0;
}

.project-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.project-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    background: #f3f4f6;
    color: var(--text-secondary);
    border-radius: 0;
}

.project-arrow {
    font-size: 1rem;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
    flex-shrink: 0;
}

.project-card:hover .project-arrow {
    transform: translateX(4px);
    color: var(--text-primary);
}

/* ==================== SPOTIFY SECTION ==================== */
.spotify-section-wrapper {
    margin-top: var(--spacing-lg);
}

.spotify-section {
    background: white;
    padding: 20px;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.spotify-embed {
    width: 100%;
    height: 380px;
    border-radius: 0;
    border: none;
}

/* ==================== FOOTER ==================== */
.footer {
    text-align: center;
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

.footer a:hover {
    color: #6366f1;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card {
    animation: slideInUp 0.5s ease-out backwards;
}

.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; }

.project-card {
    animation: slideInUp 0.5s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    body {
        padding: var(--spacing-md);
    }
    
    .dashboard {
        padding: var(--spacing-lg);
    }
    
    .profile-header {
        padding: var(--spacing-lg);
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .bio {
        font-size: 0.875rem;
    }
    
    .social-icons {
        gap: var(--spacing-sm);
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }
    
    .link-card {
        padding: var(--spacing-md);
    }
    
    .link-icon {
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .link-title {
        font-size: 0.95rem;
    }
    
    .link-subtitle {
        font-size: 0.8rem;
    }
    
    .spotify-embed {
        height: 352px;
    }
    
    .project-card {
        padding: var(--spacing-md);
    }

    .project-icon-wrap {
        width: 40px;
        height: 40px;
    }

    .project-title {
        font-size: 0.9rem;
    }

    .project-desc {
        font-size: 0.75rem;
    }
    
    .blob-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        left: -100px;
    }
    
    .blob-2 {
        width: 350px;
        height: 350px;
        bottom: -150px;
        right: -100px;
    }
    
    .blob-3 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0;
    }
    
    .dashboard {
        padding: var(--spacing-md);
        border-radius: var(--radius);
    }
    
    .avatar {
        width: 70px;
        height: 70px;
    }
    
    .name {
        font-size: 1.25rem;
    }
    
    .verified {
        font-size: 1rem;
    }
    
    .social-icons {
        gap: var(--spacing-xs);
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: var(--radius);
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}
