/* CSS Variables for theming */
:root {
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-color: #1f2937;
    --subtext-color: #4b5563;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-color: #f9fafb;
    --subtext-color: #9ca3af;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
    transition: var(--transition);
}

/* Container */
.container {
    width: 100%;
    max-width: 520px;
    text-align: center;
}

/* Profile Header */
.profile-header {
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.location-tag {
    font-size: 14px;
    color: var(--subtext-color);
    font-weight: 500;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.social-icons a {
    color: var(--text-color);
    font-size: 24px;
    text-decoration: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.social-icons a[aria-label="LinkedIn"]:hover { color: #0a66c2; }
.social-icons a[aria-label="Instagram"]:hover { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}
.social-icons a[aria-label="GitHub Portfolio"]:hover { color: #333; }
.social-icons a[aria-label="YouTube"]:hover { color: #ff0000; }

/* Links List */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* Link Cards */
.link-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.link-card:hover::before {
    transform: scaleY(1);
}

/* Link Visual/Icon */
.link-visual {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 18px;
}

/* Icon Background Colors */
.icon-github { background-color: #333; color: #fff; }
.icon-prank { background-color: #f59e0b; color: #fff; }
.icon-telegram { background-color: #0088cc; color: #fff; }
.icon-linkedin { background-color: #0a66c2; color: #fff; }
.icon-instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    color: #fff; 
}
.icon-portfolio { background-color: #10b981; color: #fff; }
.icon-youtube { background-color: #ff0000; color: #fff; }

/* Link Text */
.link-text {
    flex-grow: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    padding-right: 24px;
}

/* Menu Dots */
.menu-dots {
    color: var(--subtext-color);
    font-size: 14px;
    position: absolute;
    right: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.link-card:hover .menu-dots {
    opacity: 1;
}

/* Footer */
.footer {
    margin-top: 32px;
    padding: 20px;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.footer p {
    color: var(--subtext-color);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Theme Toggle Button */
.theme-btn {
    background: var(--card-bg);
    border: 2px solid var(--subtext-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

/* Click Animation */
.link-card.clicked {
    animation: clickPulse 0.3s ease;
}

@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 0;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 20px;
    }
}

/* Loading State */
.loading {
    opacity: 0;
    transform: translateY(10px);
}

.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
