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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #bcd7de 0%, #2c190f 100%);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

.header-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header-btn i {
    color: #333;
    font-size: 16px;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Links Section */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-button {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.link-button:active {
    transform: translateY(0);
}

.link-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.link-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.link-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon i {
    font-size: 16px;
    color: #666;
}

.link-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.link-menu {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 10px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.link-button:hover .link-menu {
    opacity: 1;
}

.link-menu i {
    font-size: 14px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .link-button {
        padding: 12px 16px;
    }
    
    .link-thumbnail {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .link-text {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .link-button {
        padding: 10px 14px;
    }
    
    .link-thumbnail {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .link-text {
        font-size: 14px;
    }
}

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

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

.links {
    animation: fadeInUp 0.8s ease-out;
}

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

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

/* Hover effects for better interactivity */
.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;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-preview {
    background: #2c2c2c;
    padding: 30px;
    text-align: center;
    border-radius: 0;
}

.preview-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

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

.preview-text h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.preview-text p {
    color: #ccc;
    font-size: 16px;
    margin: 0;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 25px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.share-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.share-icon i {
    font-size: 20px;
    color: white;
}

.share-icon {
    background: #6c757d;
}

.x-icon {
    background: #000000;
}

.facebook-icon {
    background: #1877f2;
}

.whatsapp-icon {
    background: #25d366;
}

.linkedin-icon {
    background: #0077b5;
}

.messenger-icon {
    background: linear-gradient(135deg, #006aff, #00c6ff);
}

.share-btn span {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.share-btn:hover .share-icon {
    transform: scale(1.1);
}

/* Responsive Modal */
@media (max-width: 600px) {
    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    .modal-preview {
        padding: 25px 20px;
    }
    
    .preview-image {
        width: 70px;
        height: 70px;
    }
    
    .preview-text h3 {
        font-size: 20px;
    }
}
