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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #5a769e 0%, #000000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ==================== BUSINESS CARD ==================== */
.container {
    max-width: 420px;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.logo-section {
    background: white;
    width: 100%;
    padding: 40px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 250px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* Profile Section */
.profile-section {
    background: linear-gradient(135deg, #5a769e 0%, #000000 100%);
    flex: 1;
    padding: 50px 30px 60px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-info {
    margin-bottom: 40px;
}

.name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.position {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.buttons-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    background: white;
    color: #5a769e;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.action-btn:active {
    transform: translateY(0);
}

.btn-icon {
    color: #5a769e;
    font-size: 18px;
}

/* ==================== MODAL STYLES ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    color: #2c3e50;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #7f8c8d;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.modal-subtitle {
    font-size: 16px;
    color: #7f8c8d;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f8f9fa;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item.hidden {
    display: none !important;
}

.contact-icon {
    color: #5a769e;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

.contact-value a {
    color: #5a769e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-value a:hover {
    text-decoration: underline;
    color: #3d5a80;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.address-text {
    line-height: 1.6;
}

.contact-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
}

.save-contact-btn {
    background: linear-gradient(135deg, #5a769e 0%, #3d5a80 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

.save-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90, 118, 158, 0.4);
}

.save-contact-btn:active {
    transform: translateY(0);
}

.save-contact-btn.success {
    background: linear-gradient(135deg, #27ae60, #219a52);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .container {
        border-radius: 16px;
    }

    .logo-section {
        padding: 30px 20px;
    }

    .profile-section {
        padding: 40px 20px 50px;
    }

    .name {
        font-size: 24px;
    }

    .position {
        font-size: 16px;
    }

    .action-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .modal-content {
        padding: 24px 20px;
        margin: 10px;
        border-radius: 12px;
    }
}

/* ==================== TOUCH DEVICE OPTIMIZATIONS ==================== */
@media (hover: none) {
    .action-btn:hover {
        transform: none;
        background: white;
    }

    .action-btn:active {
        background: #f8f9fa;
        transform: scale(0.98);
    }
}
