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

html, body {
    width: 100%;
    height: 100%;
    background-color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

#app {
    width: 100%;
    height: 100%;
}

/* Loading Container */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.loading-container.hidden {
    display: none;
}

/* Spinner Animation */
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #303030;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Main Content */
.main-content {
    width: 100vw;
    min-height: 100vh;
    height: fit-content;
    background-color: white;
}

.main-content.hidden {
    display: none;
}

/* Card Container */
.card-container {
    overflow: hidden;
    width: 100vw;
    max-width: 400px;
    height: 100vh;
    margin: 0 auto;
    display: grid;
    place-content: center;
}

/* Card Wrapper */
.card-wrapper {
    background-color: white;
    z-index: 20;
    color: #303030;
    width: 100%;
}

/* Logo */
.logo {
    margin-bottom: 1.25rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width:200px;
    transition: all 2000ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(200px);
    opacity: 0;
}

.logo.animate {
    transform: translateY(0);
    opacity: 1;
}

/* Contact Section */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Contact Link Base */
.contact-link {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.25rem;
    min-width: 170px;
    padding: 0.75rem 1.25rem;
    margin: 0 auto 0.5rem auto;
    width: fit-content;
    border: 2px solid #FFD724;
    border-radius: 8px;
    text-decoration: none;
    color: #303030;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.contact-link:last-child {
    margin-bottom: 0;
}

/* Contact Link Base Hover */
.contact-link:hover {
    background-color: #FFD724;
    color: #303030;
    transform: translateX(-5px);
    box-shadow: 0 6px 16px rgba(255, 215, 36, 0.3);
}

/* WhatsApp - Green */
.contact-link.whatsapp:hover {
    border-color: #25D366;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.95), rgba(37, 211, 102, 0.85));
    color: white;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.contact-link.whatsapp:hover svg {
    color: white;
}

/* Telegram - Blue */
.contact-link.telegram:hover {
    border-color: #0088cc;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.95), rgba(0, 136, 204, 0.85));
    color: white;
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.35);
}

.contact-link.telegram:hover svg {
    color: white;
}

/* Phone - Orange */
.contact-link.phone:hover {
    border-color: #FF6D00;
    background: linear-gradient(135deg, rgba(255, 109, 0, 0.95), rgba(255, 109, 0, 0.85));
    color: white;
    box-shadow: 0 8px 20px rgba(255, 109, 0, 0.35);
}

.contact-link.phone:hover svg {
    color: white;
}

/* SMS - Cyan */
.contact-link.sms:hover {
    border-color: #00B4D8;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.95), rgba(0, 180, 216, 0.85));
    color: white;
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.35);
}

.contact-link.sms:hover svg {
    color: white;
}

/* Email - Red */
.contact-link.email:hover {
    border-color: #EA4335;
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.95), rgba(234, 67, 53, 0.85));
    color: white;
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.35);
}

.contact-link.email:hover svg {
    color: white;
}

/* Instagram - Pink */
.contact-link.instagram:hover {
    border-color: #E4405F;
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.95), rgba(228, 64, 95, 0.85));
    color: white;
    box-shadow: 0 8px 20px rgba(228, 64, 95, 0.35);
}

.contact-link.instagram:hover svg {
    color: white;
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.contact-link:hover .icon {
    transform: scale(1.3) rotate(5deg);
}

.contact-link svg {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: inherit;
}

/* Footer */
.footer-text {
    font-size: 14px;
    text-align: center;
    padding: 12px 0;
    color: #303030;
    line-height: 1.5;
}

.footer-link {
    color: #FFD724;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FFC400;
    text-decoration: underline;
}

/* RTL Direction */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .contact-link {
    flex-direction: row-reverse;
}

[dir="rtl"] .contact-link svg {
    margin-right: 0;
    margin-left: 0.75rem;
}

[dir="rtl"] .contact-link:hover {
    transform: translateX(5px);
}

[dir="rtl"] .contact-link:hover .icon {
    transform: scale(1.3) rotate(-5deg);
}

/* Responsive Design */
@media (max-width: 480px) {
    .card-container {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }

    .card-wrapper {
        padding: 20px;
    }

    .contact-link {
        min-width: 150px;
        padding: 0.65rem 1rem;
        font-size: 13px;
        border-width: 1.5px;
    }

    .logo {
        max-width: 100%;
        height: auto;
    }

    .icon {
        width: 20px;
        height: 20px;
    }

    .contact-link svg {
        width: 20px;
        height: 20px;
    }
}

/* Print Styles */
@media print {
    .footer-text {
        display: none;
    }
}
