* {
    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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.container {
    max-width: 680px;
    width: 100%;
    padding: 20px;
}

.profile {
    text-align: center;
    margin-bottom: 40px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

.profile h1 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.profile p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

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

.social-icon {
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    width: 100%;
    background: rgba(255,255,255,0.9);
    padding: 25px 20px;
    border-radius: 12px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: center;
}

.link-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link-title {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 2px;
}

.link-subtitle {
    font-size: 0.8rem;
    color: #666;
    font-weight: normal;
}

.link-card:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.link-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.link-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.3);
}

.top-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    top: 0px;
}

.corner-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.corner-button i {
    font-size: 0.9rem;
}

.corner-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.subscribe-btn {
    background: rgba(255, 255, 255, 0.2);
}

footer {
    text-align: center;
    margin-top: 40px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 700;
}

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

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-content h2 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

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

.close-modal:hover {
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #764ba2;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Share Modal Styles */
.share-modal {
    text-align: center;
}

.qr-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

#qrcode {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

#qrcode img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.qr-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.share-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-link-btn i {
    font-size: 1.1rem;
}

/* Gallery Styles */
.gallery-section {
    margin-top: 40px;
    position: relative;
    padding: 0 10px;
}

.gallery-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.gallery-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
}

.gallery-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.gallery-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    min-width: 300px;
    position: relative;
    scroll-snap-align: start;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-content {
    display: flex;
    flex-direction: column;
}

.gallery-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-card h3 {
    color: #333;
    font-size: 1.1rem;
    margin: 0 0 8px 0;
}

.gallery-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #333;
    z-index: 1;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    background: #f8f9fa;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.gallery-nav-btn.next {
    right: -10px;
}

.gallery-nav-btn.prev {
    left: -10px;
    display: none; /* Initially hidden */
}

.ver-mas-btn {
    background: #764ba2;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 12px;
    width: fit-content;
}

.ver-mas-btn:hover {
    background: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ver-mas-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .profile h1 {
        font-size: 1.5rem;
    }
    
    .bio {
        font-size: 1rem;
    }
    
    .link-card {
        padding: 15px 15px;
    }
}

@media (max-width: 768px) {
    .gallery-nav-btn {
        display: none;
    }
    
    .gallery-container {
        padding: 10px 0;
    }
    
    .gallery-card {
        min-width: 260px;
    }
    
    .gallery-image {
        height: 180px;
    }
}
