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

body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    body {
        background: #0a0a0a;
        color: #ffffff;
    }
}

.container {
    max-width: 400px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark mode container */
@media (prefers-color-scheme: dark) {
    .container {
        background: #1a1a1a;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
}

.profile-section {
    margin-bottom: 30px;
}

.profile-image {
    margin-bottom: 20px;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #f1f3f4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.profile-bio {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: #2e7d32;
    line-height: 1.6;
    transition: color 0.3s ease;
    white-space: pre-wrap;
    overflow: hidden;
    max-width: 100%;
    display: block;
    text-align: left;
    min-height: 4.8em; /* 3 lines * 1.6 line-height */
    position: relative;
}



/* Terminal cursor animation */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: currentColor; }
}

/* Dark mode text */
@media (prefers-color-scheme: dark) {
    .profile-name {
        color: #ffffff;
    }
    
    .profile-bio {
        color: #00ff41;
    }
}

.links-section {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #1a1a1a;
    aspect-ratio: 1;
    min-height: 50px;
}

.link-card:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #dadce0;
}

/* Dark mode link cards */
@media (prefers-color-scheme: dark) {
    .link-card {
        background: #2a2a2a;
        border: 1px solid #3a3a3a;
        color: #ffffff;
    }
    
    .link-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        border-color: #4a4a4a;
    }
}

.link-card i {
    font-size: 28px;
    text-align: center;
}

.link-card span {
    display: none;
}

/* Social icons colors - Updated and optimized */
.link-card[data-url*="instagram"] i { color: #e4405f; }
.link-card[data-url*="facebook"] i { color: #1877f2; }
.link-card[data-url*="x.com"] i { color: #000000; }
.link-card[data-url*="github"] i { color: #333333; }
.link-card[data-url*="telegram"] i { color: #0088cc; }
.link-card[data-url*="reddit"] i { color: #ff4500; }
.link-card[data-url*="mailto"] i { color: #ea4335; }
.link-card[data-url*="briefcase"] i { color: #6c757d; }

/* Specific icon for X */
.link-card .fa-x { color: #000000; }

/* Additional social colors for future use */
.link-card[data-url*="linkedin"] i { color: #0077b5; }
.link-card[data-url*="youtube"] i { color: #ff0000; }
.link-card[data-url*="tiktok"] i { color: #000000; }
.link-card[data-url*="discord"] i { color: #5865f2; }
.link-card[data-url*="whatsapp"] i { color: #25d366; }
.link-card[data-url*="spotify"] i { color: #1db954; }
.link-card[data-url*="twitch"] i { color: #9146ff; }
.link-card[data-url*="behance"] i { color: #1769ff; }
.link-card[data-url*="dribbble"] i { color: #ea4c89; }

.social-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: #1a1a1a;
    color: #fff;
    transform: scale(1.05);
}

.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    text-decoration: none;
}

.language-toggle:hover {
    background: #1a1a1a;
    color: #fff;
    transform: scale(1.05);
}

/* Dark mode social icons */
@media (prefers-color-scheme: dark) {
    .social-icon {
        background: #2a2a2a;
        color: #b0b0b0;
    }
    
    .social-icon:hover {
        background: #ffffff;
        color: #1a1a1a;
    }
    
    .language-toggle {
        background: #2a2a2a;
        border-color: #3a3a3a;
        color: #b0b0b0;
    }
    
    .language-toggle:hover {
        background: #ffffff;
        color: #1a1a1a;
    }
}

.footer {
    font-size: 12px;
    color: #999;
    transition: color 0.3s ease;
}

/* Dark mode footer */
@media (prefers-color-scheme: dark) {
    .footer {
        color: #666;
    }
}



/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .link-card {
        padding: 14px 16px;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 20px;
    }
}

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

.container {
    animation: fadeInUp 0.6s ease-out;
}
