/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e91e63;
    --secondary-color: #9c27b0;
    --accent-color: #ffd700;
    --gradient-1: linear-gradient(135deg, #e91e63 0%, #9c27b0 50%, #673ab7 100%);
    --gradient-2: linear-gradient(135deg, #f48fb1 0%, #ce93d8 100%);
    --gradient-3: linear-gradient(135deg, #ff6f91 0%, #ff9671 100%);
    --white: #ffffff;
    --light-bg: #fce4ec;
    --dark-text: #2d3748;
    --light-text: #718096;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-1);
    min-height: 100vh;
    color: var(--dark-text);
    overflow-x: hidden;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    opacity: 0.6;
    animation: confetti-fall 10s linear infinite;
}

.confetti:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: #e91e63;
    border-radius: 50%;
}

.confetti:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
    background: #ffd700;
    transform: rotate(45deg);
}

.confetti:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    background: #9c27b0;
    border-radius: 50%;
}

.confetti:nth-child(4) {
    left: 70%;
    animation-delay: 6s;
    background: #ff6f91;
    transform: rotate(45deg);
}

.confetti:nth-child(5) {
    left: 90%;
    animation-delay: 8s;
    background: #ce93d8;
    border-radius: 50%;
}

@keyframes confetti-fall {
    0% {
        top: -10%;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        top: 110%;
        transform: translateX(100px) rotate(720deg);
    }
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding: 40px 20px 30px;
    position: relative;
    z-index: 1;
}

.profile-image {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-image img {
    width: 150px;
    height: auto;
    object-fit: contain;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(233, 30, 99, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(233, 30, 99, 0.8);
    }
}

.online-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #10b981;
    border: 3px solid var(--white);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
}

.profile-tagline {
    font-size: 1.1rem;
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 5px;
}

.profile-bio {
    font-size: 0.95rem;
    color: var(--white);
    opacity: 0.85;
}

/* Social Stats */
.social-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--white);
    opacity: 0.8;
}

/* Links Section */
.links-section {
    position: relative;
    z-index: 1;
    padding-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 15px;
}

.section-title .icon {
    font-size: 1.5rem;
}

.section-title h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Link Buttons */
.link-button {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--dark-text);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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 ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.link-button:active {
    transform: translateY(0) scale(0.98);
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    flex-shrink: 0;
}

.service-btn .btn-icon {
    background: var(--gradient-1);
}

.contact-btn .btn-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.whatsapp-btn .btn-icon {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.email-btn .btn-icon {
    background: linear-gradient(135deg, #ea4335 0%, #c53030 100%);
}

.gallery-btn .btn-icon {
    background: var(--gradient-3);
}

.location-btn .btn-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-content {
    flex: 1;
    text-align: left;
}

.btn-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-text);
}

.btn-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 2px;
}

.link-button > .fa-chevron-right {
    color: var(--light-text);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.link-button:hover > .fa-chevron-right {
    transform: translateX(5px);
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-icon.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
}

.social-icon.tiktok {
    background: linear-gradient(135deg, #000000 0%, #25f4ee 50%, #fe2c55 100%);
}

.social-icon.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 30px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--secondary-color);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: none;
}

.cta-text {
    margin-top: 15px;
    color: var(--white);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--white);
    opacity: 0.8;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.made-with {
    margin-top: 5px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .social-stats {
        gap: 20px;
        padding: 15px;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .link-button {
        padding: 14px 16px;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* Branches Section */
.branches-intro {
    text-align: center;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* City Groups */
.city-group {
    margin-bottom: 12px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.city-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: var(--white);
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.city-header:hover {
    background: #fce4ec;
}

.city-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.city-name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
}

.branch-count {
    font-size: 0.8rem;
    color: var(--light-text);
    background: #f3e8ff;
    padding: 4px 10px;
    border-radius: 20px;
}

.city-arrow {
    color: var(--light-text);
    transition: transform 0.3s ease;
}

.city-arrow.rotated {
    transform: rotate(180deg);
}

.city-branches {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    transition: max-height 0.5s ease;
}

.city-branches.open {
    max-height: 15000px;
    overflow-y: auto;
}

.branch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--dark-text);
    border-top: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.branch-item:hover {
    background: #fce4ec;
    padding-left: 25px;
}

.branch-item > i:first-child {
    color: var(--primary-color);
    font-size: 1rem;
}

.branch-info {
    flex: 1;
}

.branch-name {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-text);
}

.branch-phone {
    display: block;
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 2px;
}

.branch-item > i:last-child {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.location-btn .btn-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.location-btn:nth-of-type(odd) .btn-icon {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
}

.location-btn:nth-of-type(even) .btn-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ff6f91 100%);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .link-button {
        background: rgba(255, 255, 255, 0.95);
    }
}
