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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(90deg, #ffde59 0%, #ff914d 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

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

.profile-image {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-weight: 500;
}

/* QR Button */
.qr-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.qr-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.qr-btn i {
    font-size: 20px;
    color: #fff;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.link-btn {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.link-btn::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.6s ease;
}

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

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.link-btn i:first-child {
    font-size: 24px;
    margin-right: 16px;
    width: 24px;
    text-align: center;
}

.link-btn span {
    flex: 1;
    text-align: left;
}

.link-btn i:last-child {
    font-size: 14px;
    opacity: 0.6;
    margin-left: 8px;
}

/* Icon Colors */
.link-btn[data-link="whatsapp"] i:first-child {
    color: #25D366;
}

.link-btn[data-link="instagram"] i:first-child {
    color: #E4405F;
}

.link-btn[data-link="website"] i:first-child {
    color: #FF6B35;
}

.link-btn[data-link="shop"] i:first-child {
    color: #4285F4;
}

/* Footer Section */
.footer-section {
    margin-top: auto;
    text-align: center;
    padding-top: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.powered-by {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 400;
}

/* 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.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

#qrcode {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

#qrcode canvas {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Button Styles */
.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}



/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .qr-btn {
        position: static;
        margin-top: 15px;
        display: inline-block;
    }
    
    .profile-section {
        position: static;
    }
}

@media (max-width: 480px) {
    .link-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 25px;
        width: 95%;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .tagline {
        font-size: 15px;
    }
}

/* Click effect */
.link-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Loading animation for QR code */
.qr-loading {
    display: inline-block;
    width: 200px;
    height: 200px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
